Created
December 16, 2019 23:45
-
-
Save moyix/9cc505eb0608aa7b8445100a8ef65d7b to your computer and use it in GitHub Desktop.
A very silly script to make a Christmas tree with 224 cores in htop
This file contains 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
# Upper | |
cpulimit -l 1 -- taskset -c 0 ./pct | |
cpulimit -l 18 -- taskset -c 1 ./pct | |
cpulimit -l 35 -- taskset -c 2 ./pct | |
cpulimit -l 52 -- taskset -c 3 ./pct | |
cpulimit -l 69 -- taskset -c 4 ./pct | |
cpulimit -l 86 -- taskset -c 5 ./pct | |
cpulimit -l 103 -- taskset -c 6 ./pct | |
cpulimit -l 1 -- taskset -c 63 ./pct | |
cpulimit -l 18 -- taskset -c 64 ./pct | |
cpulimit -l 35 -- taskset -c 65 ./pct | |
cpulimit -l 52 -- taskset -c 66 ./pct | |
cpulimit -l 69 -- taskset -c 67 ./pct | |
cpulimit -l 86 -- taskset -c 68 ./pct | |
cpulimit -l 103 -- taskset -c 69 ./pct | |
cpulimit -l 1 -- taskset -c 126 ./pct | |
cpulimit -l 18 -- taskset -c 127 ./pct | |
cpulimit -l 35 -- taskset -c 128 ./pct | |
cpulimit -l 52 -- taskset -c 129 ./pct | |
cpulimit -l 69 -- taskset -c 130 ./pct | |
cpulimit -l 86 -- taskset -c 131 ./pct | |
cpulimit -l 103 -- taskset -c 132 ./pct | |
cpulimit -l 1 -- taskset -c 189 ./pct | |
cpulimit -l 18 -- taskset -c 190 ./pct | |
cpulimit -l 35 -- taskset -c 191 ./pct | |
cpulimit -l 52 -- taskset -c 192 ./pct | |
cpulimit -l 69 -- taskset -c 193 ./pct | |
cpulimit -l 86 -- taskset -c 194 ./pct | |
cpulimit -l 103 -- taskset -c 195 ./pct | |
# Lower | |
cpulimit -l 103 -- taskset -c 196 ./pct | |
cpulimit -l 86 -- taskset -c 197 ./pct | |
cpulimit -l 69 -- taskset -c 198 ./pct | |
cpulimit -l 52 -- taskset -c 199 ./pct | |
cpulimit -l 35 -- taskset -c 200 ./pct | |
cpulimit -l 18 -- taskset -c 201 ./pct | |
cpulimit -l 1 -- taskset -c 202 ./pct | |
cpulimit -l 103 -- taskset -c 147 ./pct | |
cpulimit -l 86 -- taskset -c 148 ./pct | |
cpulimit -l 69 -- taskset -c 149 ./pct | |
cpulimit -l 52 -- taskset -c 150 ./pct | |
cpulimit -l 35 -- taskset -c 151 ./pct | |
cpulimit -l 18 -- taskset -c 152 ./pct | |
cpulimit -l 1 -- taskset -c 153 ./pct | |
cpulimit -l 103 -- taskset -c 98 ./pct | |
cpulimit -l 86 -- taskset -c 99 ./pct | |
cpulimit -l 69 -- taskset -c 100 ./pct | |
cpulimit -l 52 -- taskset -c 101 ./pct | |
cpulimit -l 35 -- taskset -c 102 ./pct | |
cpulimit -l 18 -- taskset -c 103 ./pct | |
cpulimit -l 1 -- taskset -c 104 ./pct | |
cpulimit -l 103 -- taskset -c 49 ./pct | |
cpulimit -l 86 -- taskset -c 50 ./pct | |
cpulimit -l 69 -- taskset -c 51 ./pct | |
cpulimit -l 52 -- taskset -c 52 ./pct | |
cpulimit -l 35 -- taskset -c 53 ./pct | |
cpulimit -l 18 -- taskset -c 54 ./pct | |
cpulimit -l 1 -- taskset -c 55 ./pct | |
# Fill in the middle | |
for i in `seq 7 48`; do | |
taskset -c $i ./pct & | |
done | |
for i in `seq 70 97`; do | |
taskset -c $i ./pct & | |
done | |
for i in `seq 133 146`; do | |
taskset -c $i ./pct & | |
done | |
# Pause so we can look at htop | |
read |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment