Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!cs.utexas.edu!natinst!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.unix.aix Subject: Re: vfork() (was Re: RS6000 questions/comments) Message-ID: <19439@rpp386.cactus.org> Date: 30 Jun 91 01:45:51 GMT References: <1991Jun27.221208.14845@kithrup.COM> <8903@awdprime.UUCP> <351@devnull.mpd.tandem.com> <889@rufus.UUCP> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Distribution: usa Organization: Cheeseburger in Paradise, Le Select, St Barts., FWI Lines: 34 In article <889@rufus.UUCP> drake@drake.almaden.ibm.com writes: >The RISC System/6000's fork() implementation is quite efficient, making >"vfork" unnecessary for performance reasons. Nonetheless, vfork() *is* >provided on the RISC System/6000, in the BSD compatibility library, >for the convenience of those porting BSD sources. I don't know what you call "particularly efficient", but I have measured fork/exit performance and AIX v3 is worse than SVR1 on a 12MHz 68000 that I tested in 1986. As I recall a S/6000 Model 530 produced about 8 or 10 fork/exits per second, compared to about 45 per second on an Mpulse/XL that I was testing for my employer in 1986 (Pinnacle Systems, Inc., Garland TX) The test is real simple - main () { int i; for (i = 0;i < 10000;i++) if (fork () == 0) exit (); else while (wait (0) != -1) ; } I tried it on the 386 here and got 68 per second. What does your S/6000 give you? -- John F. Haugh II | Distribution to | UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 255-8251 | GEnie PROHIBITED :-) | Domain: jfh@rpp386.cactus.org "UNIX signals are not interrupts. Worse, SIGCHLD/SIGCLD is not even a UNIX signal, it's an abomination." -- Doug Gwyn