Skip to content

Instantly share code, notes, and snippets.

@arajkumar
Created November 4, 2014 06:22
Show Gist options
  • Save arajkumar/81f9f4532e6189839e6d to your computer and use it in GitHub Desktop.
Save arajkumar/81f9f4532e6189839e6d to your computer and use it in GitHub Desktop.
ps -AL -o pid,tid,rtprio,comm
for i in `ps -AL | cut -d ' ' -f4`; do sudo chrt -r -p 95 $i; done
for i in `ps -L | cut -d ' ' -f4`; do sudo taskset -p 2 $i; done
sudo bash -c 'echo "0" >/sys/devices/system/cpu/cpu1/online'
sudo bash -c 'echo "-1"> /proc/sys/kernel/sched_rt_runtime_us'
funcion cr() {
sudo chrt -r -p 19 $$
google-chrome --in-process-gpu --disable-extensions &
sudo chrt -r -p 95 $$
}
sudo bash -c 'echo "1" >/sys/devices/system/cpu/cpu1/online'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment