parent
3a69b7356c
commit
75dc279f43
2
smt.sh
2
smt.sh
|
@ -12,7 +12,7 @@
|
||||||
# Try your best to control SMT on Ryzen CPUs (and maybe others?)
|
# Try your best to control SMT on Ryzen CPUs (and maybe others?)
|
||||||
# Usage: ./smt.sh (enable|disable|status)
|
# Usage: ./smt.sh (enable|disable|status)
|
||||||
|
|
||||||
num_cores=`lscpu | grep "CPU(s):" | grep -v "," | grep -v "-" | cut -d: -f2 | awk '{print $1}'`
|
num_cores=`nproc --all`
|
||||||
num_procs=`nproc`
|
num_procs=`nproc`
|
||||||
|
|
||||||
coreLoop() {
|
coreLoop() {
|
||||||
|
|
Loading…
Reference in New Issue