From: Radostin Stoyanov <rstoyanov1@gmail.com>
To: Andrei Vagin <avagin@gmail.com>,
criu@lists.linux.dev, Adrian Reber <areber@redhat.com>
Subject: Re: Optimizing C/R Image Format for Kubernetes
Date: Thu, 19 Jun 2025 09:36:27 +0100 [thread overview]
Message-ID: <79e3b655-b856-42f1-8dfa-988512fbf18b@gmail.com> (raw)
In-Reply-To: <CANaxB-wB6GR1mNZb02uK49c-q_Kx4uO5i92gE81iSt9ort_GEQ@mail.gmail.com>
Hi Andrei,
Thank you for investing! I like the idea about "Directly Accessible CRIU
Images". This was also one of the reasons we chose to implement
encryption support directly within the checkpoint/restore operations in
CRIU, rather than encrypting the tar archives. Enabling support for
encryption is an important requirement for the checkpoint/restore
functionality in Kubernetes. I will rebase my patches on the criu-dev
branch and open a pull request.
Best wishes,
Radostin
On 19/06/2025 00:58, Andrei Vagin wrote:
> Hi everyone,
>
> I've been spending the last few days diving into checkpoint/restore
> (C/R) within Kubernetes, specifically focusing on the restore process
> and the current image format.
>
> I found the current container image format to be suboptimal. I've
> examined containerd, and I suspect CRI-O has similar issues.
> Essentially, it's a container image that encapsulates a
> checkpoint-restore archive. Each container start requires multiple
> unpacking steps:
> * Extracting the C/R archive: This yields two tar archives—one for the
> filesystem delta and another for CRIU images.
> * Applying the filesystem delta: We need to mount the container's root
> filesystem, then extract and apply this delta.
> * Restoring the container: Finally, we extract the CRIU images and
> proceed with the restore.
>
> I believe this format, with its nested tar archives, leads to a
> significant amount of time wasted on unpacking, which directly impacts
> performance.
>
> With the growing interest in using C/R to optimize application startup
> time. I've run some experiments. My findings indicate that the current
> image format significantly reduces the benefits of C/R, and in many
> cases, restoring a container from these images is actually slower than
> starting it from scratch.
>
> Here's my vision for an ideal image format for C/R-ed containers:
> * Filesystem Delta as an Overlay Layer: The filesystem delta should be
> treated just like any other container image delta. This means it would
> be specified as one of the overlay layers when a container is mounted.
> * Directly Accessible CRIU Images: Once an image is pulled locally, the
> CRIU images should not be bundled in a tar archive. Instead, they
> should be placed directly in a directory, allowing CRIU to use them
> immediately without any extra extraction steps.
>
> Thanks,
> Andrei
next prev parent reply other threads:[~2025-06-19 8:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 23:58 Optimizing C/R Image Format for Kubernetes Andrei Vagin
2025-06-19 8:36 ` Radostin Stoyanov [this message]
2025-06-19 11:06 ` Adrian Reber
2025-06-20 19:34 ` Andrei Vagin
2025-06-22 11:46 ` Adrian Reber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=79e3b655-b856-42f1-8dfa-988512fbf18b@gmail.com \
--to=rstoyanov1@gmail.com \
--cc=areber@redhat.com \
--cc=avagin@gmail.com \
--cc=criu@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.