mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Patrick Mau <mau@oscar.prima.de>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Question about balance_classzone in mm/page_alloc.c
Date: Thu, 22 Nov 2001 22:22:21 +0100	[thread overview]
Message-ID: <20011122222220.A2355@oscar.dorf.de> (raw)

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

                 reply	other threads:[~2001-11-22 21:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011122222220.A2355@oscar.dorf.de \
    --to=mau@oscar.prima.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®