mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jennifer Huang <carrothh@yahoo.com>
To: Kurt Wall <kwall@kurtwerks.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question about cpu time accuracy.
Date: Sun, 12 May 2002 19:49:33 -0700 (PDT)	[thread overview]
Message-ID: <20020513024933.74553.qmail@web20110.mail.yahoo.com> (raw)
In-Reply-To: <20020512185709.C623@marta>

Thanks very much for your information.

Just one more question, does it work for 2.4.18?
Thanks.

--- Kurt Wall <kwall@kurtwerks.com> wrote:
> Scribbling feverishly on May 12, Jennifer Huang
> managed to emit:
> > Hi all,
> > 
> > I have a question about cpu time accuracy.
> > 
> > I am using kernel 2.4.18. But, when I tried
> "utime"
> > and "nanosleep" to get a process suspended, it
> only
> > worked in 10ms granularity, and it's no way to
> sleep
> > for 1 microsecond.
> 
> The standard kernel timer has a resolution of 1/HZ,
> which is 10ms on 
> an x86. You could try a scheduling policy of
> SCHED_FIFO or SCHED_RR,
> but this only gets you 2ms resolution. 
> 
> > Anyone can help me out of this?
> 
> There are patches available for high resolution
> timers:
> 
> http://sourceforge.net/projects/high-res-timers/
> http://www.cs.wisc.edu/paradyn/libhrtime/
> 
> Kurt
> -- 
> Anarchy may not be the best form of government, but
> it's better than no
> government at all.
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

  reply	other threads:[~2002-05-13  2:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-12 22:37 Jennifer Huang
2002-05-12 22:57 ` Kurt Wall
2002-05-13  2:49   ` Jennifer Huang [this message]
2002-05-13  3:22     ` Question about cpu time accuracy. Er resolution! george anzinger

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=20020513024933.74553.qmail@web20110.mail.yahoo.com \
    --to=carrothh@yahoo.com \
    --cc=kwall@kurtwerks.com \
    --cc=linux-kernel@vger.kernel.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®