From: Robin Holt <holt@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Patch 0/3] Page table quicklist fixups Rev 3.
Date: Fri, 04 Mar 2005 08:46:27 +0000 [thread overview]
Message-ID: <20050304084627.GA9503@lnx-holt.americas.sgi.com> (raw)
In-Reply-To: <20050303212359.GA732@lnx-holt.americas.sgi.com>
On Thu, Mar 03, 2005 at 01:57:49PM -0800, Luck, Tony wrote:
> >Here are the changes again. I have not received a response from you
> >about the restructered shrink routine. I have incorporated David
> >Mosberger's recommendations.
>
> Your new shrink routine looks ok, but you didn't address the
> double role played by NODE_FREE_PAGES_SHIFT ... you just dropped the
> comment that explained one of its uses - which isn't what I'd hoped
> for :-)
The comment was left from the earlier set of patches where it
had a single role. In that patch, we picked a number of pages to
free, freed that many, and went on with life expecting the next
pass to free a group. Since the changes gave it a more complex
role and the code was not that complex, I figured I would remove
the comment and let anybody planning on changing it in the future
read the code to figure out the two roles.
>
> I'm also a bit uncomfortable with:
>
> + preempt_enable();
> + preempt_disable();
>
> For a kernel with CONFIG_PREEMPT=n, this is a no-op ... so if there
> is a ton of extra pages on the quicklist, we'll loop freeing 16 at
> a time and re-computing how many to free, with no pause to take a
> breath (or a clock tick).
What do you want me to do. I don't see anywhere else in the kernel
that these two lines are directly adjacent. Most places that do
the disable/enable are in a function which does one thing. That is
occasionally contained inside a larger loop. We can not do that since
part of our outer loop control is based on the per_cpu variable we are
expecting to not change. I suppose I could elminitate the disable/enable
entirely. I haven't thought all the way through the possibilities,
but I would guess we could free a couple extra pages, but who cares.
You tell me what to do.
Robin
next prev parent reply other threads:[~2005-03-04 8:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-03 21:23 [Patch 0/3] Page table quicklist fixups Rev 3 Robin Holt
2005-03-03 21:57 ` Luck, Tony
2005-03-04 8:03 ` Zou Nan hai
2005-03-04 8:46 ` Robin Holt [this message]
2005-03-04 14:55 ` Robin Holt
2005-03-04 16:25 ` Robin Holt
2005-03-04 19:58 ` Luck, Tony
2005-03-04 22:33 ` Chen, Kenneth W
2005-03-07 12:57 ` Robin Holt
2005-03-08 23:56 ` Luck, Tony
2005-03-15 19:33 ` [Patch 0/3] Page table quicklist fixups Rev 4 Robin Holt
2005-03-16 0:24 ` Luck, Tony
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=20050304084627.GA9503@lnx-holt.americas.sgi.com \
--to=holt@sgi.com \
--cc=linux-ia64@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