tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: per-cpu statistics (Re: CVS commit: src)

On Apr 11, 2008, at 10:47 AM, Jason Thorpe wrote:

On Apr 10, 2008, at 10:36 PM, Simon Burge wrote:

I'm happy with keeping the API too.  Is the longer term plan to make
_all_ evcnts (kstats/counters/whatever) per-CPU?  At collate at user
access time?

I think there will be two classes, at least:

- Strictly per-CPU (no collating ... for stuff like "cpu0 intr count", etc.)

- Global with per-CPU updates, collated at user access time

And *MAYBE*:

- Global with interlocked updates.

think about device intr counts which will be protected by a spin mutex.
those won't need per-cpu instances.

Home | Main Index | Thread Index | Old Index