From: Matthew Helsley <matthltc@us.ibm.com>
To: mchu@mirapoint.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Any faster and more efficient way to repeatedly access /proc/*
Date: Thu, 08 Mar 2007 19:11:32 -0800 [thread overview]
Message-ID: <1173409893.18226.21.camel@localhost.localdomain> (raw)
In-Reply-To: <20070308165507.AMI36767@dougfood.mirapoint.com>
On Thu, 2007-03-08 at 16:55 -0800, mchu@mirapoint.com wrote:
> Hi,
>
> Is there a faster way to access "/proc/*" other than open it as a file and reading/parsing contents? e.g. fopen("/proc/stat", "r");
>
> In BSD, there is the kvm method of access, which is relatively fast (light weight)
>
> In Linux, if I have a daemon that keeps track of these statistics, it's a hell way to manage.
>
> Imagine, having to probe the stat of each process?
Have you looked at Task Stats (CONFIG_TASKSTATS)?
Cheers,
-Matt Helsley
prev parent reply other threads:[~2007-03-09 3:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-09 0:55 mchu
2007-03-09 3:11 ` Matthew Helsley [this message]
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=1173409893.18226.21.camel@localhost.localdomain \
--to=matthltc@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchu@mirapoint.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®