|
|
Log in / Subscribe / Register

Making swapping scalable

Making swapping scalable

Posted Oct 28, 2016 4:38 UTC (Fri) by caritas (subscriber, #50896)
Parent article: Making swapping scalable

The cluster lock doesn't help scalability of swap space allocation and freeing. For swap space allocation and freeing, the global lock in swap_info_struct will still be used. So we need swap space allocation and freeing batching to reduce its contention. The cluster lock mainly helps operations like swap_duplicate(), swp_swapcount(), etc.


to post comments

Making swapping scalable

Posted Oct 28, 2016 18:20 UTC (Fri) by tim.c.chen (subscriber, #37923) [Link]

Yes, the cluster lock cannot address the swap_info lock contention during swap slot allocation and freeing. The second part of the patch set creates a cache for swap slots allocated and swap slots returned. So the allocation and free operation can be done in batches. That helped to reduce contention on swap_info lock.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds