From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23648 invoked from network); 27 Apr 1998 18:06:14 -0000 Received: from mail1.eni.net (205.214.51.15) by mail2.redhat.com with SMTP; 27 Apr 1998 18:06:14 -0000 Received: from sheerx.eni.net (firewall-user@chastity.eni.net [206.135.49.2]) by mail1.eni.net (8.8.5/8.8.5) with SMTP id LAA10627 for ; Mon, 27 Apr 1998 11:05:35 -0700 (PDT) Date: Mon, 27 Apr 1998 10:21:37 -0700 (PDT) From: Sheer Panic To: axp-list@redhat.com Subject: Re: Real Bourne Shell for Linux? In-Reply-To: <199804271558.LAA11438@adder.cs.Virginia.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII this does bring to mind the question of "why is linux so slow to fork?". My linux news server is _faster_ than my OSF/1 news server was. But my mail server will always run OSF.. because I can't afford the "hit" that forking under linux causes. Anyone have any guesses why it "costs" so much to fork under linux? On Mon, 27 Apr 1998, Greg Lindahl wrote: > > For example, the "shell benchmark", "while date; do date; done | uniq > > -c", run on my Alpha EB164 (300 MHz) gives 317 per second using DU 3.2C > > (real Bourne shell), 88 per second using Redhat Linux 5.0 with Bash and > > 91 with Ash. This isn't a problem for those of us who can only type 40 > > WPM, but it is a problem when executing a shell script. > > This isn't a shell benchmark. This is a process creation benchmark. > > Real shell scripts may or may not have a process creation bottleneck. > They often spend much of their time passing data down pipes and using > utilities. > > The best way to make a shell script fast is often to rewrite it in > Perl. > > -- g > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > >