4 ms·
Storage speed has really outpaced CPU speed for the decade zswap has been out. It still has its place but if you have modern flash storage it may well be a thro
by zamadatix 7y ago
Storage speed has really outpaced CPU speed for the decade zswap has been out. It still has its place but if you have modern flash storage it may well be a throughput drop and power usage increase to enable zswap (particularly with the default algorithms).
Latency for pulling single pages has never really been limited by CPU performance, that's always been faster and will probably never change due to physics.
- war1025 7y agoAs someone running older hardware with a spinning disk drive, the comment was useful and something I might consider looking into. At work I think I have a 2012-era ssd drive, that while speedy is probably pretty far behind modern drives. When things start thrashing in swap it's a bad time all around.
- newnewpdro 7y agoIt's not like you really want to use SSD for frequently used swap though, it's just going cause unnecessary wear.
- hinkley 7y agoboth are probably true.
- unionpivo 7y agoStick of cheapest 1tb nvme is around 115 EUR (qlc) where I live, so even if you have to change it every 2 years it still worth it. And i measured disk usage on my desktops (home, job) and laptop, and my main dev "server" (xen, with bunch of vms). Surprisingly my desktop had most writes to disk, but even then it would take me 6 years on the cheapest (qlc, kingston 1tb) before wearing it out So i don't think that is a big issue, especially with how much you can improve your life, with faster swap.
- StillBored 7y agoRight, compressed ram has been used heavily on android where the secondary storage has been terribly slow (emmc anyone?). That's probably shifted as everyone moves to PCIe based storage solutions, particularly on the low-mid range phones that don't have super high performance cores.