From owner-freebsd-questions@FreeBSD.ORG Sun Apr 24 16:45:18 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66C9E106566B for ; Sun, 24 Apr 2011 16:45:18 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1E8738FC0A for ; Sun, 24 Apr 2011 16:45:17 +0000 (UTC) Received: by gwb15 with SMTP id 15so608737gwb.13 for ; Sun, 24 Apr 2011 09:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer; bh=aBvHCpH8hOyKlZMnJE/2OTBPoiX1ZcXsNbm1mpEcGSA=; b=KAIwGxA8gWVXbFZ0pmTQJxheszu2YLaJySAb2rjEh75K8Y0/2i6oqgDvVXdlxTWdFq rXjD8tmjxwoh+HAZEyvoENnzywxM6ULNpVlNJrBxEyC+xVrF03/XI5hUpZ3Qyrf1uWdR BxbtiFM7W7webbvoqJTMsKyFIpy/o7wHat7Jc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=KDvjd1i2rR/xd5L7x8M0iC6HHAmGDmt5x+6k6JIgmzUaS40J79+OcdRv58Cnai7tP5 h1lmMaHNanLq9hloISebjnaK93QDGbmR5uranKzyJ7gS7uGxEbeP0sMWDHHE5mOlypyv gn0Q4+IAEaseDjTVmc/y3xRCPxSAJoSuCdn8c= Received: by 10.100.137.12 with SMTP id k12mr1631417and.92.1303662099738; Sun, 24 Apr 2011 09:21:39 -0700 (PDT) Received: from [192.168.6.230] ([201.21.167.145]) by mx.google.com with ESMTPS id d14sm4865683ana.26.2011.04.24.09.21.36 (version=SSLv3 cipher=OTHER); Sun, 24 Apr 2011 09:21:38 -0700 (PDT) From: Sergio de Almeida Lenzi To: freebsd-questions@freebsd.org In-Reply-To: References: Date: Sun, 24 Apr 2011 13:21:34 -0300 Message-ID: <1303662094.42253.4.camel@z6000.lenzicasa> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: ZFS performance strangeness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2011 16:45:18 -0000 Em Ter, 2011-04-12 às 13:33 +0200, Lars Wilke escreveu: > Hi, > > There are quite a few threads about ZFS and performance difficulties, > but i did not find anything that really helped :) > Therefor any advice would be highly appreciated. > I started to use ZFS with 8.1R, only tuning i did was setting > > vm.kmem_size_scale="1" > vfs.zfs.arc_max="40000M" For me I solved the ZFS performace in FreeBSD and postgres databases (about 100GB size) by tunning vm.kmem_size to atout 3/4 of the ram size... in your case, vm.kmem_size=(48 *3/4)=36G, it puts almost all the database in memory and it is now lightning fast... I use to disable prefetch in zfs.. too Hope this can help, Sergio