Thread (24 messages) 24 messages, 3 authors, 2016-10-27

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

From: Peter Zijlstra <peterz@infradead.org>
Date: 2016-10-26 11:25:53
Also in: linux-acpi, lkml

On Wed, Oct 26, 2016 at 12:49:36PM +0200, Thomas Gleixner wrote:
quoted
+	/*
+	 * ITMT capability automatically enables ITMT
+	 * scheduling for small systems (single node).
+	 */
+	if (topology_num_packages() == 1)
+		sysctl_sched_itmt_enabled = 1;
I really hate this. This is policy and the kernel should not impose
policy. Why would I like to have this enforced on my single socket XEON
server?
So this really wants to be enabled by default; otherwise nobody will use
this, and it really does help single threaded workloads.

There were reservations on the multi-socket case of ITMT, maybe it would
help to spell those out in great detail here. That is, have the comment
explain the policy instead of simply stating what the code does (which
is always bad comment policy, you can read the code just fine).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help