153233 |
08-Dec-2005 |
rwatson |
Teach umastat about the variable-length array of per-CPU caches at the end of struct uma_zone. It is declared as an array of size [1], but then sized at run-time by UMA to include room for mp_maxid+1 CPUs. We have to copy the uma_zone first at the declared structure size, then check to make sure it's not an internal zone before copying the larger size (UMA internal zones don't use per-CPU caches). This fixes umastat for SMP.
|
153114 |
05-Dec-2005 |
rwatson |
Add a simple KVM tool to dump the kernel state of UMA, including walking the keg/zone lists, summarizing cache state, and walking bucket lists in each zone. I seem to get inconsistent results on SMP, possibly due to local header problems, but it seems to work quite well on UP. This tool requires sufficient privilege to read /dev/mem (or a core dump), and is for debugging purposes rather than administrative monitoring purposes (use vmstat instead).
|