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

boot-qemu.py: Allow memory value to be customized #114

Merged

Conversation

nathanchance
Copy link
Member

The default memory value for most machines is 512 MB, which is generally sufficient for most use cases, as these machines are usually quick to start up and shutdown. Unfortunately, there are times where the machine may run out of memory when percpu memory allocations are involved along with a large number of cores, which can happen when booting under KVM due to the script's heuristics for selecting a good default for -smp, which depends on the number of cores on the host machine.

Rather than try to adjust the existing heuristics further, allow users to specify a memory value that may be better suited for their machine, just like -smp.

The default memory value for most machines is 512 MB, which is generally
sufficient for most use cases, as these machines are usually quick to
start up and shutdown. Unfortunately, there are times where the machine
may run out of memory when percpu memory allocations are involved along
with a large number of cores, which can happen when booting under KVM
due to the script's heuristics for selecting a good default for '-smp',
which depends on the number of cores on the host machine.

Rather than try to adjust the existing heuristics further, allow users
to specify a memory value that may be better suited for their machine,
just like '-smp'.

Signed-off-by: Nathan Chancellor <[email protected]>
@nathanchance nathanchance merged commit 2cba5d5 into ClangBuiltLinux:main Sep 14, 2023
4 checks passed
@nathanchance nathanchance deleted the allow-custom-mem-val branch September 14, 2023 20:01
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

Successfully merging this pull request may close these issues.

2 participants