linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Is /proc/#/statm worth fixing?
@ 2003-08-11  9:02 Roger Luethi
  2003-08-11 16:02 ` William Lee Irwin III
  0 siblings, 1 reply; 8+ messages in thread
From: Roger Luethi @ 2003-08-11  9:02 UTC (permalink / raw)
  To: linux-mm

/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.

Roger

[1] Mind you it's tricky to find out what correct behaviour would be if the
    only documentation you can find has obviously been wrong forever.
--
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>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-08-14  6:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11  9:02 Is /proc/#/statm worth fixing? Roger Luethi
2003-08-11 16:02 ` William Lee Irwin III
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox