From: Christoph Lameter <clameter@sgi.com>
To: Roland McGrath <roland@redhat.com>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ulrich Drepper <drepper@redhat.com>,
jbarnes@sgi.com
Subject: Re: [PATCH] CPU time clock support in clock_* syscalls
Date: Thu, 7 Oct 2004 13:24:28 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0410071318060.24477@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <200410071945.i97Jj8lV016039@magilla.sf.frob.com>
On Thu, 7 Oct 2004, Roland McGrath wrote:
> All glibc users need is one definition of the most accurate CPU time clock
> available, and that will be provided through the POSIX interfaces
> (CLOCK_THREAD_CPUTIME_ID, CLOCK_PROCESS_CPUTIME_ID, clock_getcpuclockid,
> and pthread_getcpuclockid). We have no intention of providing detailed
> access to different kinds of hardware clocks in a glibc interface. If you
> want that, write your own separate interface. Users I know about are
> interested in the most accurate CPU time tracking that is available on the
> system they are using in a given instance. This is what they get by
> letting the kernel implementation, configuration, and hardware detection
> choose the optimal way to implement sched_clock, which is what they now get.
CLOCK_*_CPUTIME_ID are not clocks in a real sense. The user should
never choose those for real time. The most accurate time is provided by
CLOCK_REALTIME by the kernel.
> By contrast, your patch provides a new way to access the
> least-common-denominator low-resolution information already available by
> other means, and nothing more.
Yes the information is available also through the /proc filesystem. But it
should also be available through clock_gettime and friends. The patch
makes these calls posix compliant nothing more. Increasing the accuracy
of the timers better be done with the revision of the time handling
proposed by John Stultz.
> I'm sorry that you do not see it. "My context" is that the actual
> problems, some of which you've talked about and some of which you seem to
> have misunderstood, are indeed solved by the work I've done, and I've
> explained more than once how that is the case. I'm glad that you are not
> unhappy continuing to discuss the issue. I don't mind continuing any
> discussion that is making any progress. I hope you also don't have a
> problem foregoing the ten repetitions of your understanding of the
> situation, which I believe you have already communicated successfully so I
> understand what you think about it, and addressing yourself instead to any
> concrete concerns that remain given a clear understanding of what the new
> situation will in fact be given my kernel implementation and appropriate
> glibc support tailored for it.
I am happy that you are at least discussing the issue.
I did not see a clean implementation of CLOCK_*_CPUTIME_ID,
nor that the issue of providing additional clocks via clock_gettime
was addressed.
next prev parent reply other threads:[~2004-10-07 20:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 5:15 Roland McGrath
2004-10-05 5:20 ` Andrew Morton
2004-10-05 5:27 ` Roland McGrath
2004-10-05 6:43 ` Nick Piggin
2004-10-05 18:28 ` Roland McGrath
2004-10-05 23:18 ` Nick Piggin
2004-10-06 0:33 ` Roland McGrath
2004-10-06 0:51 ` Nick Piggin
2004-10-05 15:39 ` Christoph Lameter
2004-10-05 18:38 ` Roland McGrath
2004-10-05 20:53 ` Christoph Lameter
2004-10-05 21:22 ` Roland McGrath
2004-10-05 21:28 ` Christoph Lameter
2004-10-06 0:35 ` Roland McGrath
2004-10-06 1:21 ` Christoph Lameter
2004-10-07 19:45 ` Roland McGrath
2004-10-07 20:24 ` Christoph Lameter [this message]
2004-10-05 17:29 ` Christoph Lameter
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=Pine.LNX.4.58.0410071318060.24477@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=akpm@osdl.org \
--cc=drepper@redhat.com \
--cc=jbarnes@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--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®