From: Nix <nix@esperi.org.uk>
To: Jeff Dike <jdike@addtoit.com>
Cc: Thomas Gleixner <tglx@timesys.com>,
linux-kernel Mailing List <linux-kernel@vger.kernel.org>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [2.6.24.x] UML select()/poll() oversleeping reproducibly
Date: Mon, 17 Mar 2008 21:08:16 +0000 [thread overview]
Message-ID: <87k5k112kf.fsf@hades.wkstn.nix> (raw)
In-Reply-To: <20080317193415.GA12234@c2.user-mode-linux.org> (Jeff Dike's message of "Mon, 17 Mar 2008 15:34:15 -0400")
On 17 Mar 2008, Jeff Dike verbalised:
> Below is the same patch with another kluge, which cuts down the
> requested sleep by 10% in hopes of getting the actual sleep closer to
> what's wanted.
Eeuuuuw. :)
> This is unusable in anything resembling mainline, but I'd like to see
> how your various systems react to it. I'm getting very close to the
> sleeps I asked for (with slight undersleeping, which is a bug).
OK.
Tests on host with clocksource pit:
bash-3.2# bin/select-sleep 5
Slept for 5 seconds.
bash-3.2# bin/select-sleep 10
Slept for 11 seconds.
bash-3.2# bin/select-sleep 30
Slept for 31 seconds.
bash-3.2# bin/select-sleep 60
Slept for 61 seconds.
... so much better than the 4x error without this patch.
Tests on host with clocksource tsc:
bash-3.2# bin/select-sleep 5
Slept for 5 seconds.
bash-3.2# bin/select-sleep 10
Slept for 10 seconds.
bash-3.2# bin/select-sleep 30
Slept for 30 seconds.
bash-3.2# bin/select-sleep 60
Slept for 61 seconds.
Distinctly better than without this patch.
(Am I the only person who finds it strange that (some) clocksource
hackers are arguing about accuracy problems in the ppm range while we're
glad to get an error of `only' single seconds per minute out of it?
Maybe next year we can invent the `pendulum' clocksource :) )
--
`The rest is a tale of post and counter-post.' --- Ian Rawlings
describes USENET
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2008-03-17 21:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 19:57 [uml-devel] g_timeout_add clowncoder
2008-02-14 0:38 ` Jeff Dike
2008-02-14 22:16 ` clowncoder
2008-02-15 16:02 ` Jeff Dike
2008-02-15 17:39 ` clowncoder
2008-02-15 18:46 ` Jeff Dike
2008-03-14 23:01 ` [uml-devel] [2.6.24.x] UML select()/poll() oversleeping reproducibly (was Re: g_timeout_add) Nix
2008-03-17 16:27 ` Jeff Dike
2008-03-17 17:03 ` Jeff Dike
2008-03-17 19:34 ` Jeff Dike
2008-03-17 21:08 ` Nix [this message]
2008-03-18 17:00 ` [uml-devel] [2.6.24.x] UML select()/poll() oversleeping reproducibly Jeff Dike
2008-03-18 19:39 ` Nix
2008-03-19 22:14 ` Nix
2008-02-21 22:02 ` [uml-devel] Timeout in the select clowncoder
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=87k5k112kf.fsf@hades.wkstn.nix \
--to=nix@esperi.org.uk \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@timesys.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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