From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Wed, 10 Nov 2004 11:57:51 +0000 Subject: Re: removing mm->rss and mm->anon_rss from kernel? Message-Id: <1100087871.8656.59.camel@localhost> List-Id: References: <4189EC67.40601@yahoo.com.au> <418AD329.3000609@yahoo.com.au> <418AE0F0.5050908@yahoo.com.au> <418AE9BB.1000602@yahoo.com.au> <1099622957.29587.101.camel@gaston><418C55A7.9030100@yahoo.com.au> <204290000.1099754257@[10.10.2.4]> <226170000.1099843883@[10.10.2.4]> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Christoph Lameter Cc: "Martin J. Bligh" , Nick Piggin , Benjamin Herrenschmidt , Hugh Dickins , linux-mm@kvack.org, linux-ia64@vger.kernel.org On Mon, 2004-11-08 at 17:04, Christoph Lameter wrote: > On Sun, 7 Nov 2004, Martin J. Bligh wrote: > > > Doing ps or top is not unusual at all, and the sysadmins should be able > > to monitor their system in a reasonable way without crippling it, or even > > effecting it significantly. > > Hmm.. What would you think about a pointer to a stats structure in mm, > which would only be allocated if stats are requested by /proc actions? The > struct would contain a timestamp which would insure that the stats are > only generated in certain intervals and not over and over again. This > would also make it possible to force a regeneration of the numbers. I assume you mean that the mm->rss and mm->rss_anon counters have been replaced with stat calculation on demand. Maybe it is possible to keep a needs_update-flag with each vma instead. Then only the vma:s with that flag set needs to be recalculated. A nice feature would be to be able to assign each process/mm a stat gathering mode - choose between no statistics, statistics updated every N jiffy and real time statistics. Yeah, dream on. / magnus