From: Andrew Morton <akpm@osdl.org>
To: Paul Mackerras <paulus@samba.org>
Cc: anton@samba.org, ahuja@austin.ibm.com,
linux-kernel@vger.kernel.org,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Subject: Re: [PATCH] PPC64 collect and export low-level cpu usage statistics
Date: Wed, 9 Feb 2005 15:06:43 -0800 [thread overview]
Message-ID: <20050209150643.60812d3f.akpm@osdl.org> (raw)
In-Reply-To: <16906.34562.379000.336836@cargo.ozlabs.ibm.com>
Paul Mackerras <paulus@samba.org> wrote:
>
> POWER5 machines have a per-hardware-thread register which counts at a
> rate which is proportional to the percentage of cycles on which the
> cpu dispatches an instruction for this thread (if the thread gets all
> the dispatch cycles it counts at the same rate as the timebase
> register). This register is also context-switched by the hypervisor.
> Thus it gives a fine-grained measure of the actual cpu usage by the
> thread over time.
>
> This patch adds code to read this register every timer interrupt and
> on every context switch.
fyi: This patch consumes another entry from thread_struct.pad[].
ppc64-implement-a-vdso-and-use-it-for-signal-trampoline.patch consumes two
more entries, so with both patches, you have none left.
next prev parent reply other threads:[~2005-02-09 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-09 21:56 [PATCH] PPC64 collect and export low-level cpu usage statistics Paul Mackerras
2005-02-09 23:06 ` Andrew Morton [this message]
2005-02-09 23:17 ` Benjamin Herrenschmidt
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=20050209150643.60812d3f.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=ahuja@austin.ibm.com \
--cc=anton@samba.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.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.