From owner-freebsd-net@FreeBSD.ORG Mon Oct 20 17:39:38 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D153A106567E for ; Mon, 20 Oct 2008 17:39:38 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id BFB088FC16 for ; Mon, 20 Oct 2008 17:39:38 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id A46A71A3C38; Mon, 20 Oct 2008 10:39:38 -0700 (PDT) Date: Mon, 20 Oct 2008 10:39:38 -0700 From: Alfred Perlstein To: Len Gross Message-ID: <20081020173938.GL22503@elvis.mu.org> References: <27cb3ada0810181512qeab4020g912096848212ad86@mail.gmail.com> <27cb3ada0810181728w3f41e3d0pe2fca8102b0c7206@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27cb3ada0810181728w3f41e3d0pe2fca8102b0c7206@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: "freebsd-net@freebsd.org" Subject: Re: Timers in drivers vs userland X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2008 17:39:38 -0000 Have you tried using rtprio? You'll have to be really careful though so as not to jam up the system using it. -Alfred * Len Gross [081018 17:28] wrote: > Slight correction; I should have said more accurate usleep, not "timer." > > -- Len > > On Sat, Oct 18, 2008 at 3:12 PM, Len Gross wrote: > > If I place a timer directly in a driver (like Ethernet) will it be > > subject to less jitter and more consistency than if it were in > > Userland? > > > > I know FreeBSD is not "real time," but I need to be able to run a > > polling algorithm with about 1 ms accuracy. > > > > Thanks in advance. > > > > (Please tell me if there is a better list for this question.) > > > > -- Len > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- - Alfred Perlstein