On 09/11, Oleg Nesterov wrote: > > On 09/06, Michal Hocko wrote: > > > > So a question for Oleg I guess. Is it possible that for_each_process > > live locks (or stalls for way too long/unbounded amount of time) under > > heavy fork/exit loads? > > Oh yes, it can... plus other problems. > > I even sent the initial patches which introduce for_each_process_break/continue > a long ago... I'll try to find them tommorrow and resend. Two years ago ;) I don't understand why there were ignored, please see "[PATCH 0/2] introduce for_each_process_thread_break() and for_each_process_thread_continue()" I sent a minute ago. However, I didn't notice that the subject mentions oom/dump_tasks... As for dump_tasks() it probably doesn't need the new helpers, I'll write another email tomorrow, but perhaps the time limit is all we need. Oleg.