lkml.org 
[lkml]   [2006]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Dynamically allocated pageflags
From
Date
On Thu, 2006-02-02 at 14:31 +0100, Andi Kleen wrote:
> On Thursday 02 February 2006 12:11, Nigel Cunningham wrote:
> > This is my latest revision of the dynamically allocated pageflags patch.
> >
> > The patch is useful for kernel space applications that sometimes need to flag
> > pages for some purpose, but don't otherwise need the retain the state. A prime
> > example is suspend-to-disk, which needs to flag pages as unsaveable, allocated
> > by suspend-to-disk and the like while it is working, but doesn't need to
> > retain any of this state between cycles.
>
> It looks like total overkill for a simple problem to me. And is there really
> any other user of this other than swsusp?

We'll probably end up needing a similar mechanism for memory hotplug.
What I need is a mechanism that is exceedingly quick during normal
runtime, any maybe marginally slower during a memory remove operation.

We basically put three or so hooks into some crucial parts of the page
allocator to grab out pages which we want to remove so that they never
make it back into the allocator or out to the system.

Those hooks have to be _really_ fast at runtime, obviously. In my
testing code, I always just added a page flag, but that's only because I
was being lazy when I coded it up.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-02 17:50    [W:1.984 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site