From: Tom Marshall <tmarshall@real.com>
To: George Anzinger <george@mvista.com>
Cc: Andrew Morton <akpm@osdl.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Fw: missed itimer signals in 2.6
Date: Tue, 14 Oct 2003 16:52:13 -0700 [thread overview]
Message-ID: <20031014235213.GC860@real.com> (raw)
In-Reply-To: <3F8C8692.5010108@mvista.com>
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]
> Since the actual interval used by the system is a bit larger than what
> was asked for, there will be fewer ticks.
I understand what happens and why. I admit that I'm not familiar with the
POSIX standard on this issue. Questions:
* I've heard that the kernel's timer resolution has increased from 10ms to
1ms in 2.6. Why does the itimer have such a large granularity? I
expected it to be highly accurate in this range.
* Is this how the timer is supposed to work? It seems to me that an
algorithm which kept running track of the difference in requested and
actual times (a la Bresenham) could make the itimer behave closer to what
the user requested.
> Maybe you could save this code if it is part of a test suite....
This code is part of a "timer calibration" routine used by the RealNetworks
Helix Server. I just noticed that the timer calibration failed on a machine
that had 2.6.0-test7 installed (we have not officially looked at supporting
2.6 yet). The test runs on many different flavors of *nix (probably a dozen
or so). I can check to see what the behavior is on the other platforms if
that would be useful. If this is the Right Way to do timers, we'll probably
end up changing our "calibration" routine to read back the actual timer
interval as you suggest.
--
One good reason why computers can do more work than people is that they
never have to stop and answer the phone.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-10-14 23:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20031013163411.37423e4e.akpm@osdl.org>
2003-10-14 23:28 ` Fw: missed itimer signals in 2.6 George Anzinger
2003-10-14 23:52 ` Tom Marshall [this message]
2003-10-15 15:11 ` George Anzinger
2003-10-15 16:50 ` Tom Marshall
2003-10-15 16:55 ` Tom Marshall
2003-10-15 22:51 ` George Anzinger
2003-10-15 23:25 ` Tom Marshall
2003-10-16 0:20 ` 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=20031014235213.GC860@real.com \
--to=tmarshall@real.com \
--cc=akpm@osdl.org \
--cc=george@mvista.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