Re: ZFS-FreeBSD + postgresql performance

From: Michael Schmiedgen <schmiedgen(at)gmx(dot)net>
To: Mark Felder <feld(at)FreeBSD(dot)org>, Albert Shih <Albert(dot)Shih(at)obspm(dot)fr>, pgsql-admin(at)postgresql(dot)org, freebsd-fs(at)freebsd(dot)org, freebsd-jail(at)freebsd(dot)org
Subject: Re: ZFS-FreeBSD + postgresql performance
Date: 2013-10-23 20:57:57
Message-ID: 52683855.6060609@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jorge Torralba 2013-10-23 21:05:04 Re: wrong size archive file
Previous Message Denish Patel 2013-10-23 20:48:51 Re: wrong size archive file