mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nix <nix@esperi.org.uk>
To: Jeff Dike <jdike@addtoit.com>
Cc: clowncoder <vincent-perrier@club-internet.fr>,
	user-mode-linux-devel@lists.sourceforge.net,
	linux-kernel Mailing List <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@timesys.com>
Subject: Re: [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

  reply	other threads:[~2008-03-17 21:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <47B34BA0.30006@club-internet.fr>
     [not found] ` <20080214003853.GA15952@c2.user-mode-linux.org>
     [not found]   ` <47B4BDCD.4080605@club-internet.fr>
     [not found]     ` <20080215160205.GA6082@c2.user-mode-linux.org>
     [not found]       ` <47B5CE40.9000005@club-internet.fr>
     [not found]         ` <20080215184650.GA8810@c2.user-mode-linux.org>
2008-03-14 23:01           ` [2.6.24.x] UML select()/poll() oversleeping reproducibly (was Re: [uml-devel] 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                 ` [2.6.24.x] UML select()/poll() oversleeping reproducibly Jeff Dike
2008-03-18 19:39                   ` Nix
2008-03-19 22:14                   ` Nix

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 \
    --cc=vincent-perrier@club-internet.fr \
    /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®