rmanosuthi / mofl-legacy

Mod Organizer for Linux
GNU General Public License v3.0
0 stars 0 forks source link

VFS Performance #16

Open rmanosuthi opened 5 years ago

rmanosuthi commented 5 years ago

Now that MO2 importing now works, I decided to test out my old mod list (10G+) and discovered that fuse-overlayfs is awfully slow.

Slow as in "on a very fast NVMe SSD, takes minutes to launch SkyrimSE.exe and pegs CPU0 at 100%".

I'm not sure if this is because of file conflicts, funny symlinks, or something else, but it's not looking good.

rmanosuthi commented 5 years ago

I'm looking at using the system's overlayfs, through a separate binary mofl-vfs, through polkit. If the performance gain's substantial then I'll go with it.

Pros:

Cons:

rmanosuthi commented 5 years ago

I tested the system's overlayfs and it's up to 10x faster than fuse-overlayfs! I'll be going the polkit route then.

rmanosuthi commented 4 years ago

Another alternative is to rewrite syscalls for the game process.

open("Skyrim Special Edition/Data/file_overwritten_by_mod.esp")

vvvvvvvvvv

open("~/.config/mofl/games/SkyrimSE/mods/1000/Data/mod_file.esp")

This will involve libc::ptrace, will require unsafe code, and will be a lot of work.