the evil interrupt stats monster is still around!

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sat Jul 28 05:01:17 PDT 2007


Simon 'corecode' Schubert wrote:
However, look at this:

avg fork parent: 0.000148
avg fork child: 0.004091
(rough rough numbers, will be off if there are multiple processes 
running concurrently)
Okay, less rough numbers:

122991  104/s   fork

avg fork parent: 0.000157
avg fork child: 0.002563
so if we assume that the parent always waits for the child, it'll take 0.267 seconds per second (in average) to fork?  That means 1/4 of the time is just spent until the child start running.

the above numbers include vfork, these are without:

avg fork parent: 0.000144
avg fork child: 0.002556
same, basically.  Maybe teaching sh(1) to use vfork could give some performance improvement?

cheers
 simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




More information about the Bugs mailing list