Thread (34 messages) 34 messages, 12 authors, 2004-02-05

Re: Active Memory Defragmentation: Our implementation & problems

From: IWAMOTO Toshihiro <hidden>
Date: 2004-02-04 07:50:33
Also in: lkml

At 03 Feb 2004 23:10:52 -0800,
Dave Hansen wrote:
remap_onepage() is quite a function.  300 lines.  It sure does cover a
lot of ground. :)

Defragmentation is a bit easier than removal because it isn't as
mandatory.  Instead of having to worry about waiting on things like
writeback, the defrag code can just bail.  
Waiting for !pagewriteback and writing back page at the beginning of
remap_onepage() are a sort of "easy part".
We need to wait for exclusive access of a page before copying anyway,
and interesting things such as vmtruncate can happen while waiting for
it.

I don't think the code can be much shorter without assuming a single
processor !CONFIG_PREEMPT system.

--
IWAMOTO Toshihiro
--
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:"aart@kvack.org"> aart@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help