On executing kmem -i over dump we are seeing these results
crash> kmem -i
PAGES TOTAL PERCENTAGE
TOTAL MEM 128778 503 MB ----
FREE 44244 172.8 MB 34% of TOTAL MEM
USED 84534 330.2 MB 65% of TOTAL MEM
SHARED 45690 178.5 MB 35% of TOTAL MEM
BUFFERS 4371 17.1 MB 3% of TOTAL MEM
CACHED 51358 200.6 MB 39% of TOTAL MEM
SLAB 0 0 0% of TOTAL MEM
TOTAL HIGH 0 0 0% of TOTAL MEM
This is due to the fact that
o mi->get_slabs field is turning out to be zero in dump_mem_map()
function. This is happening as vt->PG_slab field is not getting updated
with value(10 in this case) in vm_init(). This is happening as pte field
is taken from page structure.
o Probable solutions: Hard code value vt->PG_slab ??
o The output is breaking as totalhigh_pages is coming out zero,
So part of code in function dump_kmeminfo()
pct = freehighmem_pages ?
(freehighmem_pages * 100)/totalhigh_pages : 0;
Cause Arithmetic calculation error.
Still looking into the problem.
Regards
Sharyathi Nagesh