Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # need to be run as root
- set -e
- # Deny non-root run
- if [ "$EUID" -ne 0 ]
- then echo "ERROR: Please run as root"
- exit
- fi
- SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
- # Prepare environment for qemu
- ${SCRIPT_PATH}/prepare.sh
- # Run qemu
- sudo -u alex numactl --membind 0 ${SCRIPT_PATH}/qemu.sh $@ &
- sleep 5
- # Pin qemu threads to cpus
- ${SCRIPT_PATH}/pin-cpu-cores.py
- wait
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement