-
Notifications
You must be signed in to change notification settings - Fork 118
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
Snapshots do not work on DAX mmap()'d files without commenting out lines mm/memory.c:1549-1552 #107
Comments
I now believe I understand the consequences of commenting that code out: snapshots will destroy mmap()'d DAX data. Commenting out |
Thanks for the findings. I guess the fix you suggested is not part of NOVA, right? So it is a workround? |
Yes, this fix is a workaround, not part of NOVA code. I also wanted to ask: the performance of taking snapshots depends on the number of previous snapshots (declining slowly), even if old snapshots are deleted. Is this expected behavior? |
That is not expected. Snapshot taking time should not increase with the
number of snapshots taken.
…On Tue, Jun 29, 2021 at 1:47 PM Derrick Greenspan ***@***.***> wrote:
Thanks for the findings. I guess the fix you suggested is not part of
NOVA, right? So it is a workround?
Yes, this fix is a workaround not part of NOVA code.
I also wanted to ask: the performance of taking snapshots depends on the
number of previous snapshots, even if old snapshots are deleted. Is this
expected behavior?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_NVSL_linux-2Dnova_issues_107-23issuecomment-2D870906024&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=HMwrvpNIfGkJhfYgtfzIcE0EiyctTLdPd2f9rzvJviU&m=W0urqJnKjjEtHkZ-8SrpVpS_DAh1sqkeZpQhuxz5rPA&s=BtmOJFBbE_9I9EYA3uuo4OM0Sg6zCyRvqrOArZ6ejgg&e=>,
or unsubscribe
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAKBYEG62D5W7XL5OQ5JX5LTVIWPJANCNFSM47K7ALYA&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=HMwrvpNIfGkJhfYgtfzIcE0EiyctTLdPd2f9rzvJviU&m=W0urqJnKjjEtHkZ-8SrpVpS_DAh1sqkeZpQhuxz5rPA&s=DY-oq0qiWpOPoExItWsrZUa7UkWYJouATIYxWi_8BXw&e=>
.
|
When attempting to take snapshots on a filesystem with mmapped files, the kernel will oops and future snapshots will never complete. The kernel generates a warning at mm/memory.c:1549 immediately before the oops.
This is the offending code:
Commenting this code out allows snapshots to proceed without the kernel crashing. I'm not sure whether the resulting snapshot is valid; given that snapshots worked in the past, and earlier kernels did not have this specific code, I suspect that the issue is a regression caused by major changes to the Linux kernel memory management system since NOVA was introduced.
The text was updated successfully, but these errors were encountered: