Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jan 2013 16:19:24 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        Fleuriot Damien <ml@my.gd>, Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: ZFS/RAIDZ and SAMBA: abyssimal performance
Message-ID:  <50E6F2FC.3060903@zedat.fu-berlin.de>
In-Reply-To: <CAGH67wTeF8dxHFCF53mmAmZzbGf47SQy4yoH58L1gibbUs1tPA@mail.gmail.com>
References:  <50E6DE91.7010404@zedat.fu-berlin.de> <1ADC2ECB-70FF-4DDD-9D62-16E2EEECDD8B@my.gd> <CAGH67wTeF8dxHFCF53mmAmZzbGf47SQy4yoH58L1gibbUs1tPA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0A7323CD0EC96C3D095C6966
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Am 01/04/13 15:45, schrieb Garrett Cooper:
> On Fri, Jan 4, 2013 at 6:06 AM, Fleuriot Damien <ml@my.gd> wrote:
>=20
> ...
>=20
>> And this is under [global] in /usr/local/etc/smb.conf:
>>    min receivefile size =3D 16384
>>    aio read size =3D 16384
>>    aio write size =3D 16384
>>    aio write behind =3D yes
>=20
> These are still pretty low, depending on what your networking/disk
> setup is like; my important performance settings are:
>=20
>         socket options =3D SO_RCVBUF=3D64240 SO_SNDBUF=3D64240 TCP_NODE=
LAY
> IPTOS_LOWDELAY IPTOS_THROUGHPUT
>         write cache size =3D 65536
>         aio read size =3D 65536
>         aio write size =3D 65536
>         directory name cache size =3D 0
>=20
> HTH,
> -Garrett
Well, now I have peak values ~ 120 MB/s when copying. I applied Fleuriot
Damien's values to /boot/loader.conf and yours to the smb.conf.
Somewhere in the handbook this should be documented! it is to much
efford to get SAMBA working properly with ZFS, if the tricks and
problems are so widespread over several architectural aspects of the syst=
em.

It could save a lot of time for adminsitartors and those which try
FreeBSD as a serving system instead of Linux.

Just for the record. I feel a bit confused about all the tricks and
tweak now "published" for ZFS, its magic L2ARC, the kernel_vmem wizzardy
thingis. The ZFS Wiki seems to be a bit outdated and confusing, it would
be a great deal if all these things could be lined up a s a primer with
a bit more explanations than "put this number there".

And by the way, it is like changing from hell to heaven having now ~ 100
MB/s throughput compared to ~1/500!

Thanks a lot,
Oliver


--------------enig0A7323CD0EC96C3D095C6966
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJQ5vL9AAoJEOgBcD7A/5N8fn4H/2BiBbdPYdFEe9t650FgYT6J
GBYzfxZ7415SzEWmUwzdOf4CbIZzSUeXPT7HhYaeVoIEXnRu2A8DGRPK1xkuPHPA
V7sOoaiHI78j6uRIrsdARkECigckpUYHeGaq4PTjf3wDT9s5i7Kw5eMwTYtAXX4T
7Y8xmsab1Gj0G2F89O7yXNsKPTKpfhGwbZ+rPthGhy1RLiGJMEnFpkPOwWD7+Zld
B/Gany/vQ9j2Bm24nCFEUL5ofzC9xwKADN1Wylhw2FjwzGEy+uU36y2jHQgxdfRS
9iYQFo9QzKhRVigTvHz/seOQsdd975WK5lfBFU1OZuvml26rqoTK+WnIymAYaWw=
=AZzG
-----END PGP SIGNATURE-----

--------------enig0A7323CD0EC96C3D095C6966--



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