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

Use RAM=max or RAM=half to suit all machines, dynamically. #206

Merged
merged 3 commits into from
Mar 17, 2021

Conversation

sickcodes
Copy link
Owner

Fixes #197

Reverts #189

[[ "${RAM}" = max ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 900000"))"
[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"

E.g. if you have 32GB of ram:
max = 31
half = 16

@sickcodes
Copy link
Owner Author

ram_test

@sickcodes sickcodes merged commit 9af868d into master Mar 17, 2021
@sickcodes sickcodes deleted the dyanmic-ram-default branch March 17, 2021 21:50
@ViAsmit
Copy link

ViAsmit commented Feb 10, 2022

@sickcodes where to run this command? should I have to run it over a particular directory, or home directory would work?

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.

Increase RAM after creating container
2 participants