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

Swap mode fails on filesystems that don't support O_DIRECT. #8

Closed
Mysticial opened this issue Mar 23, 2018 · 0 comments
Closed

Swap mode fails on filesystems that don't support O_DIRECT. #8

Mysticial opened this issue Mar 23, 2018 · 0 comments
Labels
bug bug-P2-compute-blocker All other bugs that may prevent a computation from finishing correctly.

Comments

@Mysticial
Copy link
Owner

Mysticial commented Mar 23, 2018

This bug has been around for ages, but was only discovered now.

In Swap Mode on Linux, all computation disk access is done using O_DIRECT to bypass the system cache. If y-cruncher fails to create or open a file with O_DIRECT, it panics and bails with error 22.

The problem is that not all filesystems support O_DIRECT. This is the case for ext4 if journaling is enabled. It's been years since I've tested this on Linux, so I have no idea when this started happening by default on Ubuntu.

The current work-around is to disable journaling on all drives that will be used for swap files.

This will be fixed in v0.7.6 with fall-back logic along with a warning. But the fix will not be backported to v0.7.5 since it conflicts with on-going refactors.

@Mysticial Mysticial added the bug-P2-compute-blocker All other bugs that may prevent a computation from finishing correctly. label Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug-P2-compute-blocker All other bugs that may prevent a computation from finishing correctly.
Projects
None yet
Development

No branches or pull requests

1 participant