akhilkalwakurthy

Untitled

Feb 11th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.18 KB | None | 0 0
  1. # this ensures that the cpusets are present and usable, but the device's
  2.     # init.rc must actually set the correct cpus
  3.     mkdir /dev/cpuset/foreground
  4.     write /dev/cpuset/foreground/cpus 0
  5.     write /dev/cpuset/foreground/mems 0
  6.     write /dev/cpuset/foreground/cpuset.cpus 0
  7.     write /dev/cpuset/foreground/cpuset.mems 0
  8.     mkdir /dev/cpuset/foreground/boost
  9.     write /dev/cpuset/foreground/boost/cpus 0
  10.     write /dev/cpuset/foreground/boost/mems 0
  11.     write /dev/cpuset/foreground/boost/cpuset.cpus 0
  12.     write /dev/cpuset/foreground/boost/cpuset.mems 0
  13.     mkdir /dev/cpuset/background
  14.     write /dev/cpuset/background/cpus 0
  15.     write /dev/cpuset/background/mems 0
  16.     write /dev/cpuset/background/cpuset.cpus 0
  17.     write /dev/cpuset/background/cpuset.mems 0
  18.  
  19.     # system-background is for system tasks that should only run on
  20.     # little cores, not on bigs
  21.     # to be used only by init, so don't change system-bg permissions
  22.     mkdir /dev/cpuset/system-background
  23.     write /dev/cpuset/system-background/cpus 0
  24.     write /dev/cpuset/system-background/mems 0
  25.     write /dev/cpuset/system-background/cpuset.cpus 0
  26.     write /dev/cpuset/system-background/cpuset.mems 0
Add Comment
Please, Sign In to add comment