Re: Removing swap lockmap...

Eric W. Biederman (ebiederm+eric@ccr.net)
18 Jan 1999 18:34:50 -0600


>>>>> "ZC" == Zlatko Calusic <Zlatko.Calusic@CARNet.hr> writes:

ZC> I removed swap lockmap all together and, to my surprise, I can't
ZC> produce any ill behaviour on my system, not even under very heavy
ZC> swapping (in low memory condition).

ZC> I remember there were some issues when swap lockmap was removed in
ZC> 2.1.89, so it was reintroduced later (processes were dying randomly).

ZC> Question is, why is everything running so smoothly now, even without
ZC> swap lockmap?

For this patch to be safe we need to
A) Fix sysv shm to use the swap cache.
B) garantee that shrink_mmap is the only place that
removes a page from the swap cache, and that it never removes
a page while I/O is in progress, (as Stephen said).

This means a lot of the current cases like delete_from_swap_cache,
and free_page_and_swap_cache need to be removed.

And we need to be very carefull when we break down the swap cache,
and make it an unshared page.

The change to normally remove pages with shrink_mmap is what makes it
mostly safe now.

For 2.3 it should go. For 2.2 it should stay.

Eric

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