Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2013 18:50:52 -0500
From:      Kevin Day <toasty@dragondata.com>
To:        Karl Denninger <karl@denninger.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS option vfs.zfs.cache_flush_disable=1
Message-ID:  <9F85D42E-D431-455E-8DFC-CEA7AC53F4BE@dragondata.com>
In-Reply-To: <51FD867B.8070803@denninger.net>
References:  <51FD867B.8070803@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_D25F7325-C1EB-4946-B43E-0C1087E85020
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Aug 3, 2013, at 5:38 PM, Karl Denninger <karl@denninger.net> wrote:

> Hi folks;
>=20
> I'm trying to run down a rather odd bit of ugly interaction between an
> ARECA 1680-IX adapter (in JBOD mode) and ZFS.
>=20
> The adapter has both a fair bit of cache memory on it and a BBU unit.=20=

> If I turn off write-back caching ZFS performance goes straight into =
the
> toilet.  With it on, however, it appears that cache flushes are being
> honored and, what's worse, when they come down the pipe they force all
> further I/O to the adapter to cease until the ENTIRE cache is flushed.
>=20
> This can and occasionally does lead to degenerate cases where very
> severe performance problems ensue.


Hey, Karl!

We had similar problems with the 3ware 9650SE cards. Cache flush =
operations would just kill performance to the entire array, even if ZFS =
was only being used on one volume on that card.

We've got vfs.zfs.cache_flush_disable=3D1 set on piles of servers, and =
so far we've only had one bit of weird ZFS corruption that I'm not even =
sure was related to that setting. While this isn't answering your =
question, I can say that having that flag enabled isn't causing a ton of =
corruption for us even with random hard reboots happening sometimes.

I will say though that the LSI 2008 based cards are substantially faster =
and less problematic for ZFS than anything else we've used. The "drives =
getting reordered" thing seems to only be happening on a few systems =
with a specific SATA/SAS backplane that doesn't appear to =
deterministically initialize things. gpart labels make that far less of =
a problem though, if you can use them. Failing that, it is possible to =
use "camcontrol inquiry daXX" to see the serial number of the drives, =
which you can then label the fronts of the drives with. Not as pretty, =
but being able to have a naked JBOD interface without controllers =
treating every drive as it's own 1-drive RAID0 volume is so much easier =
that I'll put up with a lot to have it.

-- Kevin


--Apple-Mail=_D25F7325-C1EB-4946-B43E-0C1087E85020
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPLzCCBN0w
ggPFoAMCAQICEHGS++YZX6xNEoV0cTSiGKcwDQYJKoZIhvcNAQEFBQAwezELMAkGA1UEBhMCR0Ix
GzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwR
Q29tb2RvIENBIExpbWl0ZWQxITAfBgNVBAMMGEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczAeFw0w
NDAxMDEwMDAwMDBaFw0yODEyMzEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzELMAkGA1UECBMCVVQx
FzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsx
ITAfBgNVBAsTGGh0dHA6Ly93d3cudXNlcnRydXN0LmNvbTE2MDQGA1UEAxMtVVROLVVTRVJGaXJz
dC1DbGllbnQgQXV0aGVudGljYXRpb24gYW5kIEVtYWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAsjmFpPJ9q0E7YkY3rs3BYHW8OWX5ShpHornMSMxqmNVNNRm5pELlzkniii8efNIx
B8dOtINknS4p1aJkxIW9hVE1eaROaJB7HHqkkqgX8pgV8pPMyaQylbsMTzC9mKALi+VuG6JG+ni8
om+rWV6lL8/K2m2qL+usobNqqrcuZzWLeeEeaYji5kbNoKXqvgvOdjp6Dpvq/NonWz1zHyLmSGHG
TPNpsaguG7bUMSAsvIKKjqQOpdeJQ/wWWq8dcdcRWdq6hw2v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Nh/vBgqPHzKaTfzIAwDQYJKoZI
hvcNAQEBBQAEggEAgCMeNwg1kOFh1u3vjyBJpidAqANwIIiDSurxvCVaBoExhOVECGu2g9HebD8t
Vln1lIJkB73efXZcP3NpbFoYYTgYU/2QoAj21CZ7aWQa/g0CRAILeOkS9Ccf+MPABHHfYv7b7F1m
0rlVgaXkgqWy9IRBA46QdkcJ3M953u4VwVIhBB6ltvX029JGh8Z5SbSEKTygamyary46wr/OJhPX
O5x4W08b5fsJcthSuj89h93Khjg6XyPNXR7do16B7nWfXT2a9i02tcgtW5K95U3hWcr6kVkJFXnS
7ciUVOJ0Q2bH7fBeOdXHTH83C4frzYk2eEgNiAyXNd4cIdtt3hzoLAAAAAAAAA==

--Apple-Mail=_D25F7325-C1EB-4946-B43E-0C1087E85020--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9F85D42E-D431-455E-8DFC-CEA7AC53F4BE>