On Mon, Oct 27, 2014 at 10:18:45AM -0700, Cong Wang wrote: > On some (30+) of our production machines, we have seen lots of hung > tasks after OOM killer tried to kill some process in mem cgroup. See > the backtraces in the bottom for details. > > Essentially we only need patch 8/9, but it is in a series of patches, > so the first 7 patches are needed for dependency, while the last patch > is a follow-up fix. There is only one minor conflict in patch 4/9. > Of course, all of them were already merged in upstream, please check > each patch for details. > > I can easily reproduce this problem by repeating the following script: > > #!/bin/bash > > TEST_DIR=/tmp/cgroup_test > [ -d $TEST_DIR ] || mkdir -p $TEST_DIR > mount -t cgroup none $TEST_DIR -o memory > mkdir $TEST_DIR/test > echo 512k > $TEST_DIR/test/memory.limit_in_bytes > dd if=/dev/zero of=/tmp/oom_test_big_file bs=512 count=20000000 & > echo $! > $TEST_DIR/test/tasks > rm -f /tmp/oom_test_big_file > umount $TEST_DIR > > therefore can also confirm these patches fix the bug. > > Probably some other stable kernels need this as well, but unfortunately > I only have time and resources to test 3.10. Sorry about this. > > Cc: Johannes Weiner <hannes@xxxxxxxxxxx> > Cc: Michal Hocko <mhocko@xxxxxxx> > Signed-off-by: Cong Wang <xiyou.wangcong@xxxxxxxxx> All now applied, thanks. greg k-h -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html