Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 09:43:39 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        SHUDO Kazuyuki <shudoh@muraoka.info.waseda.ac.jp>
Cc:        java@FreeBSD.ORG
Subject:   Re: TowerJ for FreeBSD
Message-ID:  <199901251643.JAA06472@mt.sri.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901251643.JAA06472>