From: Roland McGrath <roland@redhat.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Ulrich Drepper <drepper@redhat.com>,
Christoph Lameter <clameter@sgi.com>,
akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/7] cpu-timers: high-resolution CPU clocks for POSIX clock_* syscalls
Date: Tue, 14 Dec 2004 15:08:46 -0800 [thread overview]
Message-ID: <200412142308.iBEN8kEU011850@magilla.sf.frob.com> (raw)
In-Reply-To: Linus Torvalds's message of Tuesday, 14 December 2004 14:44:47 -0800 <Pine.LNX.4.58.0412141441080.3279@ppc970.osdl.org>
> More interestingly (where "interesting" is defined as "could be really
> nasty") it's likely to interact very badly in cases where we have some
> _physically_ local clocks. Ie we might have some situation where we do
> some node-local thing for intra-node scheduling, with some other clock for
> inter-node scheduling. Exposing such a clock to a process that isn't
> actually using it could result in the node-local clock source suddenly
> needing to be exposed outside the node.
Not with the support I've written. When you get the thread CPU time of any
thread but yourself, you just take ->sched_time as already stored and don't
do a sched_clock sample right then. So you only see the amount of time
that has accrued as of that thread's last context switch or timer interrupt
(scheduler_tick), and not whatever amount is known only on the local CPU
where it is running right now.
Thanks,
Roland
next prev parent reply other threads:[~2004-12-14 23:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-14 3:55 Roland McGrath
2004-12-14 18:36 ` Christoph Lameter
2004-12-14 21:38 ` Ulrich Drepper
2004-12-14 21:50 ` Roland McGrath
2004-12-14 21:58 ` Christoph Lameter
2004-12-14 22:18 ` Linus Torvalds
2004-12-14 22:26 ` Ulrich Drepper
2004-12-14 22:44 ` Linus Torvalds
2004-12-14 23:08 ` Roland McGrath [this message]
2004-12-14 22:14 ` Roland McGrath
2004-12-14 22:23 ` Christoph Lameter
2004-12-15 18:43 ` Christoph Lameter
[not found] <200412140355.iBE3t7KL008040@magilla.sf.frob.com.suse.lists.linux.kernel>
2004-12-14 19:07 ` Andi Kleen
2004-12-14 22:44 ` Ulrich Drepper
2004-12-15 4:51 ` Andi Kleen
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=200412142308.iBEN8kEU011850@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=akpm@osdl.org \
--cc=clameter@sgi.com \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®