Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jan 1998 13:32:32 -0500 (EST)
From:      "John S. Dyson" <dyson@FreeBSD.ORG>
To:        matrix@norilsk.ru (Artem Koutchine)
Cc:        questions@FreeBSD.ORG
Subject:   Re: Disk cache
Message-ID:  <199801111832.NAA01713@dyson.iquest.net>
In-Reply-To: <01bd1ea3$069e92c0$0d00a8c0@matrix.gerpa.ru> from Artem Koutchine at "Jan 11, 98 06:10:16 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Artem Koutchine said:
[Charset koi8-r unsupported, filtering to ASCII...]
> Hello!!!
> 
> Is there anyway to increase read/write disk cache?
> Even though the manual says, that cache is quite 
> optimal. I don't really believe it. I mean, optimal
> means different things for different tasks. 
> For example, if i have 128mb RAM and 70MB file and
> want to keep the whole file in the ram  for read only.
> Is it possible without using memory file system.
> 
Even the MFS won't guarantee the file being in memory.
You can try to tune the buffer cache size in -current
by the following:

sysctl -w vfs.maxbufspace=70000000
sysctl -w vfs.maxvmiobufspace=70000000

However, the above won't guarantee anything, but will
maximize the size of the wired buffer cache (which
is really relatively small.)

The system is pretty good at statistics, and if you
use the 70MB file much at all, it will likely be
in memory, unless other programs are competing
much by simply being big.

-- 
John                  | Never try to teach a pig to sing,
dyson@freebsd.org     | it just makes you look stupid,
jdyson@nc.com         | and it irritates the pig.



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