RFT Exposing Zone Sleeps

Sean Bruno seanbru at yahoo-inc.com
Mon Jun 14 17:43:11 UTC 2010


So, after some modifications and guidance from rwatson, alc and others,
I've modified this patch a bit.  The end result is that a sleep on slab
alloc counter is displayed with a "vmstat -z".  This can be used for
diagnostics of low memory situations and has been VERY handy at Yahoo.

I've removed the sysctl to eliminate some heartache, moved the sleep
count into a proper place in the data structure, properly instrumented
the debugger function and returned the #ifdef.


Patch provided against -current.  Tested on amd64 and x86

Sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sleep_stat.diff
Type: text/x-patch
Size: 7391 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100614/74cc17b7/sleep_stat.bin


More information about the freebsd-hackers mailing list