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

Optimize a3p container for low-end computers #159

Open
3 tasks
toliaqat opened this issue May 24, 2024 · 4 comments
Open
3 tasks

Optimize a3p container for low-end computers #159

toliaqat opened this issue May 24, 2024 · 4 comments

Comments

@toliaqat
Copy link
Contributor

toliaqat commented May 24, 2024

The a3p container has become a standard tool for local development. Our getting-started dapps examples utilize this container for building and testing dapps locally. However, a3p is very resource-intensive, consuming significant memory and CPU, which can overwhelm most computers.

  • Reduce the memory required to run a3p.
  • Reduce CPU consumption.
  • Reduce the image size.

Our goal is to minimize the resource requirements for this container so that any new developer, regardless of their resources, can run it on their computer without needing to invest in a high-end laptop.

The issue was originally raised by new contractors, doing DevRel and engineering work, who do not have high-end computers.

@mhofman
Copy link
Member

mhofman commented May 24, 2024

  • Reduce CPU consumption.

I don't believe it's really possible to reduce CPU consumption. We're simply running chain software.

I also doubt we can significantly reduce memory consumption, at least not without impacting performance. The only level I think we have here is the number of vats loaded, but too low of a number will result in the vats getting unloaded and reloaded constantly.

@mhofman
Copy link
Member

mhofman commented May 24, 2024

FWIW, the biggest memory consumption issue is rooted in the use of Docker itself. On all end user systems (Mac / Windows), Docker runs in a VM, which by itself consumes a LOT of memory, and doesn't relinquish it to the host system. If you want to limit memory usage, we need to switch to a "host binary approach" for dapp development, which is out of scope for this repo.

@dckc
Copy link
Member

dckc commented May 24, 2024

... If you want to limit memory usage, we need to switch to a "host binary approach" for dapp development ...

one way to do it is in the wish list:

@dckc
Copy link
Member

dckc commented May 24, 2024

and for the problem, without pre-judging the solution:

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

3 participants