Zswap

From ArchWiki
Revision as of 12:23, 23 May 2014 by Siot (talk | contribs) (Added links with related info)
Jump to navigation Jump to search

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements. See Help:Style for reference.Tango-edit-clear.png

Reason: Grammar. (Discuss in Talk:Zswap#)

"Zswap is a Linux kernel feature providing a compressed write-back cache for swapped pages. Instead of moving memory pages to a swap device when they are to be swapped out, zswap performs their compression and then stores them into a memory pool dynamically allocated inside system's RAM." - Wikipedia

In simple words, zswap - no swap as zram(compcache) or swap file/partition. Zswap only interlayer, for work this feature you need manually setup swap partition/file.

Get in work

For enable zswap, add to kernel boot options (line) this:

  zswap.enabled=1

For customize maximum allowing size:

  zswap.max_pool_percent=25

For specify compress algorithm:

  zswap.compressor=lzo #deflate

See also