*BSD News Article 36951


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!ihnp4.ucsd.edu!ames!newsfeed.gsfc.nasa.gov!news!kstailey
From: kstailey@leidecker.std.com (Kenneth Stailey)
Newsgroups: comp.unix.bsd
Subject: Re: fork/vfork accounting in the kernel
Date: 14 Oct 94 13:28:33
Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
Lines: 15
Message-ID: <KSTAILEY.94Oct14132833@leidecker.std.com>
References: <374j2h$gev@Mercury.mcs.com>
NNTP-Posting-Host: leidecker.gsfc.nasa.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
In-reply-to: mikebo@MCS.COM's message of 7 Oct 1994 17:45:37 -0500

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