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

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

Open
TotTheMax opened this issue Oct 10, 2023 · 3 comments
Open

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

TotTheMax opened this issue Oct 10, 2023 · 3 comments

Comments

@TotTheMax
Copy link

/ # 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

@ktock
Copy link
Owner

ktock commented Oct 10, 2023

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

@TotTheMax
Copy link
Author

@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
Copy link
Author

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

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

No branches or pull requests

2 participants