Skip to content

Instantly share code, notes, and snippets.

@roc
Created January 30, 2015 16:51
Show Gist options
  • Select an option

  • Save roc/bfa136dc090dd9a9f879 to your computer and use it in GitHub Desktop.

Select an option

Save roc/bfa136dc090dd9a9f879 to your computer and use it in GitHub Desktop.
6th of your RAM lol
config.vm.provider "virtualbox" do |v|
memory_available = total_memory_usage_in_k = `ps -Ao rss=`.split.map(&:to_i).inject(&:+)
v.memory = memory_available/1000/6
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment