From owner-freebsd-current@FreeBSD.ORG Thu Mar 11 16:43:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8686416A4CE for ; Thu, 11 Mar 2004 16:43:53 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A7F443D3F for ; Thu, 11 Mar 2004 16:43:53 -0800 (PST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197]) by comcast.net (rwcrmhc13) with ESMTP id <2004031200435201500p6giue>; Fri, 12 Mar 2004 00:43:52 +0000 Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) i2C0hr3T017519; Thu, 11 Mar 2004 19:43:54 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.crodrigues.org (8.12.11/8.12.10/Submit) id i2C0hrpI017518; Thu, 11 Mar 2004 19:43:53 -0500 (EST) (envelope-from rodrigc) Date: Thu, 11 Mar 2004 19:43:53 -0500 From: Craig Rodrigues To: Steve Kargl Message-ID: <20040312004353.GA17510@crodrigues.org> References: <4050BBCB.50302@cinci.rr.com> <20040312001110.GA17148@crodrigues.org> <20040312001815.GA77080@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040312001815.GA77080@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: I like SCHED_4BSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 00:43:53 -0000 On Thu, Mar 11, 2004 at 04:18:15PM -0800, Steve Kargl wrote: > > http://www.cs.utah.edu/~regehr/hourglass/ > > I looked at the site. The web page states that hourglass required > linuxthreads on FreeBSD. You'll probably need to ask Daniel, David, > or Julian (the KSE gang) how difficult it may be to port hourglass > to use KSE and lpthread. It's very easy actually. I submitted a patch to John Regehr at Utah, but he is a bit busy these days. It compiled and ran quite nicely, but I am not a scheduling guru, so don't know how to analyze the results. --- aclocal.m4.orig Fri Mar 5 17:42:03 2004 +++ aclocal.m4 Fri Mar 5 17:42:13 2004 @@ -36,7 +36,7 @@ # serial 10 -AC_PREREQ([2.54]) +AC_PREREQ([2.53]) # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow # the ones we care about. --- configure.ac.orig Fri Mar 5 17:41:40 2004 +++ configure.ac Fri Mar 5 14:10:33 2004 @@ -95,8 +95,11 @@ on_unix='yes' ; on_windows='no' ;; *freebsd*) - LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ; - CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ; + os_version=`sysctl -n kern.osreldate` + if test $os_version -lt "502102"; then + LDFLAGS='-llthread -llgcc_r -L/usr/local/lib' ; + CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ; + fi on_unix='yes' ; on_windows='no' ;; *cygwin*) -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org