On 7/31/23 22:49, Masaru Nomiya wrote:
Is there any system that does not swapping,I wonder...? Anyway, I think ZRAM setting is a must for SSD users like me.
This is just where I need to read more. Are they talking page-swaps in RAM or are they talking about swapping to disk? Every system will benefit if is magically improves page-swaps, but for those with 16G, 32G in RAM that never swap-to-disk, if that is what Zram is compressing, then on many boxes it won't do anything. I'll admit, I'm just ignorant on which they mean. but if they are using the term Zram instead of Zswap, it would seem it is basic page-swaps they are talking about long before we get to swapping to disk. Also, if it is page-swaps, than I guess it's just talking about being able to store more compressed memory to RAM. I don't see how it would be able to hook and manipulate what the processor stores in cache, so it would seem to just be memory evicted from cache that would normally be stored in RAM that would be compressed. (though since program memory is binary to begin with, I guess it works some magic on it to make it worthwhile -- all well beyond my pay/understanding grade) Will read more and update. Still a really good idea. Will have to get down in the weeds of it to know if it makes sense for me. Because in: $ uptime 23:25:22 up 6 days 17:59, 2 users, load average: 0.24, 0.20, 0.17 with on 8G of RAM on a heavily used laptop with multiple browsers, e-mail, editors, IDE's, apache2 running with php, etc.. I've only managed to use 93M of swap: $ free -tm total used free shared buff/cache available Mem: 7878 2563 1237 54 4430 5315 Swap: 2057 93 1964 Total: 9936 2656 3202 -- David C. Rankin, J.D.,P.E.