What is frontswap?
+3
−0
I noticed that according to htop part of my swapped out memory is categorized as frontswap. What's that about?
1 answer
+1
−0
Frontswap is a tmem interface in the kernel. The idea is to have a little faster RAM-like alternative to traditional(ly dreaded) swap. When memory pressure starts to mount, the kernel will ask frontswap before swapping a page.
Frontswap is just an interface, so it could have different backends actually storing the memory pages. A typical case would be zswap, which tries to compress the memory page (instead of letting swap write it to disk).
A little dated source: https://lwn.net/Articles/454795/

0 comment threads