cpuset_regression_test: convert and improve
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cpuset_regression_test: Convert to new apitestcases/ | +56 | 2 replies | |
| 2/3 | cpuset_regression_test: Drop min cpu requirementtestcases/ | +4 | 1 reply | |
| 3/3 | cpuset_regression_test: Allow running, if groups existtestcases/ | +51 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Richard Palethorpe |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [LTP] [PATCH 0/3] cpuset_regression_test: convert and improve
Hi,
this is more or less a v2 of a patch I send previously (patch 3). I know that richard is not entirely happy with this patch, I will give it another try anyway...
It is either this patch or another patch, that has to look through the cgroup hierarchy, to check if there is any group,that explicitely uses cpu 0.
To me, it is a better solution to just change groups for a short time, and check if the bug exists. If ltp tests are running, the chance, that there is anything running, that really needs a correct cpuset is very low. I am comming from a system, where cgroups are setup by a container launcher, that just happens to assign cpus to the containers - not even exclusively. LTP tests are used as some part of the testsuite, to test as close to a production system as possible.
The only way I could think of a process misbehaving by disabeling cpu pinning, would be a badly written multithread application, that cannot correctly run, if threads are really running in parallel, but this would also require a scheduling policy, that makes scheduling points predicatable. While I know that software like that exists (in fact I was working on something like that in the past), I think it is highly unlikely, that it is running parallel to ltp.
And even then, this could be mitigated by not just setting cpu binding to undefined, but to one fixed core. But with the changes in patch 2, this is not possible.
But anyhow ltp fiddles with lots of critical system parameters during it's runtime, there is no guarantee, that an application that requires some very specific kernel runtime settings survives this. That's why I would still vote for this patch.
J?rg