public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Performance degradation seen after using one list for hot/cold pages.
       [not found]   ` <20090622100632.GB3981@csn.ul.ie>
@ 2009-07-08 21:29     ` Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2009-07-08 21:29 UTC (permalink / raw)
  To: Mel Gorman
  Cc: kamezawa.hiroyu, narayanan.g, linux-mm, cl, kosaki.motohiro,
	stable, linux-kernel, linux-scsi

(cc stable, linux-kernel and linux-scsi)

> On Mon, 22 Jun 2009 11:06:32 +0100 Mel Gorman <mel@csn.ul.ie> wrote:
> [PATCH] page-allocator: Preserve PFN ordering when __GFP_COLD is set
> 
> The page allocator tries to preserve contiguous PFN ordering when returning
> pages such that repeated callers to the allocator have a strong chance of
> getting physically contiguous pages, particularly when external fragmentation
> is low. However, of the bulk of the allocations have __GFP_COLD set as
> they are due to aio_read() for example, then the PFNs are in reverse PFN
> order. This can cause performance degration when used with IO
> controllers that could have merged the requests.
> 
> This patch attempts to preserve the contiguous ordering of PFNs for
> users of __GFP_COLD.

Thanks.

I'll add the rather important text:

  Fix a post-2.6.24 performance regression caused by
  3dfa5721f12c3d5a441448086bee156887daa961 ("page-allocator: preserve PFN
  ordering when __GFP_COLD is set").

This was a pretty major screwup.

This is why changing core MM is so worrisome - there's so much secret and
subtle history to it, and performance dependencies are unobvious and quite
indirect and the lag time to discover regressions is long.

Narayanan, are you able to quantify the regression more clearly?  All I
have is "2 MBps lower" which isn't very useful.  What is this as a
percentage, and with what sort of disk controller?  Thanks.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-08 21:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <70875432E21A4185AD2E007941B6A792@sisodomain.com>
     [not found] ` <20090622164147.720683f8.kamezawa.hiroyu@jp.fujitsu.com>
     [not found]   ` <20090622100632.GB3981@csn.ul.ie>
2009-07-08 21:29     ` Performance degradation seen after using one list for hot/cold pages Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox