From owner-freebsd-hackers Wed Apr 5 0:12:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from linux.ssc.nsu.ru (linux.ssc.nsu.ru [193.124.219.91]) by hub.freebsd.org (Postfix) with SMTP id 9235A37B7AB for ; Wed, 5 Apr 2000 00:08:29 -0700 (PDT) (envelope-from danfe@inet.ssc.nsu.ru) Received: (qmail 6515 invoked from network); 5 Apr 2000 07:08:08 -0000 Received: from inet.ssc.nsu.ru (62.76.110.12) by hub.freebsd.org with SMTP; 5 Apr 2000 07:08:08 -0000 Received: from localhost (danfe@localhost) by inet.ssc.nsu.ru (8.9.3/8.9.3) with ESMTP id OAA28500 for ; Wed, 5 Apr 2000 14:06:42 +0700 Date: Wed, 5 Apr 2000 14:06:42 +0700 (NOVST) From: "Alexey N. Dokuchaev" To: freebsd-hackers@freebsd.org Subject: fork test Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! Me and a friend of mine decided to compare FreeBSD and Linux using this little program (compiled with "gcc -lm") Two identical machines run FreeBSD 4.0-SNAP 20000214 and Linux Mandrake 7.0 kernel 2.2.13 ---------------------------------- #include double counter=0,counter2=32; double test() { return atan2(counter++,counter2+=counter*50); } int main() { int t; while((t=fork())>0); if(!t) while(1) test(); else perror("fork"); } ---------------------------------- Well, after very short time, both boxes responded to console switchings and things like that, but trying to run something like "ps", "w", "uptime" put machine quite on hold (about 2 minutes). The thing is that Linux finished runnig commands about 3 times faster than FreeBSD. What the heck does that suppose to mean?! I thought FreeBSD whould kick linux butt? Please respond directly to me since I am not the member of this list. Thanks. Cheers, /* Alexey N. Dokuchaev, more commonly | */ /* known as DAN Fe | mailto:danfe@inet.ssc.nsu.ru */ /* | ICQ UIN: 38934845 */ /* Novosibirsk State University | http://inet.ssc.nsu.ru/~danfe/ */ /* Scientific Study Center Computer Lab | */ [Team Assembler] [Team BSD] [Team DooM] [Team Quake] -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d-@ s+: a--- C++(+++) UBL++++$ P++>$ L+ E-- W++ N++ o? K? w-- O- M V- PS PE Y+ PGP+ t+ 5+ X+ R- !tv b++ DI+ D+++ G++ e h !r !y+ ------END GEEK CODE BLOCK------ Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? A good conspiracy is unprovable. I mean, if you can prove it, it means they screwed up somewhere along the line. Jerry Fletcher from Conspiracy Theory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message