mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "yunfeng zhang" <zyf.zeroos@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Improvement on memory subsystem
Date: Mon, 24 Jul 2006 17:01:53 +0800	[thread overview]
Message-ID: <4df04b840607240201l19f95f8cu12dca42de71dba69@mail.gmail.com> (raw)
In-Reply-To: <4df04b840607180303i3d8c8bd0o4d2a24752ec2e150@mail.gmail.com>

How to let memory subsystem allocate bigger consecutive memory pages? In current
Linux, to driver programmer it's always failed to issue a request to alloc_pages
with a enough larger order parameter, or it's diffult to allocate a bigger
consecutive physical memory block.

The reason causing the problem, I think, are the items listed below
1) Core space has a static mapping relationship with physical memory pages. So
once a core page is allocated, its core address is also fixed, it prevents the
physical pages around it to conglomerate together.
2) Current physical page management arithmetic is buddy arithmetic. The main
advantage of its is that pages managed by it is always aligned by 2 power. But,
is it necessary or there is any hardware which need physical memory pages
aligned by 2 or more power?

The solution is
1) Using dynamic page mapping on core space. So we can move all core pages
freely anytime to conglomerate bigger consecutive memory pages, a new background
daemon thread -- RemapDaemon can do conglomeration periodly.
2) Using another page management arithmetic instead of buddy, the minimum unit
of new arithmetic should be page. In fact, I think dlmalloc arithmetic is a good
candidate, it's also page conglomeration-affinity.

  parent reply	other threads:[~2006-07-24  9:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 10:03 yunfeng zhang
2006-07-18 12:18 ` Valdis.Kletnieks
2006-07-19  3:44   ` yunfeng zhang
2006-07-19  9:18   ` Ian Stirling
2006-07-19 14:56     ` Valdis.Kletnieks
2006-07-18 16:25 ` Pekka Enberg
2006-07-19  3:21   ` yunfeng zhang
2006-07-19  8:30     ` Pekka Enberg
2006-07-19 10:13       ` yunfeng zhang
2006-07-19 10:35         ` Pekka Enberg
2006-07-24  9:01 ` yunfeng zhang [this message]
2006-07-24 14:55   ` David Lang
2006-07-25  8:33     ` yunfeng zhang
2006-08-23 10:39 ` yunfeng zhang

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=4df04b840607240201l19f95f8cu12dca42de71dba69@mail.gmail.com \
    --to=zyf.zeroos@gmail.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®