Re: if a file is used a lot, does it stay in a RAM cache?

2004-01-13 Thread Kris Kennaway
On Mon, Jan 12, 2004 at 08:56:28PM -0800, BSD baby wrote:
> If a file is loaded off the hard drive a lot, does FreeBSD keep it in RAM?

Yes (assuming you have free RAM).

Kris


pgp0.pgp
Description: PGP signature


if a file is used a lot, does it stay in a RAM cache?

2004-01-12 Thread BSD baby
If a file is loaded off the hard drive a lot, does FreeBSD keep it in RAM?

For my high-traffic website, Apache+PHP, I have a PHP file that I'm going to be 
including a LOT.

The file is 3 megs, though.   Takes a few unfortunate seconds to load into memory off 
of disk the first time.

So - what would it take to keep it in RAM instead of being loaded off of hard drive 
every second of the day?

Does FreeBSD do that automatically or do I need some kind of accelerator app?

Thanks!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"