blob: 8e2c6a05a178fcf8c1f1f3f7db2cf78aa87b03ff [file] [log] [blame]
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 SPARSEMEM && 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.