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

startup time of runtime-wasmtime shim #704

Open
sangeeta1998 opened this issue Oct 21, 2024 · 5 comments
Open

startup time of runtime-wasmtime shim #704

sangeeta1998 opened this issue Oct 21, 2024 · 5 comments
Labels
wasmtime Anything wasmtime shim related

Comments

@sangeeta1998
Copy link

The startup time of wasm containers (with --runtime=io.containerd.wasmtime.v1 --platform=wasm) for the same container (once in native rust, and once as wasm) although the size of wasm image are much smaller than the native ones, the startup time with the wasmtime shim is much slower.

@Mossaka
Copy link
Member

Mossaka commented Oct 21, 2024

Do you have the startup time comparison between the native and wasm containers?

@sangeeta1998
Copy link
Author

startup_amd64.txt

Do you have the startup time comparison between the native and wasm containers?

@Mossaka
Copy link
Member

Mossaka commented Oct 22, 2024

Just curious - were you using the latest released Wasmtime shim, or using the shim built from the main branch? The latest released wasmtime shim had a bug that slows down the startup time by 1 second, which was fixed in main. I shall publish a new version for the wasmtime shim. Let me know though because that will make a big difference in startup time.

@sangeeta1998
Copy link
Author

sangeeta1998 commented Oct 23, 2024

Yes, I built it from the main branch of runwasi, with something like : cargo build --release --target=x86_64-unknown-linux-gnu --target-dir=./target/ -p containerd-shim-wasmtime (this is from 26 September)

@Mossaka Mossaka added question Further information is requested wasmtime Anything wasmtime shim related and removed question Further information is requested labels Oct 23, 2024
@Mossaka
Copy link
Member

Mossaka commented Dec 12, 2024

Some updates: I am working on adding more benchmarks and traces to the core crate and the Wasmtime shim with a hope that we can gain more insights on the performance of the shim.

@Mossaka Mossaka moved this to Todo in Runwasi 1.0 Dec 12, 2024
@Mossaka Mossaka moved this from Todo to In Progress in Runwasi 1.0 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime Anything wasmtime shim related
Projects
Status: In Progress
Development

No branches or pull requests

2 participants