Skip to content

Instantly share code, notes, and snippets.

@qzm
Last active July 22, 2019 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qzm/b23ccdc276ec9696bca7cbdbda3b0655 to your computer and use it in GitHub Desktop.
Save qzm/b23ccdc276ec9696bca7cbdbda3b0655 to your computer and use it in GitHub Desktop.
run vnTrader.sh in latest CPU Core
#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
cd ${BASEDIR}
sudo taskset -c 1,2,3 nice -n -20 /home/ubuntu/anaconda3/bin/python vnTrader.py
#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
cd ${BASEDIR}
sudo taskset -c $(cat /proc/cpuinfo| grep "processor"| tail -1 | grep -Eo '[0-9]+') nice -n -20 /home/ubuntu/anaconda3/bin/python vnTrader.py
@qzm
Copy link
Author

qzm commented Jul 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment