Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0644B632E29 for ; Mon, 10 May 2010 17:01:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 92767-04-2 for ; Mon, 10 May 2010 20:01:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.212.174]) by mail.postgresql.org (Postfix) with ESMTP id 94138632CF4 for ; Mon, 10 May 2010 17:01:24 -0300 (ADT) Received: by pxi5 with SMTP id 5so1830795pxi.19 for ; Mon, 10 May 2010 13:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=KkeyJ3VRExJoYqf+FVXtrJrter7IoqWTlWqWB1c7Gk4=; b=KMr22gWBH7sTCms9pWDeh54L+5Kq0gWpC3Cgp/hXosYm1VhEVvqJrEKkVhyorkkFjQ 5V0TFwVaRbJ0oU0DRhHLCLH6kT1lEp/Y1m3uhhEVN0oNdxzaagqCBb9gmjqjCf9NhtGy 8wmp6/FoTRuPkfrC0/6yQJUuI/7ISFKYyIDaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=fzGb8lcI/95FgOqvl/zNibygNqNFkdDYyhDlolFN87x5KwZyJa1QQymgQdZ+Q3SPGW 4Ay20PHuz9Amf5jT3M6BzKrdacxv4VSv8VQJs9mW1g7jPFFP886MLoG9B07zDaRqXVA6 fIywMB5M9jk8sh7OncuwmNxHAst77ktch1gQU= Received: by 10.140.248.7 with SMTP id v7mr3040359rvh.252.1273521683150; Mon, 10 May 2010 13:01:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.133.10 with HTTP; Mon, 10 May 2010 13:01:03 -0700 (PDT) In-Reply-To: <4BE85ED3.4010008@agliodbs.com> References: <4BE4ABC9.6040106@agliodbs.com> <4BE852CE.9020802@agliodbs.com> <4BE85ED3.4010008@agliodbs.com> From: Greg Stark Date: Mon, 10 May 2010 21:01:03 +0100 X-Google-Sender-Auth: 6d4b8823b77b763a Message-ID: Subject: Re: 8K recordsize bad on ZFS? To: Josh Berkus Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201005/42 X-Sequence-Number: 38626 On Mon, May 10, 2010 at 8:30 PM, Josh Berkus wrote: > Ivan, > >> Other things could have influenced your result - 260 MB/s vs 300 MB/s is >> close enough to be influenced by data position on (some of) the drives. >> (I'm not saying anything about the original question.) > > You misread my post. =A0It's *87mb/s* vs. 300mb/s. =A0I kinda doubt that'= s > position on the drive. That still is consistent with it being caused by the files being discontiguous. Copying them moved all the blocks to be contiguous and sequential on disk and might have had the same effect even if you had left the settings at 8kB blocks. You described it as "overloading the array/drives with commands" which is probably accurate but sounds less exotic if you say "the files were fragmented causing lots of seeks so our drives we saturated the drives' iops capacity". How many iops were you doing before and after anyways? That said that doesn't change very much. The point remains that with 8kB blocks ZFS is susceptible to files becoming discontinuous and sequential i/o performing poorly whereas with 128kB blocks hopefully that would happen less. Of course with 128kB blocks updates become a whole lot more expensive too. --=20 greg