On 09/01/2020 08:55, Carlos E. R. wrote:
Your Thunderbird/Firefox are not that heavy.
Telcontar:~ # free -h --si total used free shared buff/cache available Mem: 8.0G 4.2G 2.3G 215M 1.4G 3.2G Swap: 24G 7.5G 17G Telcontar:~ #
You do not disprove my point; if anything you make it. BECAUSE you have swapiness set to 60 your VM swaps pages out even when it is not necessary. That doesn't free up memory, it just means that there is an image of that page on swap. That starts happening the moment you get to use just 40% of your memory. I think this is ridiculous. There's a simple test: turn swap off and see what crashes! <sidebar> I've found that swap, once created, is about high-water marks, not really a 'tidal flow'. If the need goes away then swap doesn't retreat. I've demonstrated this by doing a swap-off that resulted in nothing crashing and everything operating fine. There was no NEED for swap. I turned swap back on and nothing appeared immediately, not for a long while. Now I simply run with swapiness=10 and swap only happens 'in extremis'. </sidebar> Or a less aggressive one, set swapiness=10 in your /boot config for your kernel as I showed for mine in an earlier post. This will not stop swap happening if your system runs out of memory, it just sets the threshold higher. if you don't like that, try swapiness - 20. The problem with Linux swapping is that it doesn't get released easily. That swapiness=60 means that stuff gets paged out when IT IS NOT NECESSARY. Depending n your job profile (e.g. rate of creation of processes, amount of disk IO, amount of network IO, there's a lot of tuning of the VM you can do. If you really want to be aggressive about it, you can, for example, create a CGROUP for Firefox with a limit on how much memory it is allowed (use ntop to see what it IS) using. You can force that low, never mind swapiness, and by forcing that low also force the CGROUPed FF to be paged out to swap earlier, without affecting the memory of other processes. Also without creating a virtual machine to run FF in :-) Some ISPs use this to control the allocation of the virtual machines they grant to customers :-) -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org