Skip to content

Instantly share code, notes, and snippets.

@willejs
Created October 22, 2013 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willejs/7101360 to your computer and use it in GitHub Desktop.
Save willejs/7101360 to your computer and use it in GitHub Desktop.
enable RPS ec2
### bind different buffers to different cores using multi queue networking
### http://engineering.pinterest.com/post/53467339970/building-pinterest-in-the-cloud
### reduces effects of irq affinity on EC2/Xen
execute "rps_cpu" do
command "echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus"
user "root"
group "root"
not_if "grep 1 /sys/class/net/eth0/queues/rx-0/rps_cpus"
action :run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment