container2wasm icon indicating copy to clipboard operation
container2wasm copied to clipboard

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

Open TotTheMax opened this issue 2 years ago • 3 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 avatar Oct 10 '23 02:10 TotTheMax

@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 avatar Oct 10 '23 02:10 ktock

@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?

TotTheMax avatar Oct 10 '23 03:10 TotTheMax

@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.

TotTheMax avatar Oct 16 '23 01:10 TotTheMax