<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Sharyathi Nagesh wrote:
<blockquote TYPE=CITE>On executing kmem -i over dump we are seeing these
results
<p>crash> kmem -i
<br>
PAGES TOTAL
PERCENTAGE
<br> TOTAL MEM 128778
503 MB ----
<br> FREE 44244
172.8 MB 34% of TOTAL MEM
<br> USED 84534
330.2 MB 65% of TOTAL MEM
<br> SHARED 45690
178.5 MB 35% of TOTAL MEM
<br> BUFFERS 4371
17.1 MB 3% of TOTAL MEM
<br> CACHED 51358
200.6 MB 39% of TOTAL MEM
<br> SLAB
0 0
0% of TOTAL MEM
<p> TOTAL HIGH 0
0 0% of TOTAL MEM
<p>This is due to the fact that
<br>o mi->get_slabs field is turning out to be zero in dump_mem_map()
<br>function. This is happening as vt->PG_slab field is not getting updated
<br>with value(10 in this case) in vm_init(). This is happening as pte
field
<br>is taken from page structure.
<br> o Probable solutions: Hard
code value vt->PG_slab ??</blockquote>
<tt></tt>
<p><br><tt>That makes the most sense at this point. This is what
I was</tt>
<br><tt>planning for vm_init():</tt>
<br><tt></tt> <tt></tt>
<p><tt>@@ -694,7 +708,8 @@ vm_init(void)</tt>
<br><tt>
vt->PG_slab = 10;</tt>
<br><tt>
else if (THIS_KERNEL_VERSION >= LINUX(2,6,0))</tt>
<br><tt>
vt->PG_slab = 7;</tt>
<br><tt>- }</tt>
<br><tt>+ } else if (THIS_KERNEL_VERSION
>= LINUX(2,6,0))</tt>
<br><tt>+
vt->PG_slab = 7;</tt>
<br><tt> }</tt><tt></tt>
<p><tt> /*</tt>
<br>
<blockquote TYPE=CITE>
<p>o The output is breaking as totalhigh_pages is coming out zero,
<br>So part of code in function dump_kmeminfo()
<br>pct = freehighmem_pages ?
<br>
(freehighmem_pages * 100)/totalhigh_pages : 0;
<br>Cause Arithmetic calculation error.
<p>Still looking into the problem.</blockquote>
<tt>I can't reproduce this one. In your case though, with</tt>
<br><tt>about 500MB, both "freehighmem_pages" and "totalhigh_pages"</tt>
<br><tt>should both be zero, leading to a "pct" setting of 0.</tt>
<br><tt>Are you showing "freehighmem_pages" as non-zero?</tt><tt></tt>
<p><tt>Dave</tt>
<br> </html>