Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2016 14:29:37 +0100
From:      Shamim Shahriar <shamim.shahriar@gmail.com>
To:        RW <rwmaillists@googlemail.com>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: Best kind of hard drive for heavy use?
Message-ID:  <CAOyJeZRF5CK3hxVb3J=hxG550eppF779wC8VE5Q-bhZmU=O=EA@mail.gmail.com>
In-Reply-To: <20160915140856.24af27ca@gumby.homeunix.com>
References:  <42.56.05022.D3A48D75@dnvrco-oedge02> <20160914120349.76a015cd@gumby.homeunix.com> <20160914175449.185d12b0@archlinux.localdomain> <20160914221954.00fb1d56@gumby.homeunix.com> <20160915013848.5564c238@archlinux.localdomain> <CAOyJeZTzo4Kh9OaKQk6_-6qB8imHbGGMgT53DNK0%2BNgS-HR37g@mail.gmail.com> <20160915140856.24af27ca@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 Sep 2016 14:09, "RW via freebsd-questions" <
freebsd-questions@freebsd.org> wrote:
>
> On Thu, 15 Sep 2016 08:36:04 +0100
> Shamim Shahriar wrote:
>
> > On 15 Sep 2016 00:39, "Ralf Mardorf via freebsd-questions" <
> > freebsd-questions@freebsd.org> wrote:
> > >
> > > On Wed, 14 Sep 2016 22:19:54 +0100, RW via freebsd-questions
> > > wrote:
> > > >IIRC with 4 GiB RAM you can have up to 16 GiB of swap, so you could
> > > >support up to about 19 GiB of tmpfs if you want.
> > >
> > > Ok, but I guess than tmpfs could use the whole memory and cause
> > > issues with other software running at the same time. It would be
> > > nice, if here would be a possibility to assign 3 GiB of 4 GiB to
> > > tmpfs and if the 3 GiB are reached swap should be used. Perhaps it
> > > does exist, I might be just to lazy to find out.
> > >
> >
> > Yes it does, and yes you are :P
> > man fstab
>
> There's no such thing, you can specify the maximum size of a tmpfs,
> but not how much is kept in RAM.  It doesn't matter though, because the
> VM system will handle it better than a simple limit.
>

I might be mistaken here, but from man tmpfs

*size* Specifies the total file system size in bytes. If zero (the default)
or a value larger than SIZE_MAX - PAGE_SIZE is given, the available amount
of memory (including main memory and swap space) will be used.

My understanding, which might be wrong, is that as long as your size of
tmpfs is smaller than ram, it is kept on the ram. Swap is only used when
your tmpfs exceeds the available physical ram.

Corrections appreciated.

Thanks and regards. _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOyJeZRF5CK3hxVb3J=hxG550eppF779wC8VE5Q-bhZmU=O=EA>