From owner-freebsd-stable@FreeBSD.ORG Tue Jan 31 10:32:31 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D4FD106564A for ; Tue, 31 Jan 2012 10:32:31 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (s1.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 9AED08FC08 for ; Tue, 31 Jan 2012 10:32:30 +0000 (UTC) Received: from titan.wdn.omnilan.net (titan.lo4.wdn.omnilan.net [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id q0VAJxYM081141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Jan 2012 11:20:00 +0100 (CET) (envelope-from h.schmalzbauer@omnilan.de) X-Authentication-Warning: smtp.dmz.omnisec.de: Host titan.lo4.wdn.omnilan.net [172.21.1.150] claimed to be titan.wdn.omnilan.net Message-ID: <4F27C04F.7020400@omnilan.de> Date: Tue, 31 Jan 2012 11:19:59 +0100 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Alex Samorukov References: <4F215A99.8020003@os2.kiev.ua> In-Reply-To: <4F215A99.8020003@os2.kiev.ua> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE874FCEE561CE9AD077F7EB0" Cc: freebsd-stable@freebsd.org Subject: Re: disk devices speed is ugly X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2012 10:32:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE874FCEE561CE9AD077F7EB0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable schrieb Alex Samorukov am 26.01.2012 14:52 (localtime): > Hi, > > I ported exfat fuse module to FreeBSD (PR 164473) and found that it > works much slower then on Linux. I found 2 reasons for this: > Thanks a lot! I saw the new port :-) Hope that someone can help you improove fusefs-kmod. I remember more porters were blaming FreeBSDs fusefs support making their work hard/impossible (TrueCrypt). Hopefully some kernel hacker will read and help... Best regards, -Harry > 1) FreeBSD kernel do not allow to have nonalignment access to device > with standard read/write commands. mmap to the entire disk > (/dev/da0s1) doesn`t work also (EINVAL). > > When its not a big deal for read requests, for write it becomes a real > issue - to write non-aligned data i need to read beginning and end of > the block. So in fact for one write request i can get 2 reads. > > 2) It seems that there is a very simple read caching on such devices > without write caching at all. It makes write performance enormously > slow. I found geom_cache module, but it provides only read optimization= =2E > > > I decided to compare speed on Linux and FreeBSD and below are my > results. I used old USB flash drive to do the tests. > > Read Speed of 100Mb: > > Linux 3.0.0: 22.7 Mb/sec > FreeBSD: 10.22 Mb/sec > FreeBSD + gcache: 18.75 Mb/sec (!) > > Write speed of 100Mb file: > Linux: 90Mb/sec (cache, much higher then device speed) > FreeBSD: 0.52 Mb/sec (!) > FreeBSD + gcache: 0.52 Mb/sec > > As you could see write performance is enormously slow. May be we need > to create some geom provider for such caching or i am missing > something? I think, that other fuse modules like ntfs-3g and fuse-ext4 > having same issue. Also i found that fuse4bsd itself is non stable and > may crash the system without any visible reasons. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.or= g" --------------enigE874FCEE561CE9AD077F7EB0 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.18 (FreeBSD) iEYEARECAAYFAk8nwE8ACgkQLDqVQ9VXb8iQeACgowB+nFoRmLWdvIjcpz8BjMOy PQ4An0QVwBbqfbdxUw0HBD86lF8npYyr =nsEr -----END PGP SIGNATURE----- --------------enigE874FCEE561CE9AD077F7EB0--