From: Rohit Seth <rohit.seth@intel.com>
To: Andrew Morton <akpm@osdl.org>
Cc: torvalds@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]: Making high and batch sizes of per_cpu_pagelists configurable
Date: Fri, 09 Dec 2005 09:58:05 -0800 [thread overview]
Message-ID: <1134151085.7131.66.camel@akash.sc.intel.com> (raw)
In-Reply-To: <20051208192032.6387f638.akpm@osdl.org>
On Thu, 2005-12-08 at 19:20 -0800, Andrew Morton wrote:
> Rohit Seth <rohit.seth@intel.com> wrote:
> >
> > + if ((high/4) > (PAGE_SHIFT * 8))
> > + pcp->batch = PAGE_SHIFT * 8;
>
> hm. What relationship is there between log2(PAGE_SIZE) and the batch
> quantity? I'd have thought that if anything, we'd want to make the
> batch sizes smaller for larger PAGE_SIZE. Or something.
>
There is really no relationship between batch with either
log2(PAGE_SIZE) or PAGE_SIZE. Larger page size machines typically go
with larger memory configs so it is okay to have bigger batch count for
those. But this can be worked either way. It is just a number of pages
that will get pulled (and in some cases pushed back) from buddy
allocator at any time. My initial attempts to make this some function
of power of 2 and such have not gone anywhere.
> > + for_each_zone(zone) {
> > + for_each_online_cpu(cpu) {
> > + unsigned long high;
> > + high = zone->present_pages /
> percpu_pagelist_fraction;
> > + setup_pagelist_highmark(zone_pcp(zone, cpu),
> high);
>
> What happens if a CPU comes online afterwards?
>
>
Good point. Right now the new cpu will use the original boot settings
for the pagelist. I will send you a smaller patch to correct that.
Basically check at the setup time if the percpu_pagelist_fraction is set
or not and build the pagelist accordingly.
Thanks,
-rohit
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2005-12-09 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-09 3:00 Rohit Seth
2005-12-09 3:20 ` Andrew Morton
2005-12-09 17:58 ` Rohit Seth [this message]
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=1134151085.7131.66.camel@akash.sc.intel.com \
--to=rohit.seth@intel.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=torvalds@osdl.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