On Fri, 28 Jan 2022, Sebastian Andrzej Siewior wrote: > On 2022-01-28 12:44:14 [-0500], John Kacur wrote: > > I agree that our current method is too restrictive, so I like the basic > > idea here. > > > > I think we also need to differentiate between -a with no arguments > > and -a all. -a with no arguments should inherit the cpumask from the > > runtime environment but -a all, should be the same as specifying all the > > cpus and ignoring the inherited cpumask. > > do you consider number of online CPUs to not deploy more threads than > CPUs online in case some were shutdown? Not sure I understand your question, but what I am saying is that we can inherit a cpumask that has less cpus than cpus that are online. So in the case of -a, just use the cpus available in the inherited cpumask in the case of -a all, use all available cpus. > > > Thanks > > > > John > > Sebastian > >