Re: [patch 2] mm: speculative get_page

From: Pavel Machek
Date: Wed Jun 29 2005 - 16:26:55 EST


Hi!

> > > > I think there are a a few ways that bits can be reclaimed if we
> > > > start digging. swsusp uses 2 which seems excessive though may be
> > > > fully justified.
> > >
> > > They (swsusp) actually don't need the bits at all until suspend-time, at
> > > all. Somebody coded up a "dynamic page flags" patch that let them kill
> > > the page->flags use, but it didn't really go anywhere. Might be nice if
> > > someone dug it up. I probably have a copy somewhere.
> >
> > Unfortunately that patch was rather ugly :-(.
>
> Do you think the idea was ugly, or just the implementation? Is there
> something that you'd rather see?

Well, implementation was ugly and idea was unneccesary because we
still had bits left.

We could spare bits for swsusp by defining "PageReserved | PageLocked
=> PageNosave" etc.... simply by choosing some otherwise unused
combinations. swsusp is not performance critical...
Pavel
--
Boycott Kodak -- for their patent abuse against Java.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/