From owner-freebsd-current@FreeBSD.ORG Sun Jan 8 23:43:20 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 0A3DD106566B for ; Sun, 8 Jan 2012 23:43:20 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C410E8FC16 for ; Sun, 8 Jan 2012 23:43:19 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so4866947obb.13 for ; Sun, 08 Jan 2012 15:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gY7tp+sbQAu1dpOh4eXDxbqZJYIlnE7SSbEot5yJWvY=; b=XnnjEqk20ynE82n7OPI79Ivja+Gi0uBslpITZKktph6GnjmNyNe6iPTch/+tP8Fcgl pTYYeFMPv4xsY6/liqU4bTIS0Qqto2x6K6X9bLIdEAZIpiy0lVXUFWdxAEZBEJEEloUM 6peqSGcxM2xoH00Qutn9czZbF3jd7ZSK40kkE= MIME-Version: 1.0 Received: by 10.182.159.70 with SMTP id xa6mr12557886obb.1.1326066199228; Sun, 08 Jan 2012 15:43:19 -0800 (PST) Received: by 10.182.152.6 with HTTP; Sun, 8 Jan 2012 15:43:19 -0800 (PST) In-Reply-To: References: <20120108222720.GN31224@deviant.kiev.zoral.com.ua> <8401.1326061866@critter.freebsd.dk> <20120108223350.GO31224@deviant.kiev.zoral.com.ua> Date: Sun, 8 Jan 2012 15:43:19 -0800 Message-ID: From: Garrett Cooper To: Freddie Cash Content-Type: text/plain; charset=ISO-8859-1 Cc: Kostik Belousov , Poul-Henning Kamp , 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 23:43:20 -0000 On Sun, Jan 8, 2012 at 3:01 PM, Freddie Cash wrote: > On Sun, Jan 8, 2012 at 2:33 PM, Kostik Belousov wrote: >> On Sun, Jan 08, 2012 at 10:31:06PM +0000, Poul-Henning Kamp wrote: >>> In message <20120108222720.GN31224@deviant.kiev.zoral.com.ua>, Kostik Belousov >>> writes: >>> >>> >What is the access patern ? Is it random access, or sequential read >>> >(from the cd9660 POV) ? >>> >>> Random access to files in the CD9660 filesystem, which stores files >>> in sequential 2K blocks. >> >> Then it is reasonable. UFS reads full blocks. If you want/plan to use >> UFS volume for small reads exclusively, you can newfs it with much >> smaller block size, e.g. 8KB or even 4KB. > > I think the complaint is that UFS is reading 32 KB (which includes the > 2 KB block and 15 others that will be needed right after) but not > caching the 30 KB of data that follows the requested 2 KB. Speaking of the increase in block size and frag size, on the FreeNAS side of the house we discovered that the new values make sense with larger disks and memory disks, but they don't make sense with rc.initdiskless's generated md's, et all. So we've hacked rc.initdiskless to use smaller sizes. Just a thought since we're talking about this change from the 8.x defaults to the 9.x defaults. Thanks! -Garrett