mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question about balance_classzone in mm/page_alloc.c
@ 2001-11-22 21:22 Patrick Mau
  0 siblings, 0 replies; only message in thread
From: Patrick Mau @ 2001-11-22 21:22 UTC (permalink / raw)
  To: Linux Kernel

Dear Kernel Developers,

this question could probably be answered bt Andrea Arcangeli ?

I added a prink to balance_classzone in 2.4.15-pre9.
The message is not accurate because I moved it there,
but anyway ...

--- linux-2.4.15-9/mm/page_alloc.c	Thu Nov 22 19:53:46 2001
+++ work-2.4.15-9/mm/page_alloc.c	Thu Nov 22 22:02:15 2001
@@ -251,6 +251,8 @@
 		local_pages = &current->local_pages;
 
 		if (likely(__freed)) {
+                        printk(KERN_DEBUG "zone_balance: %d pages freed\n", current->nr_local_pages);
+
 			/* pick from the last inserted so we're lifo */
 			entry = local_pages->next;
 			do {

I bootet with mem=64M and started KDE/Konqueror and did a
bonnie++ run with 256M filesize. (I did not let it finish though).

The count of current->nr_local_pages from syslog shows always
'1'. Maybe I don't understand the code, but balance_classzone is
very often called (>20 times during one second according to syslog).
I could append syslog output, but it's pretty boring.

My question is, whats the logic behind those nr_local_pages
and the lifo while loop, when it's always called for one page ?

I had to kill bonnie++ and KDE because the box was absolutely
trashing and did not respond to anything.

thanks for clarifying.
Patrick

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-22 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-22 21:22 Question about balance_classzone in mm/page_alloc.c Patrick Mau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®