Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significant Performance Impact #248

Open
DaRacci opened this issue Dec 29, 2024 · 2 comments
Open

Significant Performance Impact #248

DaRacci opened this issue Dec 29, 2024 · 2 comments

Comments

@DaRacci
Copy link

DaRacci commented Dec 29, 2024

I've been running Impermanence for a long time now but have realised that the performance I'm getting really doesn't match what my hardware is capable of.

For reference my system flake can be found here and I'm on the nixe system with the relevant files to these mounts being located in these files /var/log, /persist and /home/racci/Games (This is proxied to impermanence through this)

After creating files with the command dd if=/dev/zero of=<path>/test.img count=10 bs=1G on the directly mounted btrfs subvolume, a impermanence mount with the NixOS module and one with the home-manager module, I've run a read speed test and noticed roughly 40-60% performance impact in read and write speeds.

Is this a simple side effect of the mounting method that is used for mounting user directories due to permissions or something, and is there any way to scrape back any of the lost performance via different mounting methods?

Write:
image

Read:
image

Mounts:
image

@DaRacci
Copy link
Author

DaRacci commented Dec 29, 2024

I've been researching this further and found that the performance hit is caused by fuse, I've found that using the flag --direct-io with bindfs can regain a good chunk of the performance in writes and a bit on read, the --enable-ioctl flag also seems to regain a very slight bit of performance.

Write:
image

Read:
image

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/three-years-of-ephemeral-nixos-my-experience-resetting-root-on-every-boot/60003/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants