Zbigniew Jędrzejewski-Szmek
3c9fbb993b
variuos: add missing includes
2021-09-22 12:58:46 +02:00
Anita Zhang
e82acab4db
oomd: review follow ups to #20020
2021-07-02 09:26:40 +02:00
Anita Zhang
47136b9d9a
oomd: switch system context parsing to use /proc/meminfo
...
Makes it easier in the next commits to unify on one way to read swap and
memory info.
2021-06-30 03:47:26 -07:00
Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
PhoenixDiscord
e8607daf7d
Replace gendered pronouns with gender neutral ones. ( #16844 )
2020-08-27 11:52:48 +09:00
Zbigniew Jędrzejewski-Szmek
c482724aa5
procfs-util: expose functionality to query total memory
...
procfs_memory_get_current is renamed to procfs_memory_get_used, because
"current" can mean anything, including total memory, used memory, and free
memory, as long as the value is up to date.
No functional change.
2019-01-22 17:43:13 +01:00
Lennart Poettering
16a4f265e4
procfs-util: drop unnecessary zero initializations ( #8321 )
...
Follow-up for #8149 .
2018-03-01 11:27:06 +01:00
Lennart Poettering
a04fcf17ba
procfs-util: add APIs to get consumed CPU time and used memory from /proc
...
This is preparation for emulating the "usage_usec" keyed attribute of
the "cpu.stat" property of the root cgroup from data in /proc. Similar,
for emulating the "memory.current" attribute.
2018-02-09 17:32:26 +01:00
Lennart Poettering
9aef9a672d
util-lib: add new procfs-util.[ch] API for dealing with tasks limits
...
As it turns out the limit on concurrent tasks on Linux nasty to
determine, hence let's appropriate helpers for this.
2018-01-22 16:26:55 +01:00