From owner-freebsd-current@FreeBSD.ORG Sun Jan 8 22:27:25 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B64F106566B for ; Sun, 8 Jan 2012 22:27:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9A5648FC15 for ; Sun, 8 Jan 2012 22:27:24 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q08MRL7n002301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Jan 2012 00:27:21 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q08MRKBh048031; Mon, 9 Jan 2012 00:27:20 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q08MRKvK048030; Mon, 9 Jan 2012 00:27:20 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 9 Jan 2012 00:27:20 +0200 From: Kostik Belousov To: Poul-Henning Kamp Message-ID: <20120108222720.GN31224@deviant.kiev.zoral.com.ua> References: <8334.1326061310@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JMMA/5w7oqUUivCa" Content-Disposition: inline In-Reply-To: <8334.1326061310@critter.freebsd.dk> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: current@freebsd.org Subject: Re: CD9660/md(4)/UFS22 silly behaviour X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 08 Jan 2012 22:27:25 -0000 --JMMA/5w7oqUUivCa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 08, 2012 at 10:21:50PM +0000, Poul-Henning Kamp wrote: >=20 > I'm doing som data-mining on a pile of ISO images right now. >=20 > I stuck the ISOs on a UFS2 on a flash-disk for speed, and mdconfig(8)'d > them so I could mount them. >=20 > The traffic pattern his "interesting": >=20 > dT: 1.003s w: 1.000s > L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name > [...] > 1 733 733 1466 1.3 0 0 0.0 98.2| md39 > 1 733 733 23449 1.3 0 0 0.0 93.2| da0 >=20 > Notice the 1:16 ratio on kBps but 1:1 ratio on ops/s ? >=20 > da0's UFS2 has 32k block-size: >=20 > magic 19540119 (UFS2) time Wed Jan 4 16:41:47 2012 > superblock location 65536 id [ 4f046cf5 c30697ee ] > ncg 104 size 19537685 blocks 19228156 > bsize 32768 shift 15 mask 0xffff8000 > fsize 4096 shift 12 mask 0xfffff000 > [...] >=20 > It looks like every 2k read from CD9660 turns into a 32k block > read in the UFS filesystem, without any beneficial caching happening. >=20 > Less than optimal I'd say... >=20 What is the access patern ? Is it random access, or sequential read (from the cd9660 POV) ? --JMMA/5w7oqUUivCa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk8KGEgACgkQC3+MBN1Mb4jruQCcCzy7Ple7akRe/HtI+bfw/TnC nksAniu/bgOQg5rDZS0+6wbTKBqDrA3m =0mal -----END PGP SIGNATURE----- --JMMA/5w7oqUUivCa--