Re: [systemd-devel] oomd wake-up frequency

2023-08-29 Thread Christian Hergert
On 8/25/23 7:54 AM, Michal Koutný wrote: I think the loop's event source could be disabled when no cgroups require swap monitoring [1] (and enabled lazily when such are configured). FYI I implemented your design this afternoon in case you have some time to review. https://github.com/systemd/

Re: [systemd-devel] oomd wake-up frequency

2023-08-25 Thread Christian Hergert
Thanks for responding! Comments inline. On 8/25/23 7:54 AM, Michal Koutný wrote: Do you have any "Swap Monitored CGroups:" in output of `oomctl dump`? "Swap Monitored CGroups:" appears to be empty on the three physical machines I have at my disposal to test. (Fedora 38, Fedora 39, and GNOME

Re: [systemd-devel] oomd wake-up frequency

2023-08-25 Thread Michal Koutný
Hello. On Tue, Aug 22, 2023 at 01:59:52PM -0700, Christian Hergert wrote: > The primary thing I see showing up when profiling an idle system is oomd. My > casual reading through the code would lead me to believe it's waking up a > CPU every .15 seconds. That coincides with swap monitoring timer

[systemd-devel] oomd wake-up frequency

2023-08-22 Thread Christian Hergert
Hi! Over the past few months I've been working on improving GNOME's whole-system profiling story in the form of Sysprof¹. The primary thing I see showing up when profiling an idle system is oomd. My casual reading through the code would lead me to believe it's waking up a CPU every .15 secon