Provide a way to set Multipass CPU and memory
Metadata
Current evaluation
Enhancement request to allow configuring CPU and memory for Multipass instances in craft-providers. Open for 2.5 years with no implementation or assignee.
Suggested action: keep open
Reason: The issue is a clearly scoped enhancement request (labeled 'Type: Enhancement') that correctly identifies hardcoded defaults in `craft_providers/multipass/_launch.py`. It should remain open in the backlog for future implementation, though it requires prioritization given its age.
Impact:
45
Quick Win:
33.75
Staleness:
70
Complexity:
25
Confidence:
75
Support Request:
0
Issue body
### 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 https://github.com/canonical/craft-providers/issues/191 will pass data about `mknod` needing to be enabled.
Source: https://github.com/canonical/craft-providers/issues/212
### Why it needs to get done
Craft-providers [hardcodes](https://github.com/canonical/craft-providers/blob/35bd3c49f3860a74f7f1f424873908581654d968/craft_providers/multipass/multipass_provider.py#L109) Multipass instances to 2 CPU cores and 2GB memory. This make builds slow (or impossible).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
45
Quick Win:
33.75
Staleness:
70
Complexity:
25
Confidence:
75
Support Request:
0
|
keep open | Enhancement request to allow configuring CPU and memory for Multipass instances in craft-providers. Open for 2.5 years with no implementation or assignee. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
80
Complexity:
40
Confidence:
70
Support Request:
10
|
needs triage | Enhancement request to configure CPU and memory for Multipass instances. Currently hardcoded, causing slow builds. Open for over two years with no maintainer triage, labels, or assignee. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
45
Confidence:
80
Support Request:
10
|
keep open | Feature request to allow configuring CPU and memory for Multipass instances to resolve hardcoded low-resource limits causing slow builds. Currently tracked with maintainer discussion but no active implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
70
Complexity:
25
Confidence:
80
Support Request:
0
|
keep open | Enhancement request to allow configuring CPU and memory for Multipass instances. Currently hardcoded to 2 CPU/2GB, causing slow builds. Last updated April 2024 with internal Jira tracking. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#2365
(confidence 80%)
A related merged PR that updated the default CPU value for Multipass, showing ongoing interest in this area.
Related issues
No related issues found above the similarity threshold.