Last active
July 22, 2019 07:51
-
-
Save qzm/b23ccdc276ec9696bca7cbdbda3b0655 to your computer and use it in GitHub Desktop.
run vnTrader.sh in latest CPU Core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget https://gist.githubusercontent.com/qzm/b23ccdc276ec9696bca7cbdbda3b0655/raw/8b6b7db1cf3b8144123eac562f5d3d02921b0939/vnTraderProdMode.sh && sudo chmod +x vnTraderProdMode.sh
mv vnTraderProdMode.sh vnTrader.sh