Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Dec 2001 23:37:45 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        Anthony Atkielski <anthony@freebie.atkielski.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Diminishing free memory in top
Message-ID:  <3C143C19.30403@potentialtech.com>
References:  <00ac01c1811a$cb534790$0a00000a@atkielski.com> <3C1418D2.4010209@potentialtech.com> <00c001c18124$a1f77740$0a00000a@atkielski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Anthony Atkielski wrote:
> Bill writes:
> 
> 
>>If a process is restarted that exists in the
>>inactive memory pool, it can start very quickly
>>because most or all of its data is already
>>in memory, and the system just converts the
>>inactive pages to active pages.
>>
> 
> When you say "all of its data," do you mean executable code in memory, or
> buffered data from a disk file?  Does FreeBSD keep track of actual pages of
> executable code for a specific program even across executions of that
> program?  If program X runs and then terminates, how does FreeBSD know some
> or all of the pages it used can be reused for a subsequent invocation of
> program X?

Err ... frankly, you're asking questions that are over my head.  If you're
interested in the VM workings at that level of detail, you may have to
consult the source code, or possibly "The Design & Implementation of the
BSD Operating System".
I do believe that executable code is "cached" as inactive pages, while
buffered disk data is kept in the "buffered" category (as shown in top)
but ... this is really a little over my head as to how the system actually
does all this.  I've been studying it for a while, but haven't quite got
that level of understanding yet.

-- 
Bill Moran
Potential Technology
http://www.potentialtech.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C143C19.30403>