ktock / container2wasm

Container to WASM converter

Home Page:https://ktock.github.io/container2wasm-demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Great project! How to Adjust Memory and File Systems in Linux?

TotTheMax opened this issue · comments

/ # free -h
total used free shared buff/cache available
Mem: 112.5M 9.3M 55.5M 25.4M 47.7M 73.7M
Swap: 0 0 0

@TotTheMax VM memory size can be changed by the flag VM_MEMORY_SIZE_MB (e.g. c2w --build-arg VM_MEMORY_SIZE_MB=256 alpine:3.18 /tmp/out2/out.wasm). No runtime flag is provided as of now. Please share your detailed usecase so that we can work on adding the necessary configuration options.

@ktock
Hello, my scenario is that I want to run my own CLI within a Linux environment embedded in a browser's WebAssembly (Wasm). Currently, the default configuration is slow to use, and I feel the need to increase the memory and disk size. Are there any measures to improve performance?

@ktock
Hello, increasing the '--build-arg VM_MEMORY_SIZE_MB' parameter didn't resolve my issue. Running a Go binary within Alpine is quite slow. Do you have any other build parameters or solutions for this? I appreciate your assistance.