Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.os.linux.networking,comp.unix.bsd.netbsd.misc,comp.unix.bsd.freebsd.misc Subject: Re: TCP latency Date: 19 Jul 1996 23:19:30 GMT Organization: Private BSD site, Dresden Lines: 21 Message-ID: <4sp562$1ft@uriah.heep.sax.de> References: <4paedl$4bm@engnews2.eng.sun.com> <31E6FD92.41C67EA6@dyson.iquest.net> <4s8cuq$ljd@bertrand.ccs.carleton.ca> <31E7C0DD.41C67EA6@dyson.iquest.net> <4s8tcn$jsh@fido.asd.sgi.com> <31E80ACA.167EB0E7@dyson.iquest.net> <4sadde$qsv@linux.cs.helsinki.fi> <31E9E3A7.41C67EA6@dyson.iquest.net> <4sefde$f0l@fido.asd.sgi.com> <4socfr$3ot@dworkin.wustl.edu> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:45853 comp.unix.bsd.netbsd.misc:4121 comp.unix.bsd.freebsd.misc:24012 chuck@ccrc.wustl.edu (Chuck Cranor) wrote: > program description Sparc2 P5-133MHz > lat_syscall write 1 to /dev/null 61 6 > lat_gettime gettimeofday(&tv,0) 27 5 > lat_kill kill(1,0) 23 2 > lat_umask umask(0) 19 2 > lat_getppid getppid() 17 1 So i think getppid() (not only suggested by me, also by Alan Cox, IIRC) is the clear winner. However, i hope you didn't forget to scale the umask() test in case you've been using my suggested umask(umask(0)); -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)