All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert Cahalan <albert@users.sf.net>
To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
Cc: rl@hellgate.ch, linux-mm@vger.kernel.org, u1_amd64@dslr.net
Subject: Re: time cat /proc/*/statm ?
Date: 10 Jan 2004 12:57:01 -0500	[thread overview]
Message-ID: <1073757421.828.25312.camel@cube> (raw)

Roger Luethi writes:

> Why does top still read /proc/*/statm anyway?
> It's not as if top actually ever used that
> information (the top I looked at at the time,
> that is). I submitted a patch a few months ago
> to remove statm because it is a) broken and
> b) redundant. The message containing detailed
> reasoning should be in the linux-mm archives.

top (from procps-3.1.14 at least) only reads
the /proc/*/statm files when you activate
columns that need the statm data. Those are:

%MEM   Memory usage (RES) 
VIRT   Virtual Image (kb) 
SWAP   Swapped size (kb) 
RES    Resident size (kb) 
CODE   Code size (kb) 
DATA   Data+Stack size (kb) 
SHR    Shared Mem size (kb)
nDRT   Dirty Pages count 

By default, some of those get displayed.
The default includes: VIRT RES SHR %MEM

To get rid of those, type this:
   f  o  q  t  n  enter  W
(the "W" writes out a config file)

In case your top is too old for this, you
can go to http://procps.sf.net/ for a new one.



             reply	other threads:[~2004-01-10 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-10 17:57 Albert Cahalan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-08 18:54 time cat /proc/*/statm ? u1_amd64
2004-01-09  0:32 ` Roger Luethi
2004-01-09  0:49 ` Willy Tarreau

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=1073757421.828.25312.camel@cube \
    --to=albert@users.sf.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@vger.kernel.org \
    --cc=rl@hellgate.ch \
    --cc=u1_amd64@dslr.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.