Docker mount tmp, make sense?

Hi all,
I use the steefdebruijn/docker-roonserver image to run on my nas (btw: thanks steef for the effort).
My nas has /tmp mapped to memory (tmpfs).
I now have mounted this /tmp to the /tmp in the container and I get the idea it is faster in response.
Anyone else doing this and does it makes sense anyway?
(While it does not do any harm I guess, I rather remove it from the config to not overcomplicate stuff when objectively useless.)

Curious to find if others experience a difference or can debunk this idea…

(must admit that the only roon related stuff in /tmp seems to be the lock and some dotnet diagnostic debug sockets, so little evidence for use of the /tmp folder?)

So ā€˜tmpfs’ is a memory backed file system, hence the speed. There’s no issue with mapping the docker image ā€˜/tmp’ there bar the possibility of file name clashes with the NAS host. You could use a subdir on ā€˜/tmp’ or a dedicated ā€˜tmpfs’ to avoid this. Do be aware that all of this is using a portion of the NAS RAM. This can be size limited or left unbound. If bounded there may be limited space which you fill. If unbounded then it may start to fill the RAM space. If memory serves ā€˜tmpfs’ is amongst the first things chosen for disk paging, so not too bad. Relying on applications unknown ā€˜tmp’ behaviour will bite you someday. I’ve heard and spoken the ā€œit’s never done that beforeā€ words many times.

1 Like

I think you’ve answered your own question.

In theory, there should be no issue mapping /tmp to /tmpfs because neither are intended to persist across reboots (/tmp because of semantics, /tmpfs because of volatility). Is doing this mapping within your Roon container actually going to improve anything materially? Probably not. Is it going to cause problems? Probably not. Would I do? Probably not.

:slight_smile:

Well, indeed, still no evidence of a benefit found. So better ignore my post :joy:

1 Like