Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2001 15:24:06 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        Luigi Rizzo <rizzo@aciri.org>, John Baldwin <jhb@FreeBSD.org>, Jonathan Lemon <jlemon@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/fxp if_fx
Message-ID:  <Pine.BSF.4.21.0110251520431.99888-100000@beppo>
In-Reply-To: <20011025231245.K549-100000@salmon.nlsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Historically spekaing, the reason to not have floating point in the kernel has
mostly to do with the complications of saving pipelined user fpu context and
state.

That said, the pdp-11 kernels often used the floating point to get some 32 bit
'long int' things done.

And the fastest software RAID-V I've known was at NASA/Ames on the Convex
3280s- they used the otherwise unused vector units for parity calculations-
this gave write performance for a 22 wide stripe on a terabyte fileystem to be
at about 88% of theoretical maximum, which sure aint' bad.

On Thu, 25 Oct 2001, Doug Rabson wrote:

> On Thu, 25 Oct 2001, Luigi Rizzo wrote:
> 
> > On Thu, Oct 25, 2001 at 10:33:58PM +0100, Doug Rabson wrote:
> > >>>   Aargh. I really shouldn't do late night commits.  Remove a floating point
> > >>>   multiply, and replace it with a close equivalent.  1.488 =~ 1.5
> > >>
> > >> Heh.  Floating point in the kernel is bad.. mmmkay?
> > >
> > > Its perfectly fine on ia64 though - integer multiplies are done with float
> > > registers...
> >
> > does it mean that integer multiply in the kernel is bad on the ia64 :)
> 
> Not really - its reasonably quick. They just didn't bother to add any
> integer multipliers when there were two perfectly good floating point
> units going idle. Moving integers in and out of float registers is quick
> and easy so it actually makes sense. Divides are done with floating point
> too.
> 
> -- 
> Doug Rabson				Mail:  dfr@nlsystems.com
> 					Phone: +44 20 8348 6160
> 
> 
> 


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0110251520431.99888-100000>