|
|
Subscribe / Log in / New account

Memory allocation in zswap

Memory allocation in zswap

Posted Nov 26, 2015 17:36 UTC (Thu) by sbasu (guest, #105518)
Parent article: The zswap compressed swap cache

I have a question regarding allocation of pool in zswap. It seems that zswap allocates memory for caching on-the-fly whenever it needs to store new compressed pages. But swapping will happen and there will be a page_io request to zswap only when physical memory is full. At that time if zswap is trying to allocate from physical memory (which is already full) will it not get a -ENOMEM error always? Also will it not create more pressure on physical memory that is already trying to swap out pages?


to post comments


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