ZFS: Disabling ARC?
Bob Friesenhahn
bfriesen at simple.dallas.tx.us
Mon Aug 3 16:36:19 UTC 2015
On Mon, 3 Aug 2015, Matt Churchyard wrote:
>
> I don't know if it's changed, but even changing ARC to metadata only used to cause massive performance issues when reading large files in small chunks. Reading a 128k ZFS record in 4k chunks would cause ZFS to read the same 128k record from disk 32 times.
> There's a forum thread about it here - https://forums.freebsd.org/threads/zfs-primarycache-all-versus-metadata.45555/
>
> Generally I've found ARC to be one of the most important parts of
> ZFS. There's no case I know of where it will actually adversely
> affect performance (not that I've really looked). Its only downside
> is that it doesn't seem to manage memory as well as it should, and
> so a lot of people (including me) have resorted to limiting it.
The main reason to disable caching is if it is known in advance that
the data will only be read once, and that the block will be read in a
single operation. This may be useful for block-oriented databases
which do their own caching, and video servers which carefully read
full blocks. The reason to disable the caching is to avoid wasting
memory.
Bob
--
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
More information about the freebsd-fs
mailing list