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

Provide a way to set Multipass CPU and memory #531

Open
mr-cal opened this issue Mar 13, 2024 · 2 comments
Open

Provide a way to set Multipass CPU and memory #531

mr-cal opened this issue Mar 13, 2024 · 2 comments
Labels
Enhancement New feature or request

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Mar 13, 2024

What needs to get done

Provide a way for applications to define the CPU and memory for a Multipass instance.

The number of CPUs could be set by craft-application based on CRAFT_MAX_BUILD_COUNT and CRAFT_MAX_PARALLEL_BUILD_COUNT.

Alternatively, a user could define it with something like snap set snapcraft provider.cpus = <num cpus> and craft-application would pass this value to craft-providers.

I'm not sure how this will get passed to craft-providers, but it will probably be similar to how #191 will pass data about mknod needing to be enabled.

Source: #212

Why it needs to get done

Craft-providers hardcodes Multipass instances to 2 CPU cores and 2GB memory. This make builds slow (or impossible).

@mr-cal mr-cal added the Enhancement New feature or request label Mar 13, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2615.

This message was autogenerated

@lengau
Copy link
Contributor

lengau commented Apr 4, 2024

As a side note: adding too many CPUs to a VM can create its own problems, so we should be careful in that direction too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants