Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VZBim-0000la-5D for pgsql-admin@arkaria.postgresql.org; Thu, 24 Oct 2013 03:36:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VZBil-0001fe-Fm for pgsql-admin@arkaria.postgresql.org; Thu, 24 Oct 2013 03:36:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VZ5VI-0006D5-6n for pgsql-admin@postgresql.org; Wed, 23 Oct 2013 20:58:08 +0000 Received: from mout.gmx.net ([212.227.17.21]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VZ5VB-0001od-BG for pgsql-admin@postgresql.org; Wed, 23 Oct 2013 20:58:07 +0000 Received: from pepe.smoke.local ([94.222.160.176]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Meduu-1VJjPL3Awy-00OChr for ; Wed, 23 Oct 2013 22:58:00 +0200 Message-ID: <52683855.6060609@gmx.net> Date: Wed, 23 Oct 2013 22:57:57 +0200 From: Michael Schmiedgen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Mark Felder , Albert Shih , pgsql-admin@postgresql.org, freebsd-fs@freebsd.org, freebsd-jail@freebsd.org Subject: Re: ZFS-FreeBSD + postgresql performance References: <20131023162545.GA19794@pcjas.obspm.fr> <1382548465.32073.37624113.6AA8DB42@webmail.messagingengine.com> In-Reply-To: <1382548465.32073.37624113.6AA8DB42@webmail.messagingengine.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:EyZ4K+CgWlDsGMfBajaY6dVjZQsOhtZBWvmh+AOM8KBKG9HvW6A La8PTBXBt8aClrpvGuHahwq9Mfy3Q9Vx0DBYoSq84OTedMX/Pa6SA8XfWv2xRChIb9Yu3BP Yw78Nmdjaccb0sHoHYq2LksaCcImziifQRBNL3LgaViAJXO1aRVMVPS0RiaiBy3pQ4VmZ2d 244AE8juyW75MUt0Soyxg== X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 10/23/13 19:14, Mark Felder wrote: > On Wed, Oct 23, 2013, at 11:25, Albert Shih wrote: >> My question is about the performance, I known ZFS eat all memory he can >> have (or almost), so what append when we run database like postgresql and >> jail ? (it's also the reason of 96 Go ram). >> >> Sorry for cross-posting but it's about 3 differents things.... >> > > To my understanding the solution is to change the primarycache to > "metadata" for any ZFS filesystem that you do not want ZFS to heavily > cache in memory. > > Example: > > # zfs set primarycache=metadata tank/usr/local/pgsql In addition to this it is recommended to set the recordsize to the fixed value of 8k on dataset creation. Michael -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin