Writing back compressed pages
Writing back compressed pages
Posted Feb 25, 2026 4:12 UTC (Wed) by PeeWee (subscriber, #175777)In reply to: Writing back compressed pages by intelfx
Parent article: Modernizing swapping: virtual swap spaces
> Just make tmpfs zswappable. Tmpfs certainly is {,z}swappable. Perhaps your system was misconfigured.Are you absolutely positive? I do know that it's swappable - says so on the box -, that's why I had been using it. Not so sure about the zswappable part, though. As I said, i was expecting lots of rejected pages on occasions when I put lots of incompressible data on tmpfs, but they did not show in the respective zswap stat counters, all the while swap was filling, with said zswap counters barely changing. Maybe it's a more recent change? I haven't followed any changes since I discovered the
noswap mount option. Since my heavy tmpfs usage involves incompressible data exclusively, I now prefer capping the tmpfs size somewhere close to but below the physical RAM - was double that before - and have other pages zswapped in their place, when the need arises. Otherwise, it'd be reject_compress_fail galore for tmpfs pages, anyway, and I'd like to save as much I/O as possible from happening. I'll tolerate the odd rejected page, but not on the gigabyte order of magnitude, on top of the outcome being clear before zswap even tried. My use case is only slightly worse off for the limitation of available space.
