From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Christoph Lameter <clameter@engr.sgi.com>
Cc: linux-mm@kvack.org
Subject: Re: Possible cure for memory fragmentation.
Date: Thu, 22 Dec 2005 17:41:41 +0000 [thread overview]
Message-ID: <43AAE555.9070808@superbug.demon.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.62.0512220908120.7717@schroedinger.engr.sgi.com>
Christoph Lameter wrote:
> Umm. When would the kernel do something like that?
> Also give it different name. realloc has pretty well established
> semantics.
Ok, I will call is kmovefrag() for lack of any better name at the moment.
>
>
>>If the kernel does not wish to move it, kremalloc returns without having done
>>anything.
>
>
> What this all comes down to is to guarantee that only a known number of
> references exist to the data element when you move it. For kremalloc these
> references must be known and all the pointers to the data element must be
> updated if the data is moved. The basic problem is not solved.
>
>
Surely the module that originally called kmalloc should have enough
information to know who is then using the memory pointer, or it could be
redesigned to know enough.
It is therefore my suggestion that the module that originally requested
the kmalloc() call kmovefrag() at a time that suits it( probably
periodically), therefore allowing the kernel to move the fragment if it
wishes. The module that called kmovefrag() can then update all it's
pointers and continue.
It requires implementing kmovefrag() calls all over the different
modules, but this goes some way to solving the "basic problem."
James
--
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:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2005-12-22 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-21 11:46 James Courtier-Dutton
2005-12-21 19:04 ` Christoph Lameter
2005-12-22 15:27 ` James Courtier-Dutton
2005-12-22 17:14 ` Christoph Lameter
2005-12-22 17:41 ` James Courtier-Dutton [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=43AAE555.9070808@superbug.demon.co.uk \
--to=james@superbug.demon.co.uk \
--cc=clameter@engr.sgi.com \
--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