On 2023-08-01 06:27, David C. Rankin wrote:
On 7/31/23 22:49, Masaru Nomiya wrote:
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
I really like more "-h", but if I'm reading this correctly you only have 2.5 gigs used, with 4.4 used for buffers/cache, 1 free and 5 available. So you don't need much swap. With an strategy to put swap in ram, compressed, you would use a further percent of 93 megs of ram, say a 75..25%. The advantage would be faster user of that swap. If swap is actively used, meaning code being put and extracted from swap in order to run it, that action would be faster. But still, you would have somewhat less of ram available. So the end result depends on the actual load of each machine. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)