On 6/7/19 3:19 AM, Michal Koutný wrote:
On Wed, Jun 05, 2019 at 02:42:00PM -0600, Tom Hromatka
<tom.hroma...@oracle.com> wrote:
I created a simple double-forking test program to try and reproduce the
issue, but I was unable to get it to happen. Is your system heavily
loaded? Any recommendations on reproducing the issue?
I reproduce this when cgrulesengd is slowed down relatively, the overall load
or renice helps this. And the double forking program is multithreaded.
Thanks! Your steps made it really easy to reproduce the issue.
The v2 patch definitely improved the race condition, but I was still
able to "confuse" cgrulesengd on my system by setting its niceness to
19 _and_ compiling the linux kernel at the same time. In this
highly-loaded scenario, the test program was not assigned to the testcgroup
and rather fell into /user.slice.
I would like to hear others' thoughts - especially if it's possible to
fully resolve the race condition, but I think this patch is an improvement
over the current code.
Thanks.
Tom
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel