linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, riel@surriel.com
Subject: Re: statm_pgd_range() sucks!
Date: Thu, 29 Aug 2002 19:51:44 -0700	[thread overview]
Message-ID: <3D6EDDC0.F9ADC015@zip.com.au> (raw)
In-Reply-To: <20020830015814.GN18114@holomorphy.com>

William Lee Irwin III wrote:
> 
> Okay, I have *had it* with statm_pgd_range()!

It's certainly very bad.  A measurement tools shouldn't be perturbing
the system so much as to invalidate the results of other measurement
tools, and this one does.

I have several times had colleagues peering at kernel code wondering
why their application was spending so long in statm_pgd_range when
it really wasn't.

> ...
> (1) shared, lib, text, & total are now reported as what's mapped
>         instead of what's resident. This actually fixes two bugs:

hmm.  Personally, I've never believed, or even bothered to try to
understand what those columns are measuring.  Does anyone actually
find them useful for anything?  If so, what are they being used for?
What info do we really, actually want to know?

Reporting the size of the vma is really inaccurate for many situations, 
and the info which you're showing here can be generated from
/proc/pid/maps.  And it would be nice to get something useful out of this.

Would it be hard to add an `nr_pages' occupancy counter to vm_area_struct?
Go and add all those up?

BTW, Rohit's hugetlb patch touches proc_pid_statm(), so a diff on -mm3
would be appreciated.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2002-08-30  2:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-30  1:58 William Lee Irwin III
2002-08-30  2:51 ` Andrew Morton [this message]
2002-08-30  3:12   ` William Lee Irwin III
2002-08-30  3:54     ` Andrew Morton
2002-08-30 17:45     ` Gerrit Huizenga
2002-09-01 22:02   ` Daniel Phillips
2002-09-05  3:20   ` William Lee Irwin III
2002-09-05  4:48     ` Andrew Morton
2002-09-05  6:05       ` William Lee Irwin III
2002-09-05  6:49         ` Andrew Morton
2002-09-05  7:07           ` William Lee Irwin III
2002-09-05  6:22     ` William Lee Irwin III
2002-08-30  8:24 ` Anton Blanchard
2002-08-30  8:31   ` William Lee Irwin III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D6EDDC0.F9ADC015@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=riel@surriel.com \
    --cc=wli@holomorphy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox