Re: [PATCH] introduce get_mm_hiwater_xxx(), fixtaskstats->hiwater_xxx accounting

From: Balbir Singh
Date: Sun Dec 07 2008 - 12:40:26 EST

* Oleg Nesterov <oleg@xxxxxxxxxx> [2008-12-07 18:28:45]:


> No. When the task does unmap, vm does update_hiwater_vm() "internally",
> it does not need the help from do_exit(). And do_exit() can't help,
> it is to late to calculate the maximum, ->total_vm was already decreased.
> do_exit() itself does not affect rss/vm. Until we call exit_mmap(),
> but at this point ->mm is dead, nobody can look at it, its ->mm_users
> is zero.

OK, I think that makes sense, since free would have cleaned up the
memory before entering the exit system call.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at