-
Notifications
You must be signed in to change notification settings - Fork 72
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
How to set browser VM specs (cpu mhz / available memory)? #191
Comments
Yes a section of how to modify or parameterize cpu, disk, mem, storage would be very practical step for this project. But perhaps it is just a Docker concern and c2w handles that aspect transparently? |
VM memory size is configurable during conversion by passing
Yes, this is a future plan. |
@ktock thank you very much for you reply! What about the cpu clock speed? Do you think by default the vm is running at its maximal speed? Additionally is it possible to run the vm inside a worker? Ps: loved your talk at Cloud Native very exciting work! |
Tuning hasn't done yet, so maybe there is room for improvement. (e.g. Bochs configuration file is here)
On a browser's web worker, right? Our example runs the container(vm) inside a web worker ( https://github.com/ktock/container2wasm/blob/d05d6977df7a0d51dbc807a893f1854db8960c75/examples/wasi-browser/htdocs/worker.js ).
Thanks! |
@ktock okay thanks for pointing me to the config file.
|
Hi, I am using an alpine image to test nodejs performance with this project.
However when running
cat /proc/cpuinfo
, i getcpu MHz: 14.178
andcat /proc/meminfo
gives a total memory of around 128MB.Is this "normal"? What if I want to allocate let say 4GB of ram allowed by wasm32? What about the CPU, something seems odd with this low mhz, no?
In other words, any way to configure the "specs" of the VM in the browser?
Additionally, do containers have multi-threading support since wasm-thread are a thing and available with emscripten?
The text was updated successfully, but these errors were encountered: