[lkml]   [2003]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Interesting VM feature?
On Thu, Aug 14, 2003 at 09:17:07PM -0500, wrote:

> What this mempool wants to do is to be able to
> allocate a block of memory and tell the kernel which
> pages from it can be outright discarded, instead of
> swapped out when memory starts to get crowded.

I think you might be able to get what you want with madvise() or perhaps
by mmap()ing new clean pages on top of the pages you want to throw away.

> I'm going to keep reading. If this is already
> implemented, or if the efficiency gains would be
> nil, somebody yell at me before I start crashing my

I would not implement this unless you either know you have a problem
with your mempool swap speed or you are bored. I doubt it is going
to help a lot, and it will certainly simplify your code to leave it
out. If you later find that you have performance problems you can
look into this again.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.048 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site