mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: "Richard F. Rebel" <rrebel@whenu.com>
Cc: Mauricio Lin <mauriciolin@gmail.com>,
	linux-kernel@vger.kernel.org,
	Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Subject: Re: /proc/*/statm, exactly what does "shared" mean?
Date: Wed, 16 Feb 2005 16:10:20 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0502161559360.18376@goblin.wat.veritas.com> (raw)
In-Reply-To: <1108567021.32711.529.camel@rebel.corp.whenu.com>

On Wed, 16 Feb 2005, Richard F. Rebel wrote:
> 
> I have heard that this particular information, while very important to
> userland developers like me, is probably too expensive to keep track of
> for most users.
> 
> Perhaps a way to enable it for developers, whom are willing to spend the
> cpu cycles, and disable it for regular use would be a solution.
> 
> Would it be possible develop a solution allowing us to enable/disable
> this tracking via a sysctl call?

Possible, but I don't think a sysctl would make much sense here.

The most important thing is that any heavyweight information gathering
should not be happening by default, as a side-effect of something
frequently run.

So a lot of people would oppose putting back any such heavyweight
work into any of the /proc/<pid>/statm fields.  But if it goes into
a separate /proc/<pid>/whatever, not read by current tools, then
it's much less of a problem.

I'm still resistant, because I think if the information you're
interested in (how many private pages shared across forks) really
were of interest to many people, then someone would soon write a
top-like tool which kept sampling these values, and we'd be back to
the original situation.  Or if it's not of interest to many people,
then isn't it better off as an out-of-tree patch?

But I don't have a dogmatic position on it,
and trust others' judgement better than my own.

Hugh

  reply	other threads:[~2005-02-16 16:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-11 22:32 Richard F. Rebel
2005-02-12 13:06 ` Hugh Dickins
2005-02-12 14:39   ` Richard F. Rebel
2005-02-12 15:42     ` Hugh Dickins
2005-02-16 10:41       ` Mauricio Lin
2005-02-16 12:00         ` Hugh Dickins
2005-02-16 15:02           ` Mauricio Lin
2005-02-16 15:17             ` Richard F. Rebel
2005-02-16 16:10               ` Hugh Dickins [this message]
2005-02-17 16:33                 ` Richard F. Rebel
2005-02-16 15:58             ` Hugh Dickins
2005-02-16 14:52     ` Benjamin LaHaise

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=Pine.LNX.4.61.0502161559360.18376@goblin.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=mauriciolin@gmail.com \
    --cc=rrebel@whenu.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

all inboxes | Powered by JetHome®