Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 2.01 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Linux cgroups: Cannot move certain kernel threads from root cgroup
  2. $mkdir /dev/cgroup
  3.  $mkdir /dev/cgroup/cpu
  4.  $mount -t cgroup -o cpu cpu /dev/cgroup/cpu
  5.  $cd /dev/cgroup/cpu/
  6.  $mkdir low
  7.        
  8. $for task in `cat /dev/cgroup/cpu/tasks`;
  9.       do   /bin/echo $task > /dev/cgroup/cpu/low/tasks || echo "Failed to move PID $task"; done
  10.  /bin/echo: write error: Invalid argument
  11.  Failed to move PID 3
  12.  /bin/echo: write error: Invalid argument
  13.  Failed to move PID 4
  14.  /bin/echo: write error: Invalid argument
  15.  Failed to move PID 5
  16.  /bin/echo: write error: Invalid argument
  17.  Failed to move PID 6
  18.  /bin/echo: write error: Invalid argument
  19.  Failed to move PID 7
  20.  /bin/echo: write error: Invalid argument
  21.  Failed to move PID 8
  22.  /bin/echo: write error: Invalid argument
  23.  .
  24.  .
  25.  .
  26.  /bin/echo: write error: Invalid argument
  27.  Failed to move PID 58
  28.        
  29. root         3     2  0 18:16 ?        00:00:00 [migration/0]
  30.  root         4     2  0 18:16 ?        00:00:00 [sirq-high/0]
  31.  root         5     2  0 18:16 ?        00:00:04 [sirq-timer/0]
  32.  root         6     2  0 18:16 ?        00:00:00 [sirq-net-tx/0]
  33.  root         7     2  0 18:16 ?        00:00:00 [sirq-net-rx/0]
  34.  root         8     2  0 18:16 ?        00:00:00 [sirq-block/0]
  35.  root         9     2  0 18:16 ?        00:00:00 [sirq-block-iopo]
  36.  root        10     2  0 18:16 ?        00:00:00 [sirq-tasklet/0]
  37.  root        11     2  0 18:16 ?        00:00:00 [sirq-sched/0]
  38.  root        12     2  0 18:16 ?        00:00:00 [sirq-hrtimer/0]
  39.  root        13     2  0 18:16 ?        00:00:04 [sirq-rcu/0]
  40.  root        14     2  0 18:16 ?        00:00:00 [watchdog/0]
  41.  root        15     2  0 18:16 ?        00:00:00 [desched/0]
  42.  root        16     2  0 18:16 ?        00:00:00 [migration/1]
  43.  root        17     2  0 18:16 ?        00:00:00 [sirq-high/1]
  44.  root        18     2  0 18:16 ?        00:00:03 [sirq-timer/1]
  45.  root        19     2  0 18:16 ?        00:00:00 [sirq-net-tx/1]
  46.  root        20     2  0 18:16 ?        00:00:00 [sirq-net-rx/1]
  47.  root        21     2  0 18:16 ?        00:00:00 [sirq-block/1]