From owner-freebsd-hackers Fri Nov 10 12:44:49 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA09802 for hackers-outgoing; Fri, 10 Nov 1995 12:44:49 -0800 Received: from netcom22.netcom.com (root@netcom22.netcom.com [192.100.81.136]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA09797 for ; Fri, 10 Nov 1995 12:44:46 -0800 Received: from localhost by netcom22.netcom.com (8.6.12/Netcom) id JAA10892; Fri, 10 Nov 1995 09:53:35 -0800 Message-Id: <199511101753.JAA10892@netcom22.netcom.com> To: "Ron G. Minnich" cc: Larry McVoy , hackers@freebsd.org, "William A. Arbaugh" , Theo de Raadt , Chuck Cranor Subject: Re: larry: you might want to add this to lmbench (but i'm not sure) In-reply-to: Your message of "Fri, 10 Nov 95 11:15:34 EST." Date: Fri, 10 Nov 95 09:53:31 -0800 From: Bakul Shah Sender: owner-hackers@freebsd.org Precedence: bulk What count did you use to get these numbers? Running it on a SUN 3/50 with SunOS3.5 yields about 1 ms/write(); not bad considering the syscall overhead! On a 25Mhz 486 running NetBSD-1.1A I get about 17ms/call (wall clock). But system time is only about 1.3ms/call. Also, there was a lot of disk activity. On a 100MHZ P5 running FreeBSD-2.1 I get 0.287ms/call and system time was also about the same. > but i'm not sure why freebsd has to be so slow. I'm willing to blame it > on the mach vm, since it has been such a problem in so many other ways. For the {Free,Net}BSD case you seem to be measuring something totally different from the rest that do arg checking upfront. In the latter case you are measuring time to reject an invalid write() syscall. I don't see what system parameter your benchmark measures (other than pointing out if arg checking is done early or late). Since all syscall args need to be checked sooner or later, they may as well get checked upfront. > For some work i'm doing it is measuring an important value however. What parameter are you trying to measure? Hmm... perhaps you are mapping in pages when you discover an invalid address? --bakul