Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964774AbVKQTPc (ORCPT ); Thu, 17 Nov 2005 14:15:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964776AbVKQTPc (ORCPT ); Thu, 17 Nov 2005 14:15:32 -0500 Received: from xenotime.net ([66.160.160.81]:161 "HELO xenotime.net") by vger.kernel.org with SMTP id S964774AbVKQTPb (ORCPT ); Thu, 17 Nov 2005 14:15:31 -0500 Date: Thu, 17 Nov 2005 11:15:30 -0800 (PST) From: "Randy.Dunlap" X-X-Sender: rddunlap@shark.he.net To: Dag Nygren cc: Nish Aravamudan , linux-kernel@vger.kernel.org Subject: Re: nanosleep with small value In-Reply-To: <20051117191119.15126.qmail@dag.newtech.fi> Message-ID: References: <20051117191119.15126.qmail@dag.newtech.fi> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1524 Lines: 44 On Thu, 17 Nov 2005, Dag Nygren wrote: > > On 11/17/05, Dag Nygren wrote: > > > > The man page for nanosleep saya that times under 2 us are implemented > > > by a busywait and this is why I expected it to work. > > > > Update your manpages. You're depending on 2.4 behavior in a 2.6 kernel. > > You are right. The system is one I have upgraded piece by piece and the > manpages > weren't upgraded. > > But what is the point of having a nanosleep() in that case when you could do > just fine with usleep() ? > > > > OK, in that case the manpage should be changed. And an alternative > > > has to be worked out by me ;-). > > > > My man-pages are quite clear on what nanosleep() does. Nothing needs > > to be changed there. > > > > Alternative wise, I'm not sure, but you might want to look into the > > HRT stuff that's going on in Ingo's -RT tree. I don't know if / what > > changes have been made to sys_nanosleep(), but low-latency is most > > likely to occur there. > > I will look into that. > Quite annoying that software that worked just fine in 2.4 doesn't > work in 2.6. > > What does POSIX say about nanosleep()? Maybe you want to add/patch your kernel with the high-res-timer patch from http://sourceforge.net/projects/high-res-timers/ -- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/