Lines Matching +full:boot +full:- +full:pages
8 Zswap is a lightweight compressed cache for swap pages. It takes pages that are
10 dynamically allocated RAM-based memory pool. zswap basically trades CPU cycles
11 for potentially reduced swap I/O. This trade-off can also result in a
24 drastically reducing life-shortening writes.
26 Zswap evicts pages from compressed cache on an LRU basis to the backing swap
30 Whether Zswap is enabled at the boot time depends on whether
40 When zswap is disabled at runtime it will stop storing pages that are
42 back into memory all of the pages stored in the compressed pool. The
43 pages stored in zswap will remain in the compressed pool until they are
45 pages out of the compressed pool, a swapoff on the swap device(s) will
46 fault back into memory all swapped out pages, including those in the
52 Zswap receives pages for compression from the swap subsystem and is able to
53 evict pages from its own compressed pool on an LRU basis and write them back to
60 pages are freed. The pool is not preallocated. By default, a zpool
62 but it can be overridden at boot time by setting the ``zpool`` attribute,
68 The zbud type zpool allocates exactly 1 page to store 2 compressed pages, which
69 means the compression ratio will always be 2:1 or worse (because of half-full
70 zbud pages). The zsmalloc type zpool has a more complex compressed page
76 with a red-black tree per swap type. The swap offset is the search key for the
90 * max_pool_percent - The maximum percentage of memory that the compressed
94 Kconfig option, but it can be overridden at boot time by setting the
102 compressed pages are not modified; they are left in their own zpool. When a
104 original compressor. Once all pages are removed from an old zpool, the zpool
107 Some of the pages in zswap are same-value filled pages (i.e. contents of the
108 page have same value or repetitive pattern). These pages include zero-filled
109 pages and they are handled differently. During store operation, a page is
110 checked if it is a same-value filled page before compressing it. If true, the
111 compressed length of the page is set to zero and the pattern or same-filled
115 pressure on swap (this will result in flipping pages in and out zswap pool
118 refuse taking pages into zswap pool until it has sufficient space if the limit
119 has been hit. To set the threshold at which zswap would start accepting pages
129 zswap itself) on a cgroup-basis as follows::
131 echo 0 > /sys/fs/cgroup/<cgroup-name>/memory.zswap.writeback
133 Note that if the store failures are recurring (for e.g if the pages are
135 writeback (because the same pages might be rejected again and again).
138 can be advantageous to proactively write these cold pages to swap and reclaim
144 This can be enabled at the boot time if ``CONFIG_ZSWAP_SHRINKER_DEFAULT_ON`` is
148 of pages stored, same-value filled pages and various counters for the reasons
149 pages are rejected.