crosvm/vm_memory/Cargo.toml
Frederick Mayle 7eb27dd45b vm_memory: support lz4 compression for RAM snapshot
RAM snapshot size and overall snapshot time for a basic ubuntu VM right
after login:

  * no compression:  619M 0.8s
  * lz4 compression: 175M 1.2s

BUG=b:320753724
TEST=crosvm snapshot take --compress-memory /tmp/crosvm-snapshot /tmp/crosvm-control

Change-Id: I5dff9fe8744847fea872ad78347ac5f7d8b957e3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5190788
Reviewed-by: Elie Kheirallah <khei@google.com>
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
2024-03-08 22:51:26 +00:00

24 lines
538 B
TOML

[package]
name = "vm_memory"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"
include = ["src/**/*", "Cargo.toml"]
[dependencies]
anyhow = "1.0.32"
cfg-if = "1.0.0"
cros_async = { path = "../cros_async" }
data_model = { path = "../common/data_model" }
libc = "*"
lz4_flex = "0.11"
base = { path = "../base" }
bitflags = "2.2.1"
remain = "*"
serde = { version = "1", features = [ "derive" ] }
serde_json = "*"
thiserror = "*"
zerocopy = { version = "0.7", features = ["derive"] }
[dev_dependencies]
tempfile = "3"