Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4...
by fpoling on Sunday January 29, 2017 @03:58AM
(#13513162)
zswap makes swap useful on the server as it results in gradual slowdown when the system has used all the ram. And if the system runs at 75% of CPU, then there is room for such slowdown.
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4...
by twic on Sunday January 29, 2017 @04:51AM
(#13513380)
I hadn't heard of zswap [0]:
"Zswap is a lightweight compressed cache for swap pages. It takes pages that are in the process of being swapped out and attempts to compress them into a dynamically allocated RAM-based memory pool. [...] Zswap is a new feature as of v3.11 [...] zswap is a work in progress and should be considered experimental."
The return of RAM Doubler!
The naming is initially confusing if you're already familiar with ZFS, especially:
"Zswap makes use of zpool for the managing the compressed memory pool"
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4...
by lmns on Sunday January 29, 2017 @09:06AM
(#13514158)
It's actually quite useful on many consumer devices, especially those with multiple cores. Most of the time I'm happy I can trade a few CPU cycles for better I/O performance.
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4...
by mrmondo on Sunday January 29, 2017 @04:56AM
(#13513393)
yes, we run ZRAM of every single server we have, its fantastic and we don't have swap anywhere. It's worth noting though that vm.swappiness is set to 0 then ZRAM wont be used, it must be set to 1 or higher unless you're using a really old kernel (pre 3.5).
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4...
by fpoling on Monday January 30, 2017 @05:41PM
(#13525786)
I have found that zswap behaves much better than zram when the size of the used ram approaches 150% of RAM. In theory zram compresses better as zswap has very simple mapping for the location of its cache of compressed pages leading to space underutilization. But, as it has real backing store, it can evict unused pages allowing bigger chunk of uncompressed memory for running applications.
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4...
by mwpmaybe on Sunday January 29, 2017 @07:43AM
(#13513868)
zram[0] is not the same thing as zswap[1].
If your servers are at 75% CPU and start swapping you are screwed. Time to start adding servers. In this day and age you are wasting a lot of money to be sitting around waiting for swap.