| config ZSMALLOC | |
| tristate "Memory allocator for compressed pages" | |
| # X86 dependency is because of the use of __flush_tlb_one and set_pte | |
| # in zsmalloc-main.c. | |
| # TODO: convert these to portable functions | |
| depends on X86 | |
| default n | |
| help | |
| zsmalloc is a slab-based memory allocator designed to store | |
| compressed RAM pages. zsmalloc uses virtual memory mapping | |
| in order to reduce fragmentation. However, this results in a | |
| non-standard allocator interface where a handle, not a pointer, is | |
| returned by an alloc(). This handle must be mapped in order to | |
| access the allocated space. |