diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-13 19:28:32 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-16 11:57:48 +0100 |
commit | 9ded9cd14cc03c67291b10a5c42ce5094ba0912f (patch) | |
tree | b905c1173fa4acb99741210907b15136c3919fdf /src/test | |
parent | core: now that .snapshot unit are gone, we don't need the per-type .no_gc boo... (diff) | |
download | systemd-9ded9cd14cc03c67291b10a5c42ce5094ba0912f.tar.xz systemd-9ded9cd14cc03c67291b10a5c42ce5094ba0912f.zip |
core: enable TasksMax= for all services by default, and set it to 512
Also, enable TasksAccounting= for all services by default, too.
See:
http://lists.freedesktop.org/archives/systemd-devel/2015-November/035006.html
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-cgroup-mask.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test-cgroup-mask.c b/src/test/test-cgroup-mask.c index de6c421b82..85b0d607d6 100644 --- a/src/test/test-cgroup-mask.c +++ b/src/test/test-cgroup-mask.c @@ -40,6 +40,16 @@ static int test_cgroup_mask(void) { puts("manager_new: Permission denied. Skipping test."); return EXIT_TEST_SKIP; } + + /* Turn off all kinds of default accouning, so that we can + * verify the masks resulting of our configuration and nothing + * else. */ + m->default_cpu_accounting = + m->default_memory_accounting = + m->default_blockio_accounting = + m->default_tasks_accounting = false; + m->default_tasks_max = (uint64_t) -1; + assert_se(r >= 0); assert_se(manager_startup(m, serial, fdset) >= 0); |