Comments (2)
I stared at the code for a bit and I think I know what's going on. You're right; the errors don't affect functionality. However, it was symptomatic of a deeper issue. I have a proposed fix in https://github.com/danobi/oomd/tree/memory_reclaim_stat . However, since I can't reproduce this issue, do you mind trying it out first?
I've explained the details of the bug in the commit message.
from oomd.
$ sudo oomd_bin
oomd running with conf_file=/etc/oomd.json interval=5
[../config/ConfigTypes.cpp:36] 2 Rulesets=
[../config/ConfigTypes.cpp:40] Ruleset=user session protection
[../config/ConfigTypes.cpp:44] DropIn=
[../config/ConfigTypes.cpp:46] Detectors=0
[../config/ConfigTypes.cpp:48] Actions=0
[../config/ConfigTypes.cpp:50] DisableOnDrop=0
[../config/ConfigTypes.cpp:54] SilenceLogs=
[../config/ConfigTypes.cpp:58] DetectorGroup=pressure above 60 for 30s
[../config/ConfigTypes.cpp:63] Detector=dump_cgroup_overview
[../config/ConfigTypes.cpp:65] Args=
[../config/ConfigTypes.cpp:70] cgroup=user.slice,system.slice
[../config/ConfigTypes.cpp:70] always=true
[../config/ConfigTypes.cpp:63] Detector=pressure_above
[../config/ConfigTypes.cpp:65] Args=
[../config/ConfigTypes.cpp:70] resource=memory
[../config/ConfigTypes.cpp:70] cgroup=user.slice,system.slice
[../config/ConfigTypes.cpp:70] threshold=60
[../config/ConfigTypes.cpp:70] duration=30
[../config/ConfigTypes.cpp:63] Detector=memory_reclaim
[../config/ConfigTypes.cpp:65] Args=
[../config/ConfigTypes.cpp:70] duration=10
[../config/ConfigTypes.cpp:70] cgroup=user.slice/user-*.slice/session-*.scope,user.slice/user-*.slice/user@*.service/*,system.slice/*
[../config/ConfigTypes.cpp:79] Action=kill_by_memory_size_or_growth
[../config/ConfigTypes.cpp:81] Args=
[../config/ConfigTypes.cpp:86] cgroup=user.slice/user-*.slice/session-*.scope,user.slice/user-*.slice/user@*.service/*,system.slice/*
[../config/ConfigTypes.cpp:40] Ruleset=protection against low swap
[../config/ConfigTypes.cpp:44] DropIn=
[../config/ConfigTypes.cpp:46] Detectors=0
[../config/ConfigTypes.cpp:48] Actions=0
[../config/ConfigTypes.cpp:50] DisableOnDrop=0
[../config/ConfigTypes.cpp:54] SilenceLogs=
[../config/ConfigTypes.cpp:58] DetectorGroup=free swap goes below 15 percent
[../config/ConfigTypes.cpp:63] Detector=swap_free
[../config/ConfigTypes.cpp:65] Args=
[../config/ConfigTypes.cpp:70] threshold_pct=15
[../config/ConfigTypes.cpp:79] Action=kill_by_swap_usage
[../config/ConfigTypes.cpp:81] Args=
[../config/ConfigTypes.cpp:86] cgroup=user.slice/user-*.slice/session-*.scope,user.slice/user-*.slice/user@*.service/*,system.slice/*
[../Oomd.cpp:529] Running oomd
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1084MB pressure=0.16:0.46:0.17 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1084MB pressure=0.11:0.43:0.16 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.06:0.39:0.16 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1084MB pressure=0.04:0.36:0.16 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1084MB pressure=0.02:0.33:0.15 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1084MB pressure=0.01:0.31:0.15 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1084MB pressure=0.00:0.27:0.15 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.26:0.14 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.23:0.14 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.22:0.14 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.19:0.13 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.18:0.13 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.16:0.13 swapfree=0MB/0MB pgscan=222418
[../plugins/DumpCgroupOverview.cpp:59] cgroup=user.slice total=1085MB pressure=0.00:0.15:0.13 swapfree=0MB/0MB pgscan=222418
All right.
from oomd.
Related Issues (20)
- I'm afraid that PSI measurements are totally off either due to a kernel bug or MuQSS. HOT 1
- doesn't kill cgroup, unable to set xattr trusted.oomd_ooms=1 HOT 5
- How do I set oomd to kill process instead of cgroup? HOT 2
- /sys/fs/cgroup is not a valid cgroup2 filesystem HOT 4
- man page should be located in man8, not in man1 HOT 1
- Possibility to abstract the stat collector HOT 1
- error: call to β__open_missing_modeβ declared with attribute error: open with O_CREAT or O_TMPFILE... HOT 1
- prekill_hooks to run a shell script
- KillMemoryGrowth-inl.h: misleading ologKillTarget message for SIZE_NO_THRESHOLD
- KillMemoryGrowth<Base>::get_ranking_fn() should be SEGV safe
- Inefficient TryToKillSomething(): ranking gets made twice for a single run
- memleaks ??? HOT 2
- Prevent specific app to kill - doubt HOT 1
- Oomd
- Cgroup1
- No timestamps in oomd output HOT 1
- Meson build fails due to dumpKillInfo HOT 3
- what does the Senpai plugin used for? HOT 1
- Verifying if Senpai Config is Correct
- Uan HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oomd.