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

Propose RAM default to 2G instead of 8G #189

Merged
merged 1 commit into from
Mar 14, 2021
Merged

Propose RAM default to 2G instead of 8G #189

merged 1 commit into from
Mar 14, 2021

Conversation

sickcodes
Copy link
Owner

Fixes #188 (comment)

I'm not sure if this is a new bug but it's the first time I've seen it, after reading @C9-Dev's comment:

#131 (comment)

This PR changes default RAM to 2000 which is the minimum.

Perhaps in addition, I could add

-e RAM=auto \

This would only be for blind machines... as most users tend to know how much RAM they have, or their server has already.

RAM=${RAM:-$(("$(head -n1 /proc/meminfo | tr -dc '[:digit:]') / 900000"))}000 \
exec qemu-system-x86_64 -m ${RAM} \


Alternative, calc at runtime?

Perhaps
```
-e RAM=auto \
```
```
RAM=${RAM:-$(("$(head -n1 /proc/meminfo | tr -dc '[:digit:]') / 900000"))}000 \
exec qemu-system-x86_64 -m ${RAM} \
```
@bonnebulle
Copy link

Yes, an "auto" option for RAM would make it easier
I am stuck with a 8GO RAM, trying to add some more...
I can't figure how to change a variable on an existing container following this

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.

BUG: RAM won't overallocate, easily fixed, but considering options!
2 participants