fork/exec performance?
fork/exec performance?
- Subject: fork/exec performance?
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 23 Sep 2002 17:20:11 -0400 (EDT)
After writing a software installation script to install a large
software package using libtool, I noticed that the OSX fork/exec
performance seems to be pretty bad.
On the same hardware (dual 800MHz g4), using the same script, the
elapsted time is a hair over 10 seconds on linux (2.4.18-smp). On
OS-X, it is over 3 minutes!
% /usr/bin/time ./GM_INSTALL
<..>
181.25 real 5.58 user 293.31 sys
lmbench shows an order of magnitude difference in fork time,
and nearly as bad in exec:
g4.local. Darwin 6.0 powerpc-apple-darwin6.0 797
g4 Linux 2.4.18- powerpc-linux-gnu 799
Processor, Processes - times in microseconds - smaller is better
----------------------------------------------------------------
Host OS Mhz null null open selct sig sig fork exec sh
call I/O stat clos TCP inst hndl proc proc proc
--------- ------------- ---- ---- ---- ---- ---- ----- ---- ---- ---- ---- ----
g4.local. Darwin 6.0 797 1.47 2.73 17.2 20.7 27.2 3.00 10.5 7517 17.K 41.K
g4 Linux 2.4.18- 799 0.42 0.69 2.52 3.79 33.6 1.23 3.08 659. 2642 12.K
Are there any plans to do something about this?
Or do I just avoid shell scripts in general, and libtool in particular?
Thanks,
Drew
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.