Skip to content

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