is TMPFS still highly experimental?

Olivier Smedts olivier at gid0.org
Sun Oct 2 10:24:00 UTC 2011


2011/10/2 Xin LI <delphij at gmail.com>:
> Hi,
>
> On Sat, Oct 1, 2011 at 8:48 AM, Chris Rees <crees at freebsd.org> wrote:
>> I've also not heard of anyone using it with zfs successfully- it tends to
>> shrink rapidly.
>
> I'm quite surprised with this assertion.  I use tmpfs on my own system
> and I never see such problem as long as one have sufficient swap
> space.

The problem here is "sufficient swap space".

I've got 8G of RAM, and 2G of swap (just in case). When the ZFS ARC
reaches 4G, there's no room for a single byte in tmpfs, even with 2G
swap free and at least 2-3G RAM free. The swap size must be at least
the RAM size if you plan on using ZFS and tmpfs. That's a problem for
me because I'm short on disk space, and there's no point in having an
enormous swap size (hey, minidumps !) when you already have lots of
RAM, which is the case in most ZFS installs.

Cheers

> Not to say there is no problem --there is no way to say "commit this
> amount of memory to ZFS" but really I have never hit this exact
> alleged problem...
>
> Cheers,
> --
> Xin LI <delphij at delphij.net> https://www.delphij.net/
> FreeBSD - The Power to Serve! Live free or die
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>



-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


More information about the freebsd-fs mailing list