mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
Since #3022 restore reads the pages image with O_DIRECT unconditionally. That helps a cold or cross-host restore, but on a same-host restore it bypasses the still-warm cache and reads from disk, which made maps04 much slower (#3053). Add an --image-io-mode option to select the pages-image I/O method: writeback (default) keeps the buffered behaviour, direct uses O_DIRECT. It applies to both dump and restore and can be set on the command line or over RPC. Gate the restore side at the probe's call sites: open_page_read_at() and the restore vma-io builder in mem.c switch the pages fd to O_DIRECT only when direct mode was requested, so writeback keeps reading through the host page cache. The probe itself no longer inspects the mode; as it now runs only on an explicit request, its buffered-fallback log becomes a warning. The dump side follows in the next commit. Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Dan Feigin <dfeigin@nvidia.com> |
||
|---|---|---|
| .. | ||
| c | ||
| pycriu | ||
| .gitignore | ||
| Makefile | ||
| pyproject.toml | ||
| setup.cfg | ||
| setup.py | ||