Date: Fri, 16 Nov 2001 15:21:30 -0500 From: "Dennis Mathiasen" <dennislm@dreamscape.com> To: <freebsd-stable@freebsd.org> Subject: RE: compiling /bin/sh with builtin 'test' Message-ID: <NFBBLPGAMKGJPAINGIJKEEJMCIAA.dennislm@dreamscape.com> In-Reply-To: <20011117012056.A320@grosbein.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Friday, November 16, 2001 1:21 PM, Eugene Grosbein Wrote: > I have a production router that is 4.0-SNAP-somedate installed on old > 486SX-25/8M RAM/200M HDD machine. This snapshot is stable for the task > of routing/shaping and my router works about a year. [ snip ] > Now I need to implement some extra tasks using this machine and write > some shell scripts using /bin/sh. There are loops in these scripts > and these loops run too slow becouse it is slow to fork+exec to > execute 'test' (it needs to swap) on this hardware. Why not just write it in C instead? I have a 386 DX with an 8087 at 20 MHz 8M Ram 600M HD running 2.2.8 with a stripped down kernel in service for two years as a router. When I tried to run a couple of complex shell scripts on it to gather some usage statistics, it seemed to bog down too much, but I didn't give it much of a test. I re-wrote it in C. Shared memory and signals with some always active processes solved the problem nicely. I can't detect any performance difference at all. Dennis Mathiasen dennislm@dreamscape.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBLPGAMKGJPAINGIJKEEJMCIAA.dennislm>