The practical effect of this is basically the same as a free RAM upgrade!
The practical effect of this is basically the same as a free RAM upgrade!
http://lists.freebsd.org/pipermail/freebsd-performance/2012-...
If you're going to end up swapping to disk most of the time anyway, the feature doesn't seem to be very useful. But with much faster CPUs, "many core" CPUs where your apps often won't manage to take advantage of the CPUs, and cheap RAM making lots of people buy huge amounts, the "cost" of using compression to offset swapping to disk seems to have dropped substantially, and the chance of avoiding swapping to disk entirely seems to have increased.
$ sudo modprobe zramThe big differences are (a) zswap is in mainline, zram is not, (b) zswap can swap pages out to disk when it's full, zram cannot.
Also, I wouldn't really characterize the difference that zswap makes as a constant, workload-independent percentage performance boost. Rather, it increases the amount of RAM you can use before the system moves from the "acceptable performance" regime (minimal swapping) to the "dismal performance" regime (lots of swapping). For things like running Rails apps on a relatively small VPS, or getting the most out of a limited-RAM machine like an Eee PC or Raspberry Pi, this is very important.
[1] an example: https://bugs.freedesktop.org/show_bug.cgi?id=69928