From owner-freebsd-hackers Sat Nov 11 01:06:59 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA08272 for hackers-outgoing; Sat, 11 Nov 1995 01:06:59 -0800 Received: from cls.net (freeside.cls.de [192.129.50.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id BAA08266 for ; Sat, 11 Nov 1995 01:06:54 -0800 Received: by mail.cls.net (Smail3.1.29.1) from allegro.lemis.de (192.109.197.134) with smtp id ; Sat, 11 Nov 95 09:06 GMT From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Reply-To: grog@lemis.de (Greg Lehey) Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id KAA19222; Sat, 11 Nov 1995 10:02:44 +0100 Message-Id: <199511110902.KAA19222@allegro.lemis.de> Subject: Re: larry: you might want to add this to lmbench (but i'm not sure) To: rminnich@Sarnoff.COM (Ron G. Minnich) Date: Sat, 11 Nov 1995 10:02:43 +0100 (MET) Cc: hackers@freebsd.org (FreeBSD Hackers) In-Reply-To: from "Ron G. Minnich" at Nov 10, 95 11:15:34 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1220 Sender: owner-hackers@freebsd.org Precedence: bulk Ron G. Minnich writes: > > this program does a very simple thing: > 1) open a file > 2) call write with an invalid address, viz: > write(fd, x, 5); > where x is (void *) 0x40000000 > > it does this as many times as you ask. What it's measuring is correlated > to the raw performance of the system's ability to look up a vm region or > segment or object given a virtual address. It is not a pure measure, > since systems that do a lot of work before checking the arguments > (freebsd) will fare worse than systems that just check the arguments up > front for validity (linux). On the other hand, all the system calls that > happen a lot have to do this operation, so you probably want this type of > thing to be fast. Forgive me if I'm not critical :-) I just tried it out on two 486DX/2-66s, one running BSD/386 1.1 and the other running FreeBSD 951004 SNAP. I think the numbers (for 100000 iterations) speak for themselves. BSD/386: 10.19 real 0.33 user 9.61 sys FreeBSD: 54.25 real 0.82 user 52.67 sys People may argue that this is a silly benchmark, but I still think we should be interested to know why FreeBSD takes over 5 times as long to run this program. Greg