Date: Fri, 4 May 2001 09:26:09 -0700 (PDT) From: Matt Dillon <dillon@earth.backplane.com> To: Rasputin <rara.rasputin@virgin.net> Cc: Gregory Bond <gnb@itga.com.au>, stable@FreeBSD.ORG Subject: Re: Mem Use Message-ID: <200105041626.f44GQ9Z25955@earth.backplane.com> References: <200105040254.MAA15355@lightning.itga.com.au> <20010504105130.A92704@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
:Don't think that's true for textfiles.
:
:I rmeember older *NIXes loaded processes off disk by causing
:a page fault to read in the binary. I imagine FreeBSD does soemthing similar,
:
:The pageins you'd see running cat or more are probably /bin/cat and
:/usr/bin/more being loaded.
FreeBSD does demand-page executables, but if the data is
already in the VM page cache then FreeBSD will pre-map some of the
pages when you exec the program as an optimization -- so no
(or fewer) faults will occur for those pages.
-Matt
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105041626.f44GQ9Z25955>
