7 lines
412 B
Bash
7 lines
412 B
Bash
#!/bin/bash
|
|
#This script is currently a simple tool which passes the given command (and any arguments) to taskset
|
|
#This may expand later to perform more intelligent mapping, and, possibly, to schedule cyclic execution of compiled tasks
|
|
#To isolate to one or more target cores, use taskset directly, e.g. taskset -c 1,3,5-8 <your command>
|
|
icpus="$(cat /sys/devices/system/cpu/isolated)"
|
|
taskset -c "${icpus}" $@
|