-
Notifications
You must be signed in to change notification settings - Fork 617
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
Use the PAGEMAP_SCAN ioctl when it is available #2292
Conversation
0b25e13
to
012e66f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## criu-dev #2292 +/- ##
============================================
- Coverage 70.62% 70.57% -0.05%
============================================
Files 133 132 -1
Lines 33556 33619 +63
============================================
+ Hits 23698 23726 +28
- Misses 9858 9893 +35 ☔ View full report in Codecov by Sentry. |
Hmm, at some moment all kernels we regularly run CRIU tests on will have this |
I had similar thoughts around how to test this. But as it is still marked as draft I was still waiting if tests will be part of this PR. I like the idea of explicitly selecting kerndat features. It does not make too much sense to expose all the options to the users as it might be confusing. But it probably could be helpful in some cases. |
Would not it be cleaner to instead add an ability to read/write/edit kdat cache from crit tool? (Sounds like a simple task for GSOC students or any other newcomers.)
+1 |
Agree, maybe another tool. Unsure about crit - then we would have to save kerndat in protobuf format and might do the same backward-compatibility as criu does. Hopefully, we can avoid keeping/maintaining compatibility as the intended use is testing-only. |
93b941f
to
d2a8244
Compare
Usually, we use injectable faults in such cases. Look at the third patch. |
Looks good. I found this in kernel doc of PAGEMAP_SCAN ioctl:
Should we use PAGE_IS_WRITTEN instead of PAGE_IS_SOFT_DIRTY, as it is called "better-performing"? |
A friendly reminder that this PR had no activity for 30 days. |
It is not so simple. PAGE_IS_WRITTEN requires to register all regions in uffd-s and holds them between pre-dumps. It is a separate task. |
PAGEMAP_SCAN is a new ioctl that allows to get page attributes in a more effeciant way than reading pagemap files. Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This change adds a new injectable fault (135) to disable PAGEMAP_SCAN and fault back to read pagemap files. Signed-off-by: Andrei Vagin <avagin@gmail.com>
No description provided.