Issue #2868 has been updated by marino.

"When tmpfs is mounted automatically it's size by default (per man page) should 
be equal to all free mem + all free swap"

I think you misinterpreted the man page

"Instead tmpfs filesystems are created with a fairly small size - like 200k on 
host with 1G mem. "

I get 30G on a system with 8G ram and a swapsize of 56G.
I get 108G on a system with 32G ram and a swapsize of 200G
The default tmpfs size is affected what the sytem has, but as not as you 
present.  If you create a second tmpfs mount, it has the same capacity as the 
first one. (e.g. 108 + 108 > 208)

"tmpfs size should be auto adjusted when other processes are eating mem or when 
swap is added. "
Adjusted how?

"Instead as swap is initialized after mounting /tmp swap addition doesn't make 
tmpfs grow."
what do you mean, "grow"?  Do you mean the potential capacity?

"On the other hand I never saw tmpfs shrinking when all available memory is 
used."
again, I assume you are talking about capacity.  

I don't see a problem.  If you don't want some "random" default tmpfs size, 
then specify the size with -s.  I doubt anybody wants a tmpfs mount that 
fluxuates in capacity depending on what else the system is doing.  I'm not sure 
how FreeBSD implementation is "superior" in any way.



----------------------------------------
Bug #2868: tmpfs problems: incorrect size, no auto-size
http://bugs.dragonflybsd.org/issues/2868#change-12790

* Author: [email protected]
* Status: New
* Priority: Low
* Assignee: 
* Category: VFS subsystem
* Target version: 
----------------------------------------
tmpfs version in DragonFly is limited  when comparing to FreeBSD:

1. When tmpfs is mounted automatically it's size by default (per man page) 
should be equal to all free mem + all free swap. Instead tmpfs filesystems are 
created with a fairly small size - like 200k on host with 1G mem.
2. tmpfs size should be auto adjusted when other processes are eating mem or 
when swap is added. Instead as swap is initialized after mounting /tmp swap 
addition doesn't make tmpfs grow. On the other hand I never saw tmpfs shrinking 
when all available memory is used.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://bugs.dragonflybsd.org/my/account

Reply via email to