Browse files

scheduler mappings: more descriptive rules names

  • Loading branch information...
1 parent 02cc4fd commit 7459706608c4562487b1ed6126dccc4f794ca7af @gajdusek gajdusek committed Feb 25, 2013
Showing with 20 additions and 20 deletions.
  1. +10 −10 conf/scheduler/20-desktop.lua
  2. +10 −10 conf/scheduler/20-one-seat-desktop.lua
View
20 conf/scheduler/20-desktop.lua
@@ -94,24 +94,24 @@ SCHEDULER_MAPPING_DESKTOP["cpu"] =
},
},
{
- name = "system",
+ name = "system_idle",
cgroups_name = "sys_idle",
label = { "daemon.idle" },
param = { ["cpu.shares"]="1"},
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["cpu.shares"]="2500", ["?cpu.rt_runtime_us"] = "1"},
label = { "daemon.media" },
},
{
- name = "system",
+ name = "system_bg",
cgroups_name = "sys_bg",
label = { "daemon.bg" },
param = { ["cpu.shares"]="600"},
},
{
- name = "system",
+ name = "system_daemon",
cgroups_name = "sys_daemon",
check = function(proc)
-- don't put kernel threads into a cgroup
@@ -228,13 +228,13 @@ SCHEDULER_MAPPING_DESKTOP["memory"] =
},
},
{
- name = "system",
+ name = "system_idle",
cgroups_name = "sys_idle",
label = { "daemon.idle" },
param = { ["?memory.swappiness"] = "100" },
},
{
- name = "system",
+ name = "system_bg",
cgroups_name = "sys_bg",
label = { "daemon.bg" },
param = { ["?memory.swappiness"] = "100" },
@@ -248,12 +248,12 @@ SCHEDULER_MAPPING_DESKTOP["memory"] =
end
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["?memory.swappiness"] = "40" },
label = { "daemon.media" },
},
{
- name = "system",
+ name = "system_daemon",
cgroups_name = "sys_daemon",
check = function(proc)
return true
@@ -322,7 +322,7 @@ SCHEDULER_MAPPING_DESKTOP["blkio"] =
end,
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["blkio.weight"]="300" },
label = { "daemon.media"},
adjust = function(cgroup, proc)
@@ -396,7 +396,7 @@ SCHEDULER_MAPPING_DESKTOP["bfqio"] =
end,
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["bfqio.weight"]="300" },
label = { "daemon.media"},
adjust = function(cgroup, proc)
View
20 conf/scheduler/20-one-seat-desktop.lua
@@ -154,24 +154,24 @@ SCHEDULER_MAPPING_ONE_SEAT_DESKTOP["cpu"] =
},
},
{
- name = "system",
+ name = "system_idle",
cgroups_name = "sys_idle",
label = { "daemon.idle" },
param = { ["cpu.shares"]="1"},
},
{
- name = "system",
+ name = "system_bg",
cgroups_name = "sys_bg",
label = { "daemon.bg" },
param = { ["cpu.shares"]="600"},
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["cpu.shares"]="2500", ["?cpu.rt_runtime_us"] = "1"},
label = { "daemon.media" },
},
{
- name = "system",
+ name = "system_daemon",
cgroups_name = "sys_daemon",
check = function(proc)
-- don't put kernel threads into a cgroup
@@ -377,24 +377,24 @@ SCHEDULER_MAPPING_ONE_SEAT_DESKTOP["memory"] =
},
},
{
- name = "system",
+ name = "system_idle",
cgroups_name = "sys_idle",
label = { "daemon.idle" },
param = { ["?memory.swappiness"] = "100" },
},
{
- name = "system",
+ name = "system_bg",
cgroups_name = "sys_bg",
label = { "daemon.bg" },
param = { ["?memory.swappiness"] = "100" },
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["?memory.swappiness"] = "40" },
label = { "daemon.media" },
},
{
- name = "system",
+ name = "system_daemon",
cgroups_name = "sys_daemon",
check = function(proc)
-- don't put kernel threads into a cgroup
@@ -524,15 +524,15 @@ SCHEDULER_MAPPING_ONE_SEAT_DESKTOP["blkio"] =
end,
},
{
- name = "sys_media",
+ name = "system_media",
param = { ["blkio.weight"]="300" },
label = { "daemon.media"},
adjust = function(cgroup, proc)
save_io_prio(proc, 1, ulatency.IOPRIO_CLASS_RT)
end,
},
{
- name = "system",
+ name = "system_bg",
cgroups_name = "sys_bg",
label = { "daemon.bg" },
param = { ["blkio.weight"]="15" },

0 comments on commit 7459706

Please sign in to comment.