From: Peter Zaitsev <peter@mysql.com>
To: linux-kernel@vger.kernel.org
Subject: Measuring per thread CPU consumption & others statistics for NPTL
Date: Sun, 16 Nov 2003 19:10:25 +0300 [thread overview]
Message-ID: <1068997909.2276.64.camel@abyss.local> (raw)
Dear Kernel developers,
I would wish to add to MySQL profiling of CPU and system usage, which
would allow for example to see amount of system/user CPU needed to
process particular query as well as amount of IO needed.
With LinuxThreads I probably can use times() or getrusage() for this
purpose, as Threads share a lot of infrastructure with processes.
This however would not work with NPTL threads.
Are there any ways to get similar information for thread rather than
process ?
Second question is about accuracy - Is any way to get system/user CPU
consumption information with more than 1/100 sec accuracy ?
Thank you for your advices.
--
Peter Zaitsev, Full-Time Developer
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification
next reply other threads:[~2003-11-16 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-16 16:10 Peter Zaitsev [this message]
2003-11-17 0:27 ` Measuring per thread CPU consumption & others statistics for NPTL Peter Chubb
2003-11-17 9:25 ` Peter Zaitsev
2003-11-20 18:02 ` Herbert Poetzl
[not found] <SxNf.4R.13@gated-at.bofh.it>
[not found] ` <SFro.3ee.13@gated-at.bofh.it>
[not found] ` <SNSi.6vN.39@gated-at.bofh.it>
2003-11-17 16:36 ` John Reiser
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=1068997909.2276.64.camel@abyss.local \
--to=peter@mysql.com \
--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 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.