Skip to content

Instantly share code, notes, and snippets.

@elebertus
Created April 20, 2012 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elebertus/2426971 to your computer and use it in GitHub Desktop.
Save elebertus/2426971 to your computer and use it in GitHub Desktop.
# Up the kernel's SHMMAX
raisit = execute "raise_tha_roof" do
if ["t1.micro","c1.medium","m1.small"].include? node[:ec2][:instance_type] then
shmmax=1073741824
else
shmmax=17179869184
end
command "sysctl -w kernel.shmmax=#{shmmax}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment