Skip to content

Instantly share code, notes, and snippets.

@Sudha247
Created June 11, 2020 06:29
Show Gist options
  • Save Sudha247/d614d954c21dfaf928b3a27bca08eb9a to your computer and use it in GitHub Desktop.
Save Sudha247/d614d954c21dfaf928b3a27bca08eb9a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -x
for i in 1 2 4 8 12
do
time taskset --cpu-list 2-13 chrt -r 1 <exe> $i <arg>
done
for i in 16 20 24
do
time taskset --cpu-list 2-13,16-27 chrt -r 1 <exe> $i <arg>
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment