From owner-freebsd-hackers Mon Nov 3 19:43:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA03704 for hackers-outgoing; Mon, 3 Nov 1997 19:43:10 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA03697 for ; Mon, 3 Nov 1997 19:43:08 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id TAA13782 for ; Mon, 3 Nov 1997 19:35:26 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd013779; Tue Nov 4 03:35:24 1997 Message-ID: <345E978D.167EB0E7@whistle.com> Date: Mon, 03 Nov 1997 19:33:33 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: hackers@freebsd.org Subject: FreeBSD shines..[Fwd: Re: semaphore speed] Content-Type: multipart/mixed; boundary="------------794BDF32446B9B3D2781E494" Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is a multi-part message in MIME format. --------------794BDF32446B9B3D2781E494 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit oops I sent this to the wrong address before.. participants: jallison: Samba guru: Andrew Tridgell: wrote Sambe.. Linux hacker Julian: yours truely: ----------------results of benchmark-------------- /* Results with the following defines: #define NSEMS 20 #define NPROCS 60 #define NUMOPS 10000 OSF1 dominion.aquasoft.com.au V4.0 564 alpha (233 MHz) fcntl: 132.814 secs ipc: 13.5186 secs Linux 2.1.57 on a P120 fcntl: 21.3006 secs ipc: 93.9982 secs Solaris 2.5 on a Ultra170 fcntl: 192.805 secs ipc: 18.6859 secs IRIX 6.4 on a Origin200 fcntl: 183.488 secs ipc: 10.4431 secs SunOS 4.1.3 on a 2 CPU sparc 10 fcntl: 198.239 secs ipc: 150.026 secs Solaris 2.5.1 on a 4 CPU SPARCsystem-600 fcntl: 312.025 secs ipc: 24.5416 secs FreeBSD 2.2.2 on a 200MHz pentium fcntl: 3.16579 secs ipc: 2.63504 secs Linux 2.0.30 on a PPro200 fcntl: 12.2177 secs ipc: 50.4559 secs */ -------- andrew's resonse to included mail (see at end)------- (gee I hate how mime is handled in my mailer) > so I 'spose now you'll have to go fix it so that we can't bask in > our little glorie ;-) Well, only if I have a spare afternoon, which isn't likely anytime soon. The IPC code in Linux is really ugly. I had to hack it a bit to get Oracle working under SparcLinux. I won't look at it again unless I have to. The real surprise is the fcntl locking speed. You either have some really neat data structures or you don't do all the deadlock checking linux does. > of course I've never used them so I can't Guarantee that they are > actually FUNCTIONNING correctly under FreeBSD :) yeah, it's always easy to be fast when it doesn't have to be correct :-) If anyone wants the code (and results for other OSes) see ftp://samba.anu.edu.au/pub/tridge/semspeed.c Cheers, Andrew ------------------ earlier mail------------------ --------------794BDF32446B9B3D2781E494 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <345E81D2.62319AC4@whistle.com> Date: Mon, 03 Nov 1997 18:00:50 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Andrew.Tridgell@anu.edu.au CC: hackers@freebsd Subject: Re: semaphore speed References: <19971104013033Z12583198-398+5862@samba.anu.edu.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit re: SYSV semephore benchmark.. Andrew Tridgell wrote: > > > semspeed output for freebsd on a 200MHz pentium. (FreeBSD 2.2.2) > > > > NPROCS=60 NSEMS=20 NUMOPS=10000 > > fcntl: 3.16579 secs > > ipc: 2.63504 secs > > I'm sure Julian will want to see this: > > NPROCS=60 NSEMS=20 NUMOPS=10000 > fcntl: 12.2177 secs > ipc: 50.4559 secs > > that was a PPro200 running Linux 2.0.30. > > It's rare that Linux gets beaten so badly at any benchmark :-) > > Andrew so I 'spose now you'll have to go fix it so that we can't bask in our little glorie ;-) of course I've never used them so I can't Guarantee that they are actually FUNCTIONNING correctly under FreeBSD :) --------------794BDF32446B9B3D2781E494--