1memavaild(8) Linux System Administrator's Manual memavaild(8)
2
3
4
6 memavaild - Daemon that keeps amount of available memory
7
9 memavaild [OPTION]...
10
12 memavaild is a daemon that tries to keep amount of available memory to
13 improve system responsiveness during heavy swapping.
14
15 Default behavior: the control groups specified in the config (us‐
16 er.slice and system.slice) are swapped out when MemAvailable is low by
17 reducing memory.high (values change dynamically). memavaild tries to
18 keep about 3% available memory.
19
20 Effects: tasks are performed at less I/O and memory pressure (and this
21 may be detected by PSI metrics). At the same time, performance may be
22 increased in tasks that requires heavy swapping, especially in I/O
23 bound tasks. Using memavaild has no effect without swap space.
24
26 -c CONFIG
27 path to the config file
28
30 · Python (>= 3.3)
31
32 · systemd with unified cgroup hierarchy
33
35 · The documentation is terrible (no config keys description, for exam‐
36 ple);
37
38 · The ZFS ARC cache is memory-reclaimable, like the Linux buffer cache.
39 However, in contrast to the buffer cache, it currently does not count
40 to MemAvailable (see <https://github.com/openzfs/zfs/issues/10255>).
41 Don't use memavaild with ZFS;
42
43 · Seems like memavaild violates the second rule (https://sys‐
44 temd.io/CGROUP_DELEGATION/): memavaild manipulates the attributes of
45 cgroups created by systemd (memavaild changes memory.high values).
46
48 /etc/memavaild.conf
49 path to configuration file
50
51 /usr/share/memavaild/memavaild.conf
52 path to file with default memavaild.conf values
53
55 To resore config file with default values execute
56
57 sudo cp /usr/share/memavaild/memavaild.conf /etc/memavaild.conf
58
60 Edit the config and restart the service.
61
63 Feel free to ask any questions and report bugs at
64 <https://github.com/hakavlad/memavaild/issues>.
65
67 Written by Alexey Avramov <hakavlad@gmail.com>.
68
70 Homepage is <https://github.com/hakavlad/memavaild>.
71
72
73
74 memavaild(8)