public inbox for devnull+historical-speck@kernel.org
 help / color / mirror / Atom feed
* [MODERATED] [PATCH 0/1] SMTCTL 0
@ 2018-06-07 20:54 Andi Kleen
  2018-06-07 20:54 ` [MODERATED] [PATCH 1/1] SMTCTL 1 Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2018-06-07 20:54 UTC (permalink / raw)
  To: speck

Here's an alternative proposal for SMT disabling.

I reimplemented my script as a C tool and put it into tools/* 

# smtctl --enable
# smtctl --disable
# smtctl --print

Advantages:
- No kernel changes (although it would benefit from a minor one,
see the commit)
- Much easier to use at runtime than opaque sysfs
- Encourages the right use model of only switching SMT state
when it is actually needed and based on a conscious decision, 
not unnecessarily or globally.

Andi Kleen (1):
  tools/smtctl: Add smtctl to enable/disable SMT at runtime

 tools/smtctl/Makefile |  10 ++
 tools/smtctl/smtctl.c | 257 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 267 insertions(+)
 create mode 100644 tools/smtctl/Makefile
 create mode 100644 tools/smtctl/smtctl.c

-- 
2.14.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-07 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-07 20:54 [MODERATED] [PATCH 0/1] SMTCTL 0 Andi Kleen
2018-06-07 20:54 ` [MODERATED] [PATCH 1/1] SMTCTL 1 Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox