linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andy Whitcroft <apw@shadowen.org>
To: Hiroyuki KAMEZAWA <kamezawa.hiroyu@jp.fujitsu.com>
Cc: lhms-devel@lists.sourceforge.net, linux-mm@kvack.org
Subject: Re: [Lhms-devel] CONFIG_NONLINEAR for small systems
Date: Tue, 19 Oct 2004 09:16:54 +0100	[thread overview]
Message-ID: <4174CD76.8040801@shadowen.org> (raw)
In-Reply-To: <41749860.9070503@jp.fujitsu.com>

Hiroyuki KAMEZAWA wrote:

> We have *future* issue to hotplug kernel memory and kernel's virtual 
> address renaming
> will be used for it.
> As you say, if kernel memory is not remaped,  keeping V=P+c looks good.
> But our current direction is to enable kernel-memory-hotplug, which
> needs kernel's virtual memory renaming, I think.

Yes, I think its very likely that memory hot-plug requires us to break 
V=P+c in a lot of cases - though perhaps not all.  Indeed it was that 
work that started me thinking about using a simplified form to solve 
other problems for my 'crippled' 32bit systems.

What I am trying to say in my comments to this patch is that although 
generalised NONLINEAR will need and should provide this remap, that 
there are a class of systems and problem which don't need it (and the 
costs associated with it).  I'd like to see them supported as a 
sub-option to NONLINEAR... ie as an nonlinear option to maintain V=P+c. 
  In that this style of layout would be one of those that nonlinear offers.

> NONLINEAR_OPTIMISED looks a bit complicated.
> Can replace them with some other name ? Hmm...NONLINEAR_NOREMAP ?

Yes, that is a dumb name, as later I would also see the option to keep 
V=P+c as an optimisation too.  I'll rename it.

>> This patch set is implemented as a proof-of-concept to show
>> that a simplified CONFIG_NONLINEAR based implementation could provide
>> sufficient flexibility to solve the problems for these systems.
>>
> Very interesting. But I'm not sure whether we can use more page->flags 
> bit :[.
> I recommend you not to use more page->flags bits.

It should not use anymore flags bits.  You probabally got that 
impression as I replace the MAX_NODES_SHIFT (at 6) with a 
FLAGS_TOTAL_SHIFT (at 8) in 100-cleanup-node-zone.  What this is doing 
is replacing the MAX_NODES_SHIFT and MAX_ZONE_SHIFT (at 2) as a upper 
bound on the number of bits available, 8 in total.  When the nonlinear 
patch is layered on top we then have NODES, ZONES and SECTIONS competing 
for space flags, but they cannot consume more than these 8 bits.  I then 
choose to drop the NODE and replace it with SECTION to maintain the size 
constraint.  Obviously on the 64bit systems there is almost no limit and 
all three are stored.

Thanks for looking.

-apw
--
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:"aart@kvack.org"> aart@kvack.org </a>

      reply	other threads:[~2004-10-19  8:16 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 14:24 Andy Whitcroft
2004-10-18 14:32 ` 050 bootmem use NODE_DATA Andy Whitcroft
2004-10-26 18:16   ` Dave Hansen
2004-10-18 14:33 ` 060 refactor setup_memory i386 Andy Whitcroft
2004-10-18 14:34 ` 080 alloc_remap i386 Andy Whitcroft
2004-10-18 14:35 ` 100 cleanup node zone Andy Whitcroft
2004-10-18 14:35 ` 150 nonlinear Andy Whitcroft
2004-10-26 18:36   ` Dave Hansen
2004-10-26 19:07     ` [Lhms-devel] " Mika Penttilä
2004-10-26 19:42       ` Dave Hansen
2004-10-26 20:41         ` Mika Penttilä
2004-10-26 20:55           ` Dave Hansen
2004-10-26 21:20             ` Mika Penttilä
2004-10-26 21:27               ` Dave Hansen
2004-10-26 21:38                 ` Mika Penttilä
2004-10-26 21:41                   ` Dave Hansen
2004-10-26 21:55                     ` Mika Penttilä
2004-10-26 21:53                       ` Dave Hansen
2004-10-26 22:01                         ` Mika Penttilä
2004-10-28 11:07     ` Andy Whitcroft
2004-10-18 14:36 ` 160 nonlinear i386 Andy Whitcroft
2004-10-18 14:36 ` 170 nonlinear ppc64 Andy Whitcroft
2004-10-18 15:17 ` [Lhms-devel] CONFIG_NONLINEAR for small systems Hirokazu Takahashi
2004-10-18 15:29   ` Andy Whitcroft
2004-10-19  4:30 ` Hiroyuki KAMEZAWA
2004-10-19  8:16   ` Andy Whitcroft [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=4174CD76.8040801@shadowen.org \
    --to=apw@shadowen.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=lhms-devel@lists.sourceforge.net \
    --cc=linux-mm@kvack.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