Best kind of hard drive for heavy use?

RW rwmaillists at
Thu Sep 15 15:10:42 UTC 2016

On Thu, 15 Sep 2016 15:52:54 +0200
Ralf Mardorf via freebsd-questions wrote:

> On Thu, 15 Sep 2016 14:08:56 +0100, RW via freebsd-questions wrote:
> >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.  
> That might be true, but not necessarily is true.

It is if you're using UFS and set a sensible tmpfs limit.

ZFS does complicate this because it's not well integrated into VM, and I
think it still has some problems with swap.

> If the handling would
> be that good, then I wonder why on Linux the default without an fstab
> entry usually is half of the RAM and not the complete RAM.

That default doesn't take account of swap, and in the absence of swap
you cannot use 100% of the RAM for tmpfs.

The important thing is that everything that can't (or shouldn't) be
discarded has to fit into swap+ram. Most desktops/workstations have
much more memory than they need, in which case you can safely allocate
swap plus most of the ram to tmpfs, if you want to. 

More information about the freebsd-questions mailing list