Replies: 2 comments 6 replies
-
If you set cache.files=off then it won't cache twice. But if you need mmap support that won't currently fly. In my experience disabling page caching in mergerfs leads to better performance than cached oddly enough. Something I've been talking to the kernel folks about. As for DAX: I've not gotten around to trying it. Not sure if there are any edge cases that need to be accounted for. |
Beta Was this translation helpful? Give feedback.
-
Thanks for answering. I would like to use mergerfs on my home folder. I think browsers, media libraries and apps like that use sqlite, so I think I will need mmap and because of that caching. Currently I have my home folder on an nvme drive. I use bind mounts to map folders like music, documents, pictures,... to slower ssds. I used to mess around with stuff lvm, but I like this solution better and something like mergerfs would be even better. I'm guessing it's faster without caching because there is less copying happening in memory? I won't have time to test some stuff today, but I will try and do some tests tomorrow. I will do some tests with and without dax and let you know. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm thinking of using mergerfs as it would be a lot simpler than my current setup of spreading folders over drives using bind mounts.
I've been reading through the Readme page and read that data will be cached twice. I only use ext4 on all my drives. Would it be a good idea to mount them with the dax option so all data is accesed directly? This would turn off all read and write caching and would eliminate the issue with the double caching. Did anyone try this? Are there disadvantages?
It's mentioned in the Readme that directly accessing the drive is preferred so that mergerfs can do all the caching.
Regards,
Dimitri
Beta Was this translation helpful? Give feedback.
All reactions