From owner-freebsd-fs Fri Apr 25 01:35:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA02318 for fs-outgoing; Fri, 25 Apr 1997 01:35:33 -0700 (PDT) Received: from root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA02311 for ; Fri, 25 Apr 1997 01:35:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id BAA13794; Fri, 25 Apr 1997 01:35:51 -0700 (PDT) Message-Id: <199704250835.BAA13794@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Narvi cc: fs@freebsd.org Subject: Re: the namei cache... In-reply-to: Your message of "Fri, 25 Apr 1997 11:08:55 +0300." From: David Greenman Reply-To: dg@root.com Date: Fri, 25 Apr 1997 01:35:51 -0700 Sender: owner-fs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >On Thu, 24 Apr 1997, David Greenman wrote: > >> >about 1/4th of the additions. Getting reed of the div wouldn't also be bad >> >but might not be worth it. >> >> Not worth it? At greater than 50 cycles, the divide is more expensive >> than the entire add loop. > >Well, it seems that division has become more expensive over time. :-( >The only processor related book I had around was about the 286 and there >it cost only 28 so I figured we might be hard pressed coming up something Occording to my Intel Pentium databook, a 32bit divide takes 41 cycles on a Pentium; the 386 databook says 41 cycles for a 386. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project