Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2008 10:42:03 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Len Gross <sandiegobiker@gmail.com>
Cc:        "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>
Subject:   Re: Polling and Sleep in a Driver
Message-ID:  <20081020174203.GN22503@elvis.mu.org>
In-Reply-To: <27cb3ada0810191228y2cf4ba5end071263f6d2f93df@mail.gmail.com>
References:  <27cb3ada0810191228y2cf4ba5end071263f6d2f93df@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Len Gross <sandiegobiker@gmail.com> [081019 12:28] wrote:
> Warner,
> 
> Thanks so much for your response.  This is really a case where I'm a
> bit over my head!
> 
> I thought on a a "busy" machine, there was a fundamental "no uppper
> bound" on the wait on a sleep; independent of the Hz?  Not real-time
> blah, blah, ......
> 
> I am trying to understand if a driver "sleep" gets special attention
> (i.e higher "priority") so that I see less slop in the timing.
> 
> Of course, I could hack up a driver and try some tests, but wanted
> some advice before diving into that pool.
> 
> Thanks again.

Yes, you should see less slop in a driver because the ithread
priority will be much higher than userland.  The reason your
userland is getting jitter is because other things may be
running before it is based on priority.

-Alfred



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081020174203.GN22503>