Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755355AbYLGRkZ (ORCPT ); Sun, 7 Dec 2008 12:40:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754871AbYLGRkF (ORCPT ); Sun, 7 Dec 2008 12:40:05 -0500 Received: from e28smtp07.in.ibm.com ([59.145.155.7]:45384 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754830AbYLGRkC (ORCPT ); Sun, 7 Dec 2008 12:40:02 -0500 Date: Sun, 7 Dec 2008 23:09:58 +0530 From: Balbir Singh To: Oleg Nesterov Cc: Hugh Dickins , Jay Lan , Andrew Morton , Jiri Pirko , linux-kernel@vger.kernel.org, Jonathan Lim Subject: Re: [PATCH] introduce get_mm_hiwater_xxx(), fix taskstats->hiwater_xxx accounting Message-ID: <20081207173958.GC13333@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com Mail-Followup-To: Oleg Nesterov , Hugh Dickins , Jay Lan , Andrew Morton , Jiri Pirko , linux-kernel@vger.kernel.org, Jonathan Lim References: <20081204135250.GA5448@redhat.com> <493975BE.60202@sgi.com> <20081206084223.GA24782@balbir.in.ibm.com> <20081206103904.GC24782@balbir.in.ibm.com> <20081207161750.GA25966@redhat.com> <20081207165828.GA13333@balbir.in.ibm.com> <20081207172845.GA28520@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20081207172845.GA28520@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 824 Lines: 25 * Oleg Nesterov [2008-12-07 18:28:45]: [snip] > 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. [snip] -- Balbir -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/