Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 21:12:52 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Benjamin Adams <benjamindadams@gmail.com>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>, Shane Ambler <FreeBSD@shaneware.biz>
Subject:   Re: recommended memory for zfs
Message-ID:  <CA%2BtpaK1DHvKOGKvB0td05o%2B-oV45Arjrtt1eCtp8_nq_AhTGRA@mail.gmail.com>
In-Reply-To: <518C51AF.5050609@gmail.com>
References:  <518BA237.3030700@gmail.com> <518C450B.5070809@ShaneWare.Biz> <518C51AF.5050609@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Probably the simplest answer is that you already have sufficient
memory to run ZFS.  As someone already mentioned you should use AMD64,
not i386.  If your setup isn't fast enough with tuning, add more if
it's the bottleneck.

On Thu, May 9, 2013 at 8:47 PM, Benjamin Adams <benjamindadams@gmail.com> wrote:
> On 05/09/2013 08:53 PM, Shane Ambler wrote:
>>
>> On 09/05/2013 22:48, Benjamin Adams wrote:
>>>
>>> Hello zfs question about memory.
>>> I heard zfs is very ram hungry.
>>> Service looking to run:
>>> - nginx
>>> - postgres
>>> - php-fpm
>>> - python
>>>
>>> I have a machine with two quad core cpus but only 4 G Memory
>>>
>>> I'm looking to buy more ram now.
>>> What would be the recommend amount of memory for zfs across 6 drives on
>>> this setup?
>>>
>>
>> I believe I heard a calculation of 1GB cache per 1TB of disk. But
>> basically zfs will use all free ram available if you access that much data
>> from disk. You will want to set vfs.zfs.arc_max to allow enough ram for your
>> apps to work in.
>>
>> If you consider the files for your website and the data you store you may
>> find that you would never fill more than 500MB of cache.
>>
>> If you will be serving large media files that will easily use up the cache
>> you could give them their own filesystem that only caches metadata - zfs set
>> primarycache=metadata zroot/mediafiles
>>
>>
> Thanks for all the replies  Size of DB and HD's are:
>
> Current DB Size = 23 GB
> HD sizes = (6) 500 GB drives
>
>
>
>
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK1DHvKOGKvB0td05o%2B-oV45Arjrtt1eCtp8_nq_AhTGRA>