Re: [PATCH] proc/stat: Separate out individual irq counts into /proc/stat_irqs

From: David Rientjes
Date: Tue Apr 24 2018 - 01:54:27 EST


On Sat, 21 Apr 2018, Alexey Dobriyan wrote:

> > On Thu, Apr 19, 2018 at 04:23:02PM -0700, Joel Fernandes (Google) wrote:
> > > Can we not just remove per-IRQ stats from /proc/stat (since I gather
> > > from this discussion it isn't scalable), and just have applications
> > > that need per-IRQ stats use /proc/interrupts ?
> >
> > If you can prove noone is using them in /proc/stat...
>
> And you can't even stick WARN into /proc/stat to find out.
>

FWIW, removing per irq counts from /proc/stat would break some of our
scripts. We could adapt to that, but everybody else would have to as
well, so I'm afraid it's not going to be possible.

It would probably be better to extract out the stats that you're actually
interested in to a new file.