Re: "statsfs" API design

From: Alexey Dobriyan
Date: Sat Nov 09 2019 - 13:50:54 EST


> statsfs is a proposal for a new Linux kernel synthetic filesystem,
> to be mounted in /sys/kernel/stats

I think /proc experiment teaches pretty convincingly that dressing
things into a filesystem can be done but ultimately is a stupid idea.
It adds so much overhead for small-to-medium systems.

> The first user of statsfs would be KVM, which is currently exposing
> its stats in debugfs

> Google has KVM patches to gather statistics in a binary format

Which is a right thing to do.