Why? You ignored this part:
Say, right after exit_mm() we are doing acct_process(), and f_op->write()
needs a page. So, you are saying that in this case __page_cache_alloc()
can never trigger out_of_memory() ?
why this is not possible?
David, I am not arguing, I am asking.
No it doesn't, see use_mm(). See also another email I sent.
Just can't understand.
OK, a bad user does
int sleep_forever(void *)
Now, every time select_bad_process() is called it will find this process
and PF_EXITING is true, so it just returns ERR_PTR(-1UL). And note that
this process is not going to exit.
Why? shouldn't oom_badness() return the same result for any thread
in thread group? We should take all childs into account.
Oh, yes sure, I mentioned get_mm_rss() above.
Yes, this is what I meant.
Yes, but we can check child->mm == tsk->mm, call get_mm_counter() and drop