public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: Jes Sorensen <jes@trained-monkey.org>
Cc: libc-hacker@sources.redhat.com
Subject: Re: ia64 clock_gettime and HP_TIMING
Date: Wed, 12 Nov 2003 18:00:00 -0000	[thread overview]
Message-ID: <3FB2751B.9010302@redhat.com> (raw)
In-Reply-To: <16306.21333.78785.923547@gargle.gargle.HOWL>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jes Sorensen wrote:

> I fixed this for glibc-2.2 a while ago by making HP_TIMING() call
> gettimeofday() which is fine (patch below) as with the fast system calls
> on ia64 it's about 150 cycles.

That's bogus.  The HP stands for high precision, nothing gettimeofday
can provide.

The assumption when starting to use itc was that it is synchronized.
And this seems to be the case for reasonable machines.  Just not these
NUMA abominations.  So the solution is: use nothing related to this
clock on NUMA machines.  Maybe build a separate libc version (similar to
x86 without TSC).


> Now my question is what one should do wrt clock_gettime(). The
> implementation in CVS uses HP_TIMING() for CLOCK_PROCESS_CPUTIME_ID,
> however I was curious if I could just switch that to calling
> sys_clock_gettime() directly and then use gettimeofday() as a fall-back?

This question has been obsoleted by the comment above.  You cannot use
gettimeofday or the clock_* syscalls for it.

- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/snUb2ijCOnn/RHQRAn+uAKDKRhmLBe4nstj+gPqSd5vfUmdp8wCfZWkh
NGazQ38hQ+0siy2qSoRinaM=
=Sowo
-----END PGP SIGNATURE-----

  reply	other threads:[~2003-11-12 18:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12 15:35 Jes Sorensen
2003-11-12 18:00 ` Ulrich Drepper [this message]
2003-11-13  8:25   ` Jes Sorensen
2003-11-13  9:15     ` Ulrich Drepper
2003-11-13 13:27       ` Jes Sorensen
2003-11-13 22:54         ` David Mosberger
2003-11-13 23:26           ` Ulrich Drepper
2003-11-14  9:46           ` Jes Sorensen
2003-11-14 17:57             ` Ulrich Drepper
2003-12-01 15:56               ` Jes Sorensen
2003-12-10  9:57                 ` Jes Sorensen
2003-12-10 23:39                   ` Ulrich Drepper
2003-12-11 10:50                     ` Jes Sorensen
2003-12-11 19:29                       ` David Mosberger
2003-12-11 20:48                 ` Ulrich Drepper
2003-12-12  8:49                   ` Jes Sorensen
2003-11-17 23:39             ` David Mosberger

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=3FB2751B.9010302@redhat.com \
    --to=drepper@redhat.com \
    --cc=jes@trained-monkey.org \
    --cc=libc-hacker@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).