Skip to content
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

Optimize stats and rpc #97

Merged
merged 2 commits into from
Oct 11, 2022

Conversation

rst0git
Copy link
Member

@rst0git rst0git commented Oct 6, 2022

We recently introduced support for CRIT in go-criu. However, the linker in the Go toolchain creates statically-linked binaries, including the Go runtime and other information necessary to support dynamic type checks. As a result, when updating Podman to use the latest go-criu version, the auto-generated protobuf binding for all CRIU images are compiled into the Podman binary, significantly increasing its size.

This pull request partially reverts the changes in #87 to allow us to upgrade go-criu without increasing the size of the compiled binaries.

rpc.proto is not an image. It is a protocol that enables RPC
communication with criu-service. Moving rpc in separate package
allow us to avoid importing unnecessary dependencies.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
We recently introduced support for CRIT in go-criu. However, the linker
in the Go toolchain creates statically-linked binaries, including the
Go runtime and other information necessary to support dynamic type
checks. As a result, when updating Podman to use the latest go-criu
version, the auto-generated protobuf binding for all CRIU images are
compiled into the Podman binary, significantly increasing its size.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
@rst0git
Copy link
Member Author

rst0git commented Oct 6, 2022

cc @snprajwal

@rst0git rst0git changed the title Optimize stats rpc Optimize stats and rpc Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants