> On April 9, 2014, 10:12 p.m., Vinod Kone wrote: > > src/linux/cgroups.cpp, line 1073 > > <https://reviews.apache.org/r/19951/diff/2/?file=548435#file548435line1073> > > > > woah. i thought this was not supported by kernels < 3.10 !?
That was my initial, incorrect understanding based partly because we'd been using tasks which definitely doesn't move all threads in a thread group. However: Documentation/cgroups/cgroups.txt: "You can use the cgroup.procs file instead of the tasks file to move all threads in a threadgroup at once. " - Ian ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19951/#review39948 ----------------------------------------------------------- On April 3, 2014, 10:59 p.m., Ian Downes wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/19951/ > ----------------------------------------------------------- > > (Updated April 3, 2014, 10:59 p.m.) > > > Review request for mesos, Benjamin Hindman, Ben Mahler, and Vinod Kone. > > > Repository: mesos-git > > > Description > ------- > > Use cgroups.proc (rather than tasks) so all threads in the pid's threadgroup > are assigned. > > Documentation/cgroups/cgroups.txt: > "You can use the cgroup.procs file instead of the tasks file to move all > threads in a threadgroup at once. " > > Added a test to verify all threads are assigned. > > This obviates the recently introduced assignAllThreads and thus it has been > removed. > > > Diffs > ----- > > src/linux/cgroups.hpp 5a5735721fb9f051eee661edb08d1cdaa163d0f3 > src/linux/cgroups.cpp 8202c282f580d027a60ded2081962e96e4860f60 > src/slave/slave.cpp a356f5f0a0a43581c6380df1bc9b15fd228b3015 > src/tests/cgroups_tests.cpp 6ba9de622953e158feadaa9950618b0b13c9e832 > src/tests/cluster.hpp 11684d99c6a4e623dd5ff9977d210de59f33f5cd > > Diff: https://reviews.apache.org/r/19951/diff/ > > > Testing > ------- > > make check # Linux > > > Thanks, > > Ian Downes > >
