About the only option is to decide that swapping is bad and you would
rather simply kill stuff.

And if that is the case then you would need to tune down systemd-oomd
to kill when you start to even use swap.  Default it won't act until
90% of swap is used and if you have a decent amount of swap then you
machine will be useless for a long time when it is going from 5% up to
90%, so you would want to either lower % for oomd to act on so that it
acts faster or lower the amount of swap.

And set vm.swappiness = 0 so that it won't swap unless it really has to.

Basically I assume if you are swapping then the machine will be mostly
useless so do anything to avoid swapping.

Note though the machines I used heavily all have LOTS of ram, and I
have 2Gb of swap on a machine with 64g of ram, so even if I start
swapping it does not take very long to go from 0 to 90% of 2G.

On Sat, May 30, 2026 at 12:55 PM Samuel Sieb <[email protected]> wrote:
>
> On 5/30/26 5:49 AM, Patrick Dupre via users wrote:
> > I am back with my issue.
> > After several weeks of checking, my machine starts to be slow as soon as
> > the number of tasks is high. oomd or not it does not change.
> Are you sure systemd-oomd is running?
> Regardless, if you have too much running for the amount or RAM you have,
> it's going to get slow.  The only benefit of oomd is that it should kill
> one of the big applications before the machine starts thrashing too
> much.  I'm not sure how oomd works if you have significant disk swap.
>
> --
> _______________________________________________
> users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/[email protected]
> Do not reply to spam, report it: 
> https://forge.fedoraproject.org/infra/tickets/issues/new
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to