|
|
c480ed |
From 0542ea82913e75374a5efb0c7dde147036d32d20 Mon Sep 17 00:00:00 2001
|
|
|
c480ed |
Message-Id: <0542ea82913e75374a5efb0c7dde147036d32d20@dist-git>
|
|
|
c480ed |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
c480ed |
Date: Mon, 1 Jul 2019 17:06:17 +0200
|
|
|
c480ed |
Subject: [PATCH] vircgroupmock: cleanup unused cgroup files
|
|
|
c480ed |
MIME-Version: 1.0
|
|
|
c480ed |
Content-Type: text/plain; charset=UTF-8
|
|
|
c480ed |
Content-Transfer-Encoding: 8bit
|
|
|
c480ed |
|
|
|
c480ed |
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
c480ed |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c480ed |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
c480ed |
(cherry picked from commit f9085cf702f5fe5bf786045b9cc95365ab4e628b)
|
|
|
c480ed |
|
|
|
c480ed |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
|
c480ed |
|
|
|
c480ed |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
c480ed |
Message-Id: <efa74d1882ab59aca1379f2a95a568eb0cb02134.1561993099.git.phrdina@redhat.com>
|
|
|
c480ed |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c480ed |
---
|
|
|
c480ed |
tests/vircgroupmock.c | 73 -------------------------------------------
|
|
|
c480ed |
1 file changed, 73 deletions(-)
|
|
|
c480ed |
|
|
|
c480ed |
diff --git a/tests/vircgroupmock.c b/tests/vircgroupmock.c
|
|
|
c480ed |
index bae8304f6c..cd5422dcba 100644
|
|
|
c480ed |
--- a/tests/vircgroupmock.c
|
|
|
c480ed |
+++ b/tests/vircgroupmock.c
|
|
|
c480ed |
@@ -214,13 +214,7 @@ static int make_controller(const char *path, mode_t mode)
|
|
|
c480ed |
if (STRPREFIX(controller, "cpu,cpuacct")) {
|
|
|
c480ed |
MAKE_FILE("cpu.cfs_period_us", "100000\n");
|
|
|
c480ed |
MAKE_FILE("cpu.cfs_quota_us", "-1\n");
|
|
|
c480ed |
- MAKE_FILE("cpu.rt_period_us", "1000000\n");
|
|
|
c480ed |
- MAKE_FILE("cpu.rt_runtime_us", "950000\n");
|
|
|
c480ed |
MAKE_FILE("cpu.shares", "1024\n");
|
|
|
c480ed |
- MAKE_FILE("cpu.stat",
|
|
|
c480ed |
- "nr_periods 0\n"
|
|
|
c480ed |
- "nr_throttled 0\n"
|
|
|
c480ed |
- "throttled_time 0\n");
|
|
|
c480ed |
MAKE_FILE("cpuacct.stat",
|
|
|
c480ed |
"user 216687025\n"
|
|
|
c480ed |
"system 43421396\n");
|
|
|
c480ed |
@@ -235,46 +229,19 @@ static int make_controller(const char *path, mode_t mode)
|
|
|
c480ed |
"709566900 0 0 0 0 0 0 0 444777342 0 0 0 0 0 0 0 "
|
|
|
c480ed |
"5683512916 0 0 0 0 0 0 0 635751356 0 0 0 0 0 0 0\n");
|
|
|
c480ed |
} else if (STRPREFIX(controller, "cpuset")) {
|
|
|
c480ed |
- MAKE_FILE("cpuset.cpu_exclusive", "1\n");
|
|
|
c480ed |
if (STREQ(controller, "cpuset"))
|
|
|
c480ed |
MAKE_FILE("cpuset.cpus", "0-1");
|
|
|
c480ed |
else
|
|
|
c480ed |
MAKE_FILE("cpuset.cpus", ""); /* Values don't inherit */
|
|
|
c480ed |
- MAKE_FILE("cpuset.mem_exclusive", "1\n");
|
|
|
c480ed |
- MAKE_FILE("cpuset.mem_hardwall", "0\n");
|
|
|
c480ed |
MAKE_FILE("cpuset.memory_migrate", "0\n");
|
|
|
c480ed |
- MAKE_FILE("cpuset.memory_pressure", "0\n");
|
|
|
c480ed |
- MAKE_FILE("cpuset.memory_pressure_enabled", "0\n");
|
|
|
c480ed |
- MAKE_FILE("cpuset.memory_spread_page", "0\n");
|
|
|
c480ed |
- MAKE_FILE("cpuset.memory_spread_slab", "0\n");
|
|
|
c480ed |
if (STREQ(controller, "cpuset"))
|
|
|
c480ed |
MAKE_FILE("cpuset.mems", "0");
|
|
|
c480ed |
else
|
|
|
c480ed |
MAKE_FILE("cpuset.mems", ""); /* Values don't inherit */
|
|
|
c480ed |
- MAKE_FILE("cpuset.sched_load_balance", "1\n");
|
|
|
c480ed |
- MAKE_FILE("cpuset.sched_relax_domain_level", "-1\n");
|
|
|
c480ed |
} else if (STRPREFIX(controller, "memory")) {
|
|
|
c480ed |
- MAKE_FILE("memory.failcnt", "0\n");
|
|
|
c480ed |
- MAKE_FILE("memory.force_empty", ""); /* Write only */
|
|
|
c480ed |
- MAKE_FILE("memory.kmem.tcp.failcnt", "0\n");
|
|
|
c480ed |
- MAKE_FILE("memory.kmem.tcp.limit_in_bytes", "9223372036854775807\n");
|
|
|
c480ed |
- MAKE_FILE("memory.kmem.tcp.max_usage_in_bytes", "0\n");
|
|
|
c480ed |
- MAKE_FILE("memory.kmem.tcp.usage_in_bytes", "16384\n");
|
|
|
c480ed |
MAKE_FILE("memory.limit_in_bytes", "9223372036854775807\n");
|
|
|
c480ed |
- MAKE_FILE("memory.max_usage_in_bytes", "0\n");
|
|
|
c480ed |
- MAKE_FILE("memory.memsw.failcnt", ""); /* Not supported */
|
|
|
c480ed |
MAKE_FILE("memory.memsw.limit_in_bytes", ""); /* Not supported */
|
|
|
c480ed |
- MAKE_FILE("memory.memsw.max_usage_in_bytes", ""); /* Not supported */
|
|
|
c480ed |
MAKE_FILE("memory.memsw.usage_in_bytes", ""); /* Not supported */
|
|
|
c480ed |
- MAKE_FILE("memory.move_charge_at_immigrate", "0\n");
|
|
|
c480ed |
- MAKE_FILE("memory.numa_stat",
|
|
|
c480ed |
- "total=367664 N0=367664\n"
|
|
|
c480ed |
- "file=314764 N0=314764\n"
|
|
|
c480ed |
- "anon=51999 N0=51999\n"
|
|
|
c480ed |
- "unevictable=901 N0=901\n");
|
|
|
c480ed |
- MAKE_FILE("memory.oom_control",
|
|
|
c480ed |
- "oom_kill_disable 0\n"
|
|
|
c480ed |
- "under_oom 0\n");
|
|
|
c480ed |
MAKE_FILE("memory.soft_limit_in_bytes", "9223372036854775807\n");
|
|
|
c480ed |
MAKE_FILE("memory.stat",
|
|
|
c480ed |
"cache 1336619008\n"
|
|
|
c480ed |
@@ -306,50 +273,11 @@ static int make_controller(const char *path, mode_t mode)
|
|
|
c480ed |
"recent_rotated_file 2547948\n"
|
|
|
c480ed |
"recent_scanned_anon 113796164\n"
|
|
|
c480ed |
"recent_scanned_file 8199863\n");
|
|
|
c480ed |
- MAKE_FILE("memory.swappiness", "60\n");
|
|
|
c480ed |
MAKE_FILE("memory.usage_in_bytes", "1455321088\n");
|
|
|
c480ed |
MAKE_FILE("memory.use_hierarchy", "0\n");
|
|
|
c480ed |
} else if (STRPREFIX(controller, "freezer")) {
|
|
|
c480ed |
MAKE_FILE("freezer.state", "THAWED");
|
|
|
c480ed |
} else if (STRPREFIX(controller, "blkio")) {
|
|
|
c480ed |
- MAKE_FILE("blkio.io_merged",
|
|
|
c480ed |
- "8:0 Read 1100949\n"
|
|
|
c480ed |
- "8:0 Write 2248076\n"
|
|
|
c480ed |
- "8:0 Sync 63063\n"
|
|
|
c480ed |
- "8:0 Async 3285962\n"
|
|
|
c480ed |
- "8:0 Total 3349025\n");
|
|
|
c480ed |
- MAKE_FILE("blkio.io_queued",
|
|
|
c480ed |
- "8:0 Read 0\n"
|
|
|
c480ed |
- "8:0 Write 0\n"
|
|
|
c480ed |
- "8:0 Sync 0\n"
|
|
|
c480ed |
- "8:0 Async 0\n"
|
|
|
c480ed |
- "8:0 Total 0\n");
|
|
|
c480ed |
- MAKE_FILE("blkio.io_service_bytes",
|
|
|
c480ed |
- "8:0 Read 59542078464\n"
|
|
|
c480ed |
- "8:0 Write 397369182208\n"
|
|
|
c480ed |
- "8:0 Sync 234080922624\n"
|
|
|
c480ed |
- "8:0 Async 222830338048\n"
|
|
|
c480ed |
- "8:0 Total 456911260672\n");
|
|
|
c480ed |
- MAKE_FILE("blkio.io_serviced",
|
|
|
c480ed |
- "8:0 Read 3402504\n"
|
|
|
c480ed |
- "8:0 Write 14966516\n"
|
|
|
c480ed |
- "8:0 Sync 12064031\n"
|
|
|
c480ed |
- "8:0 Async 6304989\n"
|
|
|
c480ed |
- "8:0 Total 18369020\n");
|
|
|
c480ed |
- MAKE_FILE("blkio.io_service_time",
|
|
|
c480ed |
- "8:0 Read 10747537542349\n"
|
|
|
c480ed |
- "8:0 Write 9200028590575\n"
|
|
|
c480ed |
- "8:0 Sync 6449319855381\n"
|
|
|
c480ed |
- "8:0 Async 13498246277543\n"
|
|
|
c480ed |
- "8:0 Total 19947566132924\n");
|
|
|
c480ed |
- MAKE_FILE("blkio.io_wait_time",
|
|
|
c480ed |
- "8:0 Read 14687514824889\n"
|
|
|
c480ed |
- "8:0 Write 357748452187691\n"
|
|
|
c480ed |
- "8:0 Sync 55296974349413\n"
|
|
|
c480ed |
- "8:0 Async 317138992663167\n"
|
|
|
c480ed |
- "8:0 Total 372435967012580\n");
|
|
|
c480ed |
- MAKE_FILE("blkio.reset_stats", ""); /* Write only */
|
|
|
c480ed |
- MAKE_FILE("blkio.sectors", "8:0 892404806\n");
|
|
|
c480ed |
MAKE_FILE("blkio.throttle.io_service_bytes",
|
|
|
c480ed |
"8:0 Read 59542107136\n"
|
|
|
c480ed |
"8:0 Write 411440480256\n"
|
|
|
c480ed |
@@ -376,7 +304,6 @@ static int make_controller(const char *path, mode_t mode)
|
|
|
c480ed |
MAKE_FILE("blkio.throttle.read_iops_device", "");
|
|
|
c480ed |
MAKE_FILE("blkio.throttle.write_bps_device", "");
|
|
|
c480ed |
MAKE_FILE("blkio.throttle.write_iops_device", "");
|
|
|
c480ed |
- MAKE_FILE("blkio.time", "8:0 61019089\n");
|
|
|
c480ed |
MAKE_FILE("blkio.weight", "1000\n");
|
|
|
c480ed |
MAKE_FILE("blkio.weight_device", "");
|
|
|
c480ed |
|
|
|
c480ed |
--
|
|
|
c480ed |
2.22.0
|
|
|
c480ed |
|