*BSD News Article 37010


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!EU.net!uunet!demos1!glas!demos1!leidecker.std.com!kstailey
From: kstailey@leidecker.std.com
Newsgroups: comp.unix.bsd
Date: 14 Oct 94 13:28 GMT+0300
Subject: Re: fork/vfork accounting in the kernel
Message-ID: <KSTAILEY.94Oct14132833@leidecker>
References: <374j2h$gev@mercury.mcs.com>
Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
Lines: 17

Subject: Re: fork/vfork accounting in the kernel

In article <374j2h$gev@Mercury.mcs.com> mikebo@MCS.COM (Michael Borowiec) writes:

   SunOS does fork/vfork accounting using a structure called "forkstat",
   containing ints cntfork, cntvfork, sizfork, sizvfork. I don't find
   any mechanism like this in FreeBSD. It's like six lines and could have 
   been put just about anywhere in fork1() or vm_fork() where isvfork is
   tested. Do other BSDs have this structure? Am I missing something, or
   doesn't anyone (but me) care about this information? 8v)
   - Mike

4.3BSD has this, but later versions use Mach virtual memory.  It's
probably not trivial to get forkstat to work, and it's less important
because of the introduction of copy on write paging.

Ken