criu/test/zdtm
Radostin Stoyanov b7b5052e87 test: Cover compressed page restore paths
Existing memory tests do not deliberately produce every compression
storage form or cross compression-specific batch and transport
boundaries. Regressions in zero, LZ4, raw, and mixed handling could
therefore go unnoticed.

Add neutral pages_content workloads and use them through symlinked
per-page and region-compressed variants. The same contents now run
uncompressed in ordinary sweeps, while NO_LZ4 builds skip only the
compressed variants.

Exercise compressible, incompressible, zero, mixed, file-backed, COW,
and exceptional mappings. Keep a large private zero range over nonzero
file contents so automatic restore exercises parallel zero filling when
the host has at least two available CPUs, and cannot pass by leaving an
untouched zero mapping. Size the compressible mapping at 33 MiB so
restore handles one full 32 MiB batch followed by 1 MiB of useful work.
This crosses the batch boundary with enough work to exercise read/decode
overlap. Cover pre-dump, deduplication, lazy pages, stream, direct I/O,
page server, RPC, region boundaries, incremental parent chains, and
repeated batches beyond 32 MiB. Verify restored contents in every case.

Pass both syntaxes for restore-only decompression options through the
ZDTM RPC runner. Exercise automatic concurrency in per-page and region
variants; the remaining variants retain the serial default.

Suggested-by: Andrei Vagin <avagin@google.com>
Assisted-by: Codex:GPT-5
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2026-07-14 10:17:01 +01:00
..
lib zdtm/bpfmap: parse frozen field with SCNu32 2026-04-16 10:41:44 -07:00
static test: Cover compressed page restore paths 2026-07-14 10:17:01 +01:00
transition zdtm: retry pthread_create on EAGAIN in thread-bomb 2026-06-10 12:29:26 +01:00
.gitignore test/zdtm: unify common code 2017-04-02 18:12:10 +03:00
__init__.py zdtm: add --criu-config option 2022-04-28 17:53:52 -07:00
criu_config.py test: replace insecure tempfile.mktemp with mkstemp 2026-06-19 09:01:36 -07:00
Makefile test/zdtm/Makefile: simplify 2017-04-02 18:12:10 +03:00
Makefile.inc zdtm: gcs: add opt-in GCS test support for AArch64 2025-12-07 19:20:00 +01:00