Coder Social home page Coder Social logo

Comments (2)

danobi avatar danobi commented on July 19, 2024 1

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.

hakavlad avatar hakavlad commented on July 19, 2024 1
$ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.