[LTP] [PATCH] cpuset_regression_test: Fix for already existing cpusets

Joerg Vehlow lkml@jv-coder.de
Fri Dec 4 11:32:10 CET 2020


Hi,
On 11/16/2020 3:46 PM, Richard Palethorpe wrote:
> If the system has already set exclusive cpus then it is unlikely this
> regression effects it. Either the kernel has been patched or the system
> manager configures the cpus first before setting the exclusive knob.
Yes "either or". If the system manager or whatever configured the 
cgroups did it in the
"right" order, that cannot trigger the bug, we do not know, if the bug 
still exists.

> Normally I would say the test should try to run anyway, but you are
> having to make some intrusive changes to the cgroup setup which could
> lead to other problems.
>
> So why not just call 'tst_brk TCONF' if the system already has exclusive
> cpus configured?
The question is, should ltp try hard to run a test or not. You may be right,
that this could have other effects, but ltp tests can crash a system anyway,
so I wouldn't worry about that. Of course TCONF would be simpler, but it 
would
also skip the test...

Do you have a scenario in mind, where changing the cpusets could potentially
cause problems? This would require a system, where something meaningful is
running, that requires specific cpu time or a specific cpu. But if that 
would
be the case, all ltp tests could interfere with it right?

Jörg


More information about the ltp mailing list