Permalink
Browse files

fix single task config

  • Loading branch information...
poelzi committed Apr 5, 2011
1 parent 3333906 commit ff8bcd045455674e48900943304da45d02f96dde
Showing with 8 additions and 1 deletion.
  1. +8 −1 conf/scheduler/30-single-task.lua
@@ -81,7 +81,7 @@ SCHEDULER_MAPPING_SINGLE_TASK["cpu"] =
name = "system",
cgroups_name = "sys",
check = function(proc)
- return ( proc.euid > 999 )
+ return ( proc.euid < 1000 )
end,
param = { ["cpu.shares"]="100", ["?cpu.rt_runtime_us"] = "100" },
children = {
@@ -95,6 +95,13 @@ SCHEDULER_MAPPING_SINGLE_TASK["cpu"] =
param = { ["cpu.shares"]="30",
["?cpu.rt_runtime_us"] = "1"},
},
+ {
+ name = "kernel",
+ cgroups_name = "",
+ check = function(proc)
+ return (proc.vm_size == 0)
+ end
+ },
}
},
}

0 comments on commit ff8bcd0

Please sign in to comment.