Theo de Raadt has introduced a new hw.blockcpu sysctl to #OpenBSD -current to offer more control over which CPU core types (Performance, Efficiency, and SMT) are available to schedule processes on. Modern Intel (and ARM) CPUs additionally have slower LP-E (low-power) cores that severely hinder system performance.

deraadt@ modified src/sys/*: Some new intel machines have a new 3rd tier of cpus called LP-E which are E-core (Atom) without L3 cache. These cpus are Lethargic, and it sucks when processes migrate to them.
This introduces sysctl hw.blockcpu= which takes a sequence of 4 letters.
S (for SMT), P (regular performance cpu), E (efficient cpu) generally 80% to 50% as fast), and L (lethargic cpu) which are even slower.
By setting this, you can select cpus to kick out of the scheduler. The default is SL.
The hw.smt sysctl remains for now but we will eventually delete it.
hw.smt changes and follows hw.blockcpu=S.
ok kettenis mlarkin

@brynet are power-savings roughly inverse-proportional to the speed, so if one wanted to maximize battery-life, one might set the sysctl to SPE and only get L CPUs?

And a piece of me is curious what happens if I were to do something dumb like pass all the flags and block all the CPUs 😆

sysctl hw.blockcpu=LEPS

@davepolaschek @gumnos The arm bits haven't landed yet and AFAIK will be mostly relevant on much more recent machines.