pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Schmiedgen <schmiedgen@gmx.net>
To: Mark Felder <feld@FreeBSD.org>
To: Albert Shih <Albert.Shih@obspm.fr>
To: pgsql-admin@postgresql.org
To: freebsd-fs@freebsd.org
To: freebsd-jail@freebsd.org
Subject: Re: ZFS-FreeBSD + postgresql performance
Date: Wed, 23 Oct 2013 22:57:57 +0200
Message-ID: <52683855.6060609@gmx.net> (raw)
In-Reply-To: <1382548465.32073.37624113.6AA8DB42@webmail.messagingengine.com>
References: <20131023162545.GA19794@pcjas.obspm.fr>
	<1382548465.32073.37624113.6AA8DB42@webmail.messagingengine.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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



view thread (10+ messages)  latest in thread

Message-ID: <52683855.6060609@gmx.net>
Permalink:  ../52683855.6060609@gmx.net/
Also on:    postgresql.org/message-id/52683855.6060609@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: schmiedgen@gmx.net, feld@FreeBSD.org, Albert.Shih@obspm.fr, freebsd-fs@freebsd.org, freebsd-jail@freebsd.org
  Subject: Re: ZFS-FreeBSD + postgresql performance
  In-Reply-To: <52683855.6060609@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox