Skip to content

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

Merged
sickcodes merged 3 commits into
masterfrom
dyanmic-ram-default
Mar 17, 2021
Merged

sickcodes merged 3 commits into
masterfrom
dyanmic-ram-default

Conversation

@sickcodes

Copy link
Copy Markdown
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
Copy Markdown
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

ViAsmit commented Feb 10, 2022

Copy link
Copy Markdown

@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