From owner-freebsd-fs@FreeBSD.ORG Wed Nov 28 14:49:13 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBBB8A92 for ; Wed, 28 Nov 2012 14:49:13 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7D6608FC12 for ; Wed, 28 Nov 2012 14:49:13 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id g24so5613054qab.13 for ; Wed, 28 Nov 2012 06:49:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=8gwS7qI31Ig9E8iHrVz9jOFq8uM7Q9CXv2VvNRKj8h8=; b=cKw3Z6ZDymoLo7PwZW8i9085F1Aiz1zgNl94eQA2lPAR7Efol2Z49TkX6qRbKLmeiN cZvenXv2pMMqR+gSzDpf16hi/OLlqp15uljpwg86MId6zJHkmPo6xrGSMzribXbltWQb vLQwodTcD++vgvl7oB3WjsLF49PxUkxLM9Snj/ssITXrU2H8m8/UCOdHdTVmI7dEgedP 2uKWq1vjPrD4eNsunyRKc4/zWwRH82Tcb/c9sLqGZPivdSpBV3inLvYbNev3ufunC4lv kNTDxpizOzK8sL/Lvvt1ijddr6LjNWzRlS4ZnwWFlyd0OP+qcr1FcVx6DGNuDZF5HQNC jT+Q== MIME-Version: 1.0 Received: by 10.49.1.47 with SMTP id 15mr21045642qej.46.1354114152603; Wed, 28 Nov 2012 06:49:12 -0800 (PST) Received: by 10.229.78.96 with HTTP; Wed, 28 Nov 2012 06:49:12 -0800 (PST) In-Reply-To: References: Date: Wed, 28 Nov 2012 17:49:12 +0300 Message-ID: Subject: Re: Performance Difference on UFS and ZFS From: Sergey Kandaurov To: =?UTF-8?B?TWV0aW4gRMO2xZ9sw7w=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 14:49:13 -0000 On 28 November 2012 12:35, Metin D=C3=B6=C5=9Fl=C3=BC wrote: > Hi - > > I installed PostgreSQL 9.1.6 on FreeBSD 9.0-RELEASE, and compared ZFS > to UFS. I also made sure all data easily fit into memory, ran some > sequential scan queries on the database. > > Query run times on UFS were 100-200% slower than those of ZFS. This > was intriguing as all data came from memory. What could be causing > such a large performance difference? Hi Metin D=C3=B6=C5=9Fl=C3=BC! That's interesting. Can you please share your settings? Hardware configuration, system tuning (sysctl, zfs), PostgreSQL settings, data access pattern (read/write ratio), and how you measure performance would be a good start. --=20 wbr, pluknet