[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: filecache/swapcache questions [RFC] [RFT] [PATCH] kanoj-mm12-2.3.8
>
> the eventual goal of my adventure is to drop the kernel lock while doing
> the page COW in do_wp_page, since in 2.3.6+, the COW is again protected
> because of race conditions with kswapd. this "protection" serializes all
> page faults behind a very expensive memory copy. what other ways are
> there to protect the COW operation while allowing some parallelism? it
> seems like this is worth a little complexity, IMO.
>
I have already commented on my reservations about holding mmap_sem
in kswapd/try_to_free_pages.
Just thought I would point out that I have been thinking on the
lines of eliminating kernel_lock from the vm code (experimentally
initially under a CONFIG option), but I am yet to come up with
a complete design. My current ideas involve a per mm spinning pte
lock, a sleeping vmalist mutex (which processes never go to sleep
holding). I am still struggling to understand whether a per
page lock is needed or swapcache lock will do.
In any case, if someone on the list is working on something
similar, maybe we can exchange notes offline. Of course, we can
not perturb performance for kernels which does not have the
CONFIG option set. And Linus has to agree its worthwhile doing
this work ....
Thanks.
Kanoj
kanoj@engr.sgi.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/