From: "Martin J. Bligh" <mbligh@mbligh.org>
To: Rohit Seth <rohit.seth@intel.com>
Cc: Andrew Morton <akpm@osdl.org>, Mattia Dongili <malattia@linux.it>,
linux-kernel@vger.kernel.org
Subject: Re: 2.6.14-rc2-mm1
Date: Tue, 27 Sep 2005 15:49:29 -0700 [thread overview]
Message-ID: <1007710000.1127861369@flay> (raw)
In-Reply-To: <1127861347.7258.47.camel@akash.sc.intel.com>
>> > Not every time there is a request for higher order pages. That surely
>> > will defeat the purpose of pcps. But my suggestion is only to drain
>> > when the the global pool is not able to service the request. In the
>> > pathological case where the higher order and zero order requests are
>> > alternating you could have thrashing in terms of pages moving to pcp for
>> > them to move back to global list.
>>
>> OK, seems fair enough. But there's multiple "harder and harder" attempts
>> within __alloc_pages to do that ... which one are you going for? just
>> before we OOM / fail the alloc? That'd be hard to argue with, though I'm
>> unsure what the locking is to dump out other CPUs queues - you going to
>> global IPI and ask them to do it - that'd seem to cause it to race to
>> refill (as you mention).
>>
>
> Thinking of initiating this drain operation after the swapper daemon is
> woken up. hopefully that will allow other possible pages to be put back
> on freelist and reduce the possible thrash of pages between freemem pool
> and pcps.
OK, but waking up kswapd doesn't indicate a low memory condition.
It's standard procedure .... we'll have to wake it up whenever we dip
below the high watermarks. Perhaps before dropping into direct reclaim
would be more appropriate?
> As a first step, I will be draining the local cpu's pcp. IPI or lazy
> purging of pcps could be used as a a very last resort to drain other
> CPUs pcps for the scnearios where nothing else has worked to get more
> pages. For these extreme low memory conditions I'm not sure if we
> should worry about thrashing any more than having free pages lying
> around and not getting used.
Sounds fair.
>> >> Could you elaborate on what the benefits were from this change in the
>> >> first place? Some page colouring thing on ia64? It seems to have way more
>> >> downside than upside to me.
>> >
>> > The original change was to try to allocate a higher order page to
>> > service a batch size bulk request. This was with the hope that better
>> > physical contiguity will spread the data better across big caches.
>>
>> OK ... but it has an impact on fragmentation. How much benefit are you
>> getting?
>
> Benefit is in terms of reduced performance variation (and expected
> throughput) of certain workloads from run to run on the same kernel.
Mmmm. how much are you talking about in terms of throughput, and on what
platforms? all previous attempts to measure page colouring seemed to
indicate it did nothing at all - maybe some specific types of h/w are
more susceptible?
M.
next prev parent reply other threads:[~2005-09-27 22:49 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 5:28 2.6.14-rc2-mm1 Andrew Morton
2005-09-22 6:35 ` 2.6.14-rc2-mm1 Joel Becker
2005-09-22 6:46 ` 2.6.14-rc2-mm1 Reuben Farrelly
2005-09-22 7:03 ` 2.6.14-rc2-mm1 Andrew Morton
2005-09-22 18:59 ` 2.6.14-rc2-mm1 Martin J. Bligh
2005-09-22 19:52 ` 2.6.14-rc2-mm1 Andrew Morton
2005-09-22 20:14 ` 2.6.14-rc2-mm1 Martin J. Bligh
2005-09-23 0:28 ` 2.6.14-rc2-mm1 Martin J. Bligh
2005-09-22 22:28 ` 2.6.14-rc2-mm1 - ide problems ? Badari Pulavarty
2005-09-22 23:39 ` Andrew Morton
2005-09-22 19:50 ` tty update speed regression (was: 2.6.14-rc2-mm1) Alexey Dobriyan
2005-09-22 21:49 ` Alexey Dobriyan
2005-09-23 0:08 ` Nishanth Aravamudan
2005-09-23 17:12 ` Nish Aravamudan
2005-09-23 18:42 ` Alexey Dobriyan
2005-09-23 19:07 ` Nishanth Aravamudan
2005-09-23 19:42 ` Alexey Dobriyan
2005-09-23 21:32 ` Nishanth Aravamudan
2005-09-24 17:43 ` 2.6.14-rc2-mm1 Mattia Dongili
2005-09-24 17:58 ` 2.6.14-rc2-mm1 Mattia Dongili
2005-09-24 18:23 ` 2.6.14-rc2-mm1 Andrew Morton
2005-09-26 19:33 ` 2.6.14-rc2-mm1 Seth, Rohit
2005-09-27 18:57 ` 2.6.14-rc2-mm1 Martin J. Bligh
2005-09-27 20:05 ` 2.6.14-rc2-mm1 Rohit Seth
2005-09-27 21:18 ` 2.6.14-rc2-mm1 Martin J. Bligh
2005-09-27 21:51 ` 2.6.14-rc2-mm1 Rohit Seth
2005-09-27 21:59 ` 2.6.14-rc2-mm1 Martin J. Bligh
2005-09-27 22:49 ` 2.6.14-rc2-mm1 Rohit Seth
2005-09-27 22:49 ` Martin J. Bligh [this message]
2005-09-27 23:16 ` 2.6.14-rc2-mm1 Rohit Seth
2005-09-27 7:13 ` 2.6.14-rc2-mm1 (Oops, possibly Netfilter related?) Reuben Farrelly
2005-09-27 7:44 ` Andrew Morton
2005-09-27 18:59 ` Martin J. Bligh
2005-10-02 17:13 ` Paul Jackson
2005-10-02 21:31 ` Martin J. Bligh
2005-10-03 17:20 ` Rohit Seth
2005-10-03 17:56 ` Martin J. Bligh
-- strict thread matches above, loose matches on Subject: below --
2005-09-25 22:00 2.6.14-rc2-mm1 Paul Blazejowski
2005-09-25 23:44 ` 2.6.14-rc2-mm1 Andrew Morton
2005-09-26 4:32 ` 2.6.14-rc2-mm1 Carlo Calica
2005-09-28 4:56 ` 2.6.14-rc2-mm1 Paul Blazejowski
2005-09-28 19:07 ` 2.6.14-rc2-mm1 Carlo Calica
2005-09-26 7:14 ` 2.6.14-rc2-mm1 Tim Schmielau
2005-09-28 5:01 ` 2.6.14-rc2-mm1 Paul Blazejowski
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=1007710000.1127861369@flay \
--to=mbligh@mbligh.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=malattia@linux.it \
--cc=rohit.seth@intel.com \
/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