lkml.org 
[lkml]   [2000]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch-2.4.0-test11] show_mem() to dump free pages
Hi Linus,

In arch/i386/mm/init.c:show_mem() we calculate the number of free pages
but don't printk it out. Therefore, we must either a) remove the variable
and the calculation or b) make use of it. I think b) is obviously better.

The patch below was tested under 2.4.0-test11.

Regards,
Tigran

--- arch/i386/mm/init.c.0 Tue Nov 21 22:00:52 2000
+++ arch/i386/mm/init.c Tue Nov 21 22:00:36 2000
@@ -221,6 +221,7 @@
}
printk("%d pages of RAM\n", total);
printk("%d pages of HIGHMEM\n",highmem);
+ printk("%d free pages\n",free);
printk("%d reserved pages\n",reserved);
printk("%d pages shared\n",shared);
printk("%d pages swap cached\n",cached);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.059 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site