Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1496597
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature |
| Date | 2016-10-06 13:20 +0200 |
| Message-ID | <speSt-7QX-5@gated-at.bofh.it> (permalink) |
| References | <snqXL-7RK-9@gated-at.bofh.it> <snqXL-7RK-11@gated-at.bofh.it> <soVwt-2at-1@gated-at.bofh.it> <soXeW-3hV-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Wed, 5 Oct 2016, Tim Chen wrote:
> On Wed, 2016-10-05 at 16:35 +0200, Thomas Gleixner wrote:
> > > + if (itmt_supported) {
> > > + itmt_sysctl_header =
> > > + register_sysctl_table(itmt_root_table);
> > > + if (!itmt_sysctl_header) {
> > > + mutex_unlock(&itmt_update_mutex);
> > > + return;
> > So you now have a state of capable which cannot be enabled. Whats the
> > point?
>
> For multi-socket system where ITMT is not enabled by default, the operator
> can still decide to enable it via sysctl.
With a sysctl which failed to be installed. Good luck with that.
> > > + }
> > > + /*
> > > + * ITMT capability automatically enables ITMT
> > > + * scheduling for small systems (single node).
> > > + */
> > > + if (topology_num_packages() == 1)
> > > + sysctl_sched_itmt_enabled = 1;
> > > + } else {
> > > + if (itmt_sysctl_header)
> > > + unregister_sysctl_table(itmt_sysctl_header);
> > > + }
> > > +
> > > + if (sysctl_sched_itmt_enabled) {
> > > + /* disable sched_itmt if we are no longer ITMT capable */
> > > + if (!itmt_supported)
> >
> > How do you get here if itmt is not supported?
>
> If the OS decides to turn off ITMT for any reason, (i.e. invoke
> sched_set_itmt_support(false) after it has turned on itmt_support
> before), this is the logic to do it. We don't turn off ITMT support
> after it has been turned on today, in the future the OS may.
Then please make this two functions (set/clear) so one can actually follow
the logic. The above is just too convoluted.
Thanks,
tglx
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> - 2016-10-01 13:50 +0200
Re: [PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature Thomas Gleixner <tglx@linutronix.de> - 2016-10-05 16:40 +0200
Re: [PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature Tim Chen <tim.c.chen@linux.intel.com> - 2016-10-05 18:30 +0200
Re: [PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature Thomas Gleixner <tglx@linutronix.de> - 2016-10-06 13:20 +0200
Re: [PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature Tim Chen <tim.c.chen@linux.intel.com> - 2016-10-06 19:40 +0200
Re: [PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature Tim Chen <tim.c.chen@linux.intel.com> - 2016-10-12 19:00 +0200
csiph-web