Multi-generational LRU: the next generation
Multi-generational LRU: the next generation
Posted May 25, 2021 12:05 UTC (Tue) by k3ninho (subscriber, #50375)In reply to: Multi-generational LRU: the next generation by comicfans
Parent article: Multi-generational LRU: the next generation
Windows XP and spinning rust used to grind to a halt on heavy memory use, and Win10 puts a device out of action for hours upgrading and patching itself if you still have a rotating hard disk.
That's more about the latency of storage access. What is the current advice about RAM and swap? I ask because, since having NAND-based SSD's with block overwriting concerns, I've disabled swap and bought large amounts of RAM so that apps can't get stroppy about memory pressure. Only recently have I configured zswap but it's not noticeably changed my experience.
I think that this is something that should involve running user-experience items at elevated nice levels and using the alt-sysrq keys to safely OOM-kill and then unmount filesystems if you can't recover the device.
Are we still advocating for swap in 2021?
K3n.
Posted May 25, 2021 14:41 UTC (Tue)
by comicfans (subscriber, #117233)
[Link]
maybe I'm lucky, I haven't hit XP halt even once with celeron1.7 + 845G + 256RAM + HDD . IIRC, I've run many apps which definitely exceeds 256MB, it got slower, but never stop responding.
>and Win10 puts a device out of action for hours upgrading and patching itself if you still have a rotating hard disk.
we all know windows update isn't good, but we're talking about high memory pressure, not a bad system update.
>I've disabled swap and bought large amounts of RAM so that apps can't get stroppy about memory pressure. Only recently have I configured zswap but it's not noticeably changed my experience.
it doesn't apply if laptop have none-replacable ram. and memory leak (maybe by accident) can eat as much ram as you have. of course better hardware can resolve many software problems, but should it stop kernel improve experience on old hardware ? while slower-bigger storage is still cheaper than faster-smaller storage, swap is always needed (that's why bcache/lvm-cache exist)
Posted May 25, 2021 17:30 UTC (Tue)
by MattBBaker (guest, #28651)
[Link]
Posted May 28, 2021 18:17 UTC (Fri)
by anton (subscriber, #25547)
[Link] (1 responses)
With an SSD, swap may be more viable. And if you swap rarely, don't worry about the limited number of SSD writes possible. If you swap often, buy more RAM.
Posted Jun 10, 2021 11:46 UTC (Thu)
by Hi-Angel (guest, #110915)
[Link]
First, for HDD: I'm the guy who posted the testimonial that the v3 of the patches refers to, and I am using HDD. So, just in case anyone's wondering about behavior on HDD specifically, here it is.
Second, for SSD: I see here an attitude that once you create a SWAP on SSD, all problems are gone. So here's my experience: this is not true.
My gf has a Macbook 2013 with SSD, 4G RAM, ZSWAP. She always had swap-partition on the SSD. Before I went out to try the patches on her laptop, she have also had frequent SWAP-storms, her overall experience was pretty bad.
After I configured her system to use the multi-LRU patches (v2), her experience improved a lot. Now the only moment when lags start appearing is when her SWAP usage goes to around 7-8G (Idk why exactly that size).
So, for anyone out there thinking creating a SWAP on SSD will magically solve any need in the memory reclaim rework — that ain't true.
Multi-generational LRU: the next generation
Multi-generational LRU: the next generation
My recommendation is to have no swap if the backing device is a HDD. Why? If the system needs so much RAM that it starts swapping, it becomes unusable anyway.
Multi-generational LRU: the next generation
Multi-generational LRU: the next generation