From: William Lee Irwin III <wli@holomorphy.com>
To: Roger Luethi <rl@hellgate.ch>
Cc: linux-mm@kvack.org
Subject: Re: Is /proc/#/statm worth fixing?
Date: Mon, 11 Aug 2003 09:02:22 -0700 [thread overview]
Message-ID: <20030811160222.GE3170@holomorphy.com> (raw)
In-Reply-To: <20030811090213.GA11939@k3.hellgate.ch>
On Mon, Aug 11, 2003 at 11:02:13AM +0200, Roger Luethi wrote:
> /proc/#/statm is a joke. Out of 7 columns, 2 are always zero in 2.6. Of
> the remaining columns, at least one more is incorrect. You can most
> certainly get all the intended values off /proc/#/status anyway [1].
> In 2.4, more columns show actual data, but also more of them are wrong.
> To top it off, 2.4 and 2.6 show vastly different numbers for several
> colums (where they clearly shouldn't).
> /proc/#/statm is bust and any tool relying on it is broken. Can we just
> remove that file? Maybe print poisoned values in 2.6 to prevent the odd
> program from crashing (if there are any), and remove it in 2.7.
I've restored a number of the fields to the 2.4.x semantics in tandem
with a forward port of bcrl's O(1) proc_pid_statm() patch.
I dumped the forward port of the patch into -wli, available at:
ftp://ftp.kernel.org/pub/linux/kernel/people/wli/kernels/
It's unclear how much traction it will get, as it's mildly overweight
as far as patches go, though I wouldn't go so far as to call it invasive
(opinions will vary, of course).
-- wli
--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2003-08-11 16:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 9:02 Is /proc/#/statm worth fixing? Roger Luethi
2003-08-11 16:02 ` William Lee Irwin III [this message]
2003-08-11 21:52 ` Roger Luethi
2003-08-11 22:16 ` William Lee Irwin III
2003-08-12 10:40 ` [PATCH] Deprecate /proc/#/statm Roger Luethi
2003-08-13 0:36 ` William Lee Irwin III
2003-08-13 7:58 ` Roger Luethi
2003-08-14 6:40 ` 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=20030811160222.GE3170@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-mm@kvack.org \
--cc=rl@hellgate.ch \
/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.