From: "J.A. Magallon" <jamagallon@able.es>
To: Lista Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Thread accounting
Date: Wed, 27 Nov 2002 03:21:49 +0100 [thread overview]
Message-ID: <20021127022149.GA2757@werewolf.able.es> (raw)
Hi al...
Since a discussion time ago, I know that accounting for threads is
broken in linux: getrusage does not give any info on children.
So I decided to do it by hand in my userspace app: each thread
tries to accout for itself, and parent sums up. But it looks like
getrusage called from a thread still gives the useless info about
the parent !!! Is this correct ? Any way to get accounting for a
thread itself, from the thread itself ?
(everytime I said thread, I meant _POSIX_ tread)
I am interested mainly in cpu (user/sys) accounting...
TIA
--
J.A. Magallon <jamagallon@able.es> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.1 (Cooker) for i586
Linux 2.4.20-rc4-jam0 (gcc 3.2 (Mandrake Linux 9.1 3.2-4mdk))
reply other threads:[~2002-11-27 2:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20021127022149.GA2757@werewolf.able.es \
--to=jamagallon@able.es \
--cc=linux-kernel@vger.kernel.org \
/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®