You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support launching with hyperthreading disabled (--cpu-options ThreadsPerCore=1) #73
spawn currently has no option to disable hyperthreading when launching instances. For HPC workloads, per-core-licensed software, and memory-bound workloads, launching with ThreadsPerCore=1 can significantly improve performance by eliminating contention between hyperthreads sharing the same physical core.
Proposed feature
Add a flag to spawn launch that sets AWS CPU options:
# Disable hyperthreading — each vCPU = 1 physical core
spawn launch --instance-type c7i.8xlarge --no-hyperthreading
# Or more granular control
spawn launch --instance-type c7i.8xlarge --threads-per-core 1
This maps to the AWS EC2 RunInstances API parameter:
{
"CpuOptions": {
"ThreadsPerCore": 1
}
}
Use cases
HPC workloads — memory-bound computation (CFD, FEA) where two hyperthreads sharing an L1/L2 cache hurts more than it helps
Per-core licensing — Oracle, MATLAB, etc. charge per physical core; disabling HT means you pay for fewer cores
Consistent performance — eliminating HT removes jitter from co-located threads competing for execution units
MPI jobs — --mpi-processes-per-node currently defaults to vCPU count, but with HT disabled it would equal physical core count (the right number for memory-bound codes)
Context
Related truffle issue: spore-host/truffle#43 (truffle doesn't distinguish cores vs vCPUs)
Activity