Docker writing to /mnt/user/appdata is much slower than /mnt/cache/appdata


Recommended Posts

Hi! The title pretty much sums it up. Its hard to see the differences in most containers, but when running the nextcloud docker container (which accesses a lot of files on the server in order to server the webpage) the difference is night and day in terms of page load speed when using the /mnt/user path (1-2 seconds load times) vs the direct /mnt/cache path (near instantaneous loads). I noticed when using the /mnt/user/appdata path that the shfs process has spikes in the CPU usage. I am running an i7 3770  so I do not think there should be any resource bottlenecks. I would like to know if this is expected behavior and if using /mnt/user is preffered over the /mnt/cache, if not is there any settings I need to change (I see that enabling Direct IO is something that can be done, but I have heard that some docker containers do not respond well to this)? Your help would be much appreciated.

image.png.9d49ce4f0fdc3894a1363c589fc8b3ec.png

 

Here is another post which seems to have similar issues.

 

Edited by keshavdaboss
Link to comment
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.