All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Piel <Eric.Piel@tremplin-utc.net>
To: linux-os@analogic.com
Cc: quade <quade@hsnr.de>, linux-kernel@vger.kernel.org
Subject: Re: latency error (~2ms) with nanosleep
Date: Mon, 13 Jun 2005 16:27:49 +0200	[thread overview]
Message-ID: <42AD97E5.10600@tremplin-utc.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0506131011370.16830@chaos.analogic.com>

06/13/2005 04:21 PM, Richard B. Johnson wrote/a écrit:
> 
> nanosleep, according to the documation is supposed to sleep
> "at least" the 'struct timespec' time. It can return in
> a shorter time as a result of a signal and, if so, the
> input time-values will be updated accordingly. The resolution
> is limited to the HZ value. This means that it will, unless
> interrupted, always sleep at least 1 / HZ seconds (about 1 ms
> on current x86 distributions).
> 
> FYI, there is no 'fine resolution' timer available on any
> Linux-ported platform that could take advantage of the nanosecond
> input resolution of the function.
> 
I could add that there is a project working on this issue: 
high-resolution timers . You can download patches for 2.6 and 2.4 . The 
precision is in the order of 10 or 100 µs.

Eric

  reply	other threads:[~2005-06-13 14:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-13 13:30 latency error (~2ms) with nanosleep quade
2005-06-13 14:21 ` Richard B. Johnson
2005-06-13 14:27   ` Eric Piel [this message]
2005-06-13 16:48 ` Chris Friesen
2005-06-13 16:54   ` Nish Aravamudan
2005-06-14  8:57     ` quade

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=42AD97E5.10600@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    --cc=quade@hsnr.de \
    /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.