Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2000 11:48:14 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Peter Dufault <dufault@hda.com>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: current lockups
Message-ID:  <00Mar9.114816est.115256@border.alcanet.com.au>
In-Reply-To: <200003082308.SAA64038@hda.hda.com>; from dufault@hda.com on Thu, Mar 09, 2000 at 10:05:21AM %2B1100
References:  <00Mar8.103928est.115210@border.alcanet.com.au> <200003082308.SAA64038@hda.hda.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2000-Mar-09 10:05:21 +1100, Peter Dufault <dufault@hda.com> wrote:
>There's no difference between rtprio and P1003.1B scheduling other than
>the name.  rtprio is the same as P1003.1B "SCHED_RR".

I wasn't aware of that.

>I'd like to remove the rtprio call from ntpd.  I think we ought to do
>it now before 4.0 ships.

Given there is a known a priority inversion bug related to realtime
(or idle) scheduling, it would seem wise not to use it in any system
utilities.  The relevant patch would appear to be (untested):

--- /usr/src/usr.sbin/ntp/config.h	Tue Feb  1 13:56:05 2000
+++ /tmp/config.h	Thu Mar  9 11:46:11 2000
@@ -619,10 +619,10 @@
 #define HAVE_RANDOM 1
 
 /* Define if you have the rtprio function.  */
-#define HAVE_RTPRIO 1
+/* #undef HAVE_RTPRIO */
 
 /* Define if you have the sched_setscheduler function.  */
-#define HAVE_SCHED_SETSCHEDULER 1
+/* #undef HAVE_SCHED_SETSCHEDULER */
 
 /* Define if you have the setlinebuf function.  */
 #define HAVE_SETLINEBUF 1

Peter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00Mar9.114816est.115256>