From owner-freebsd-java Mon Jan 25 08:43:48 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA08268 for freebsd-java-outgoing; Mon, 25 Jan 1999 08:43:48 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA08260 for ; Mon, 25 Jan 1999 08:43:46 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id JAA12583; Mon, 25 Jan 1999 09:43:40 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA06472; Mon, 25 Jan 1999 09:43:39 -0700 Date: Mon, 25 Jan 1999 09:43:39 -0700 Message-Id: <199901251643.JAA06472@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: SHUDO Kazuyuki Cc: java@FreeBSD.ORG Subject: Re: TowerJ for FreeBSD In-Reply-To: <199901250724.QAA10785@cafe.muraoka.info.waseda.ac.jp> References: <199901242045.NAA01913@mt.sri.com> <199901250724.QAA10785@cafe.muraoka.info.waseda.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Yep, this is where FreeBSD (and less so Linux) got the crap kicked out > > of it. Linux is a bit better than ours for a couple of reaasons. > > > 2) Our 'Green Threads' implementation uses locking that is not as > > effecient as the Linux version. In particular, Linux kernel's have > > poll built in, and we emulate it (badly, but effectively) with some > > hacks to use select. > > JDK 1.1.7 for Linux/glibc use poll() and not > select(). > But glibc 2.0.7 which is used on most linux > box replaces calls to poll with calls to select since > Linux kernel prior to 2.1.23 doesn't have poll(). > > If we'd like to use poll() of Linux kernel, we have to > use glibc 2.1 version is currently developed. We don't want to use the poll() version of Linux, we want to use poll() in FreeBSD. Because the JDK assumes that poll exists, it should make things easier since we don't have to write an ugly wrapper around select to emulate poll (which should also allow us to unlimit the number of file descriptors as well....) And, according to Steve Byrne, using poll sped up their code quite a bit, so much so that they didn't fare quite so badly in the servlet benchmark like they had in the past. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message