linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Seth, Rohit" <rohit.seth@intel.com>
To: akpm@osdl.org
Cc: "Seth, Rohit" <rohit.seth@intel.com>,
	linux-mm@kvack.org, Mattia Dongili <malattia@linux.it>,
	linux-kernel@vger.kernel.org
Subject: [patch] Reset the high water marks in CPUs pcp list
Date: Wed, 28 Sep 2005 10:50:09 -0700	[thread overview]
Message-ID: <20050928105009.B29282@unix-os.sc.intel.com> (raw)

Recent changes in page allocations for pcps has increased the high watermark for these lists.  This has resulted in scenarios where pcp lists could be having bigger number of free pages even under low memory conditions. 

 	[PATCH]: Reduce the high mark in cpu's pcp lists.
 
 	Signed-off-by: Rohit Seth <rohit.seth@intel.com>


--- linux-2.6.14-rc2-mm1.org/mm/page_alloc.c	2005-09-27 10:03:51.000000000 -0700
+++ linux-2.6.14-rc2-mm1/mm/page_alloc.c	2005-09-27 18:01:21.000000000 -0700
@@ -1859,15 +1859,15 @@
 	pcp = &p->pcp[0];		/* hot */
 	pcp->count = 0;
 	pcp->low = 0;
-	pcp->high = 6 * batch;
+	pcp->high = 4 * batch;
 	pcp->batch = max(1UL, 1 * batch);
 	INIT_LIST_HEAD(&pcp->list);
 
 	pcp = &p->pcp[1];		/* cold*/
 	pcp->count = 0;
 	pcp->low = 0;
-	pcp->high = 2 * batch;
 	pcp->batch = max(1UL, batch/2);
+	pcp->high = pcp->batch + 1;
 	INIT_LIST_HEAD(&pcp->list);
 }
 

             reply	other threads:[~2005-09-28 17:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-28 17:50 Seth, Rohit [this message]
2005-09-28 20:01 ` [patch] Reset the high water marks in CPUs pcp list Christoph Lameter
2005-09-28 20:26   ` Rohit Seth
2005-09-28 21:09     ` Christoph Lameter
2005-09-28 21:32       ` Rohit Seth
2005-09-28 21:56         ` Christoph Lameter
2005-09-29  1:12           ` Rohit Seth
2005-09-29  6:49           ` Nick Piggin
2005-09-29 16:34             ` Rohit Seth
2005-09-28 21:18   ` Martin J. Bligh
2005-09-28 21:55     ` Christoph Lameter

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=20050928105009.B29282@unix-os.sc.intel.com \
    --to=rohit.seth@intel.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=malattia@linux.it \
    /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;
as well as URLs for NNTP newsgroup(s).