From owner-freebsd-current@FreeBSD.ORG Fri Jan 4 15:19:28 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 54ED6BD for ; Fri, 4 Jan 2013 15:19:28 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 151758A6 for ; Fri, 4 Jan 2013 15:19:27 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1Tr93O-0006CE-8o>; Fri, 04 Jan 2013 16:19:26 +0100 Received: from e178036024.adsl.alicedsl.de ([85.178.36.24] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1Tr93O-000CgJ-5C>; Fri, 04 Jan 2013 16:19:26 +0100 Message-ID: <50E6F2FC.3060903@zedat.fu-berlin.de> Date: Fri, 04 Jan 2013 16:19:24 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Garrett Cooper Subject: Re: ZFS/RAIDZ and SAMBA: abyssimal performance References: <50E6DE91.7010404@zedat.fu-berlin.de> <1ADC2ECB-70FF-4DDD-9D62-16E2EEECDD8B@my.gd> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0A7323CD0EC96C3D095C6966" X-Originating-IP: 85.178.36.24 Cc: Fleuriot Damien , Current FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 15:19:28 -0000 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 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--