Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2016 14:52:23 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Best kind of hard drive for heavy use?
Message-ID:  <20160915145223.1539a56e0f8ae601a914340d@sohara.org>
In-Reply-To: <CAOyJeZRF5CK3hxVb3J=hxG550eppF779wC8VE5Q-bhZmU=O=EA@mail.gmail.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> <CAOyJeZRF5CK3hxVb3J=hxG550eppF779wC8VE5Q-bhZmU=O=EA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Sep 2016 14:29:37 +0100
Shamim Shahriar <shamim.shahriar@gmail.com> wrote:

> 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.

	Nope tmpfs is just another user of RAM and will be swapped
according to memory pressure just like any other user of RAM - IOW if you
have a tmpfs half the size of your memory that isn't too busy and processes
keeping most of your memory busy then likely you'll find tmpfs data swapped
out.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160915145223.1539a56e0f8ae601a914340d>