public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Mel Gorman <mel@csn.ul.ie>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>,
	Andy Whitcroft <apw@shadowen.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Bias the location of pages freed for min_free_kbytes in the same MAX_ORDER_NR_PAGES blocks
Date: Sun, 18 Mar 2007 10:12:59 -0800	[thread overview]
Message-ID: <20070318101259.f6e524f2.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0703181104140.29429@skynet.skynet.ie>

On Sun, 18 Mar 2007 11:35:36 +0000 (GMT) Mel Gorman <mel@csn.ul.ie> wrote:

> > But let me leap ahead of myself.
> >
> >> CONFIG_PAGE_GROUP_BY_MOBILITY
> >
> > Why does this config item exist?  It's not good to have some mysterious
> > knob which affects mm behaviour at compile time.  We need to make up our
> > minds and stick with it.
> >
> 
> The configuration item exists because there were concerns over the memory 
> footprint and cache line footprint. It was introduced to address that 
> concern and also so that it would be possible to compare the performance 
> behavior of anti-fragmentation. Your comment rang a bell though so I 
> searched the archives to see this comment from Andi Kleen;
> 
> ===
> If anything this should be a boot time option or perhaps sysctl, not a 
> config. In general CONFIGs that change runtime behaviour are evil - just 
> makes changing the option more painful, causes problems for distribution 
> users, doesn't make much sense, etc.etc.
> 
> Also #ifdef as a documentation device is a really really scary concept.
> Yuck.
> ===
> 
> A sysctl would avoid any cache line footprint but not the memory overhead 
> because the freelists in struct zone as those freelists would still exist. 
> I could make the option depend on CONFIG_EMBEDDED for the zone overhead. 
> Would that make sense or would it be preferable to ditch the option 
> altogether?
> 
> I'll start looking at doing a sysctl so it can be disabled at runtime if 
> necessary. I strongly suspect that it cannot be enabled again once 
> disabled but I don't see that as a problem as such.

How much additional memory consumption are we expecting here?

Whether it's runtime or compile-time, the optionality is not good.

  reply	other threads:[~2007-03-18 18:13 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-08  4:18 2.6.21-rc3-mm1 Andrew Morton
2007-03-08  9:59 ` ext4, wireless (was Re: 2.6.21-rc3-mm1) Jeff Garzik
2007-03-08 14:50 ` 2.6.21-rc3-mm1 John W. Linville
2007-03-08 16:37   ` 2.6.21-rc3-mm1 Dave Jones
2007-03-08 17:56 ` 2.6.21-rc3-mm1 Valdis.Kletnieks
2007-03-08 18:34   ` 2.6.21-rc3-mm1 John W. Linville
2007-03-08 20:27     ` 2.6.21-rc3-mm1 Valdis.Kletnieks
2007-03-08 20:50 ` 2.6.21-rc3-mm1 Michal Piotrowski
2007-03-10  2:18   ` 2.6.21-rc3-mm1 Andrew Morton
2007-03-10 15:45     ` 2.6.21-rc3-mm1 Paul E. McKenney
     [not found]       ` <6bffcb0e0703111002t75a8ac51vcce7d52684e04a9d@mail.gmail.com>
2007-03-12  4:41         ` 2.6.21-rc3-mm1 Paul E. McKenney
2007-03-09 11:40 ` 2.6.21-rc3-mm1 Frederik Deweerdt
2007-03-15  9:22   ` ipw2200: can't load firmware (was Re: 2.6.21-rc3-mm1) Frederik Deweerdt
2007-03-10  8:33 ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-10  8:48   ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-10  8:58   ` 2.6.21-rc3-mm1 Andrew Morton
2007-03-10  9:18     ` 2.6.21-rc3-mm1 Greg KH
2007-03-10 12:43       ` 2.6.21-rc3-mm1 Jiri Kosina
2007-03-10 15:36         ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-10 16:00           ` [linux-usb-devel] 2.6.21-rc3-mm1 Alan Stern
2007-03-10 16:36             ` Mariusz Kozlowski
2007-03-10 19:02               ` Alan Stern
2007-03-12 20:50                 ` Mariusz Kozlowski
2007-03-12 20:53                   ` Jiri Kosina
2007-03-10 13:32 ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-12 18:14 ` 2.6.21-rc3-mm1 Radoslaw Szkodzinski
2007-03-14 19:06 ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-15  1:07   ` 2.6.21-rc3-mm1 Andrew Morton
2007-03-15  6:09     ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-15 10:16     ` 2.6.21-rc3-mm1 Mel Gorman
2007-03-15 15:37       ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-15 19:59         ` 2.6.21-rc3-mm1 Mel Gorman
2007-03-16  6:43           ` 2.6.21-rc3-mm1 Mariusz Kozlowski
2007-03-16 10:03             ` 2.6.21-rc3-mm1 Mel Gorman
2007-03-17 18:26     ` [PATCH] Bias the location of pages freed for min_free_kbytes in the same MAX_ORDER_NR_PAGES blocks Mel Gorman
2007-03-18  8:22       ` Andrew Morton
2007-03-18 11:35         ` Mel Gorman
2007-03-18 18:12           ` Andrew Morton [this message]
2007-03-18 19:05             ` Mel Gorman
2007-03-18 19:28               ` Andrew Morton
2007-03-18 20:08                 ` Mel Gorman
2007-03-18 20:45                   ` Andrew Morton
2007-03-18 22:21                     ` Mel Gorman

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=20070318101259.f6e524f2.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=apw@shadowen.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.kozlowski@tuxland.pl \
    --cc=mel@csn.ul.ie \
    /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