summaryrefslogtreecommitdiffstats
path: root/src/oom/test-oomd-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* oom: make swap a soft requirementAnita Zhang2021-01-241-0/+11
|
* test: use for(;;) instead of while(true)Yu Watanabe2020-11-271-1/+1
|
* test-oomd-util: remove memory_pressure == 0 checksAnita Zhang2020-11-171-4/+0
| | | | | | | | | | | test_oomd_cgroup_context_acquire_and_insert reads the live cgroup data used by the unit test. Under certain conditions, the memory pressure for the cgroup can be non-zero (although most of the time it is 0 since these tests don't generate much pressure). Since these values are too dependent on the state of the system, remove the checks. The type used is always >= 0 and test-psi-util already unit tests that PSI values are parsed correctly from files so this test is redundant anyways.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* oomd: use ERRNO_IS_NOT_SUPPORTED and ERRNO_IS_PRIVILEGEAnita Zhang2020-10-221-1/+1
|
* oomd: fix unit test when xattrs not supportedAnita Zhang2020-10-171-4/+6
|
* systemd-oomd: unit testable helper functionsAnita Zhang2020-10-081-0/+348
Helpers used by the systemd-oomd daemon to read/fill in various contexts and make detection and kill decisions. i.e. a simplified/less configurable version of https://github.com/facebookincubator/oomd/tree/master/src/oomd.