svn commit: r251826 - head/sys/vm

Gleb Smirnoff glebius at FreeBSD.org
Tue Jun 18 08:42:47 UTC 2013


On Mon, Jun 17, 2013 at 03:43:48AM +0000, Jeff Roberson wrote:
J>    - Move some stats to be atomics since they would require excessive zone
J>      locking/unlocking with the new import/release paradigm.  Make
J>      zone_free_item simpler now that callers can manage more stats.

How often does this shift of stats from cache to zone happen?

Recently we've made a facility for stats that doesn't use atomics: counter(9).

However, it utilizes UMA zone to achieve that. So if I suggest to use it
in UMA, then at bootstrap we would have a chicken & egg problem. I can try
to solve it and move UMA stats to counter(9), if you like the idea.

-- 
Totus tuus, Glebius.


More information about the svn-src-all mailing list