Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 2010 17:07:28 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: zfs very poor performance compared to ufs due to lack of cache?
Message-ID:  <i6qnff$ugn$1@dough.gmane.org>
In-Reply-To: <4C90D3A1.7030008@freebsd.org>
References:  <5DB6E7C798E44D33A05673F4B773405E@multiplay.co.uk><AANLkTikNhsj5myhQCoPaNytUbpHtox1vg9AZm1N-OcMO@mail.gmail.com><4C85E91E.1010602@icyb.net.ua><4C873914.40404@freebsd.org><20100908084855.GF2465@deviant.kiev.zoral.com.ua><4C874F00.3050605@freebsd.org><A6D7E134B24F42E395C30A375A6B50AF@multiplay.co.uk><4C8D087B.5040404@freebsd.org><03537796FAB54E02959E2D64FC83004F@multiplay.co.uk><4C8D280F.3040803@freebsd.org><3FBF66BF11AA4CBBA6124CA435A4A31B@multiplay.co.uk><4C8E4212.30000@freebsd.org>	<B98EBECBD399417CA5390C20627384B1@multiplay.co.uk>	<D79F15FEB5794315BD8668E40B414BF0@multiplay.co.uk>	<4C90B4C8.90203@freebsd.org>	<6DFACB27CA8A4A22898BC81E55C4FD36@multiplay.co.uk> <4C90D3A1.7030008@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09/15/10 16:09, Andriy Gapon wrote:
> on 15/09/2010 16:42 Steven Hartland said the following:

>>> General problem of double-caching with ZFS still remains and will remain and
>>> nobody promised to fix that.
>>> I.e. with sendfile (or mmap) you will end up with two copies of data, one in
>>> page cache and the other in ARC.  That happens on Solaris too, no magic.

>> Obviously this is quite an issue as a 1GB source file will require 2GB of memory
>> to stream hence totally outweighing any benefit of the zero copy sendfile offers?

>> Indeed. Where would this need to be addressed as ufs doesn't suffer from this?
>
> In ZFS.  But I don't think that this is going to happen any time soon if at all.
> Authors of ZFS specifically chose to use a dedicated cache, which is ARC.
> Talk to them, or don't use ZFS, or get used to it.
> ARC has a price, but it supposedly has benefits too.

(replying for the OPs benefit)

This has been a question since the beginnings of ZFS on Solaris - the 
authors wanted their own control over the cache and hence the ARC was 
implemented (modified from the IBM's original). This decision has been 
contested as possibly ineffective but at the end it stayed.

Here are some Googled references:

http://www.mail-archive.com/zfs-discuss@opensolaris.org/msg08692.html
http://mail.opensolaris.org/pipermail/zfs-discuss/2009-July/029370.html

There are also some problems which are curiously similar to ones people 
complain about in FreeBSD+ZFS:

http://mail.opensolaris.org/pipermail/zfs-discuss/2009-July/029654.html
http://mail.opensolaris.org/pipermail/zfs-discuss/2009-July/029362.html

Random other references:

http://www.almaden.ibm.com/cs/people/dmodha/arcfast.pdf
http://nilesh-joshi.blogspot.com/2010/07/zfs-revisited.html
http://www.mail-archive.com/zfs-discuss@opensolaris.org/msg38362.html
http://www.thezonemanager.com/2009/03/filesystem-cache-optimization.html





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?i6qnff$ugn$1>