Re: Locking comment on shrink_caches()

From: David S. Miller (
Date: Tue Sep 25 2001 - 15:15:28 EST

   From: Marcelo Tosatti <>
   Date: Tue, 25 Sep 2001 15:40:23 -0300 (BRT)
   We can simply lock the pagecachelock and the pagemap_lru_lock at the
   beginning of the cleaning function. page_launder() use to do that.
   Thats why I asked Andrea if there was long hold times by shrink_caches().
Ok, I see.

I do think it's silly to hold the pagecache_lock during pure scanning
activities of shrink_caches().

It is known that pagecache_lock is the biggest scalability issue on
large SMP systems, and thus the page cache locking patches Ingo and
myself did.

Franks a lot,
David S. Miller
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

This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:33 EST