On Tue, 2009-02-24 at 10:54 -0500, erik quanstrom wrote:
> > about 5 years ago i took a class on performance tuning Solaris.
> > 
> > The instructor claimed that fork was expensive because accounting is never 
> > really turned off, just piped to /dev/null.  there is no accounting 
> > overhead for threads.
> > 
> > I never bothered to verify this, but now that this comes up, I'd tempted.
> 
> there's no need to guess.  here's the source code.
> 
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/os/fork.c
> 
> cfork is ~525 lines long and seems to take the curious tack of
> forking all the lwps associated with a process. 
that would be forkall(), not fork1()/fork()

Thanks,
Roman.


Reply via email to