Created
October 22, 2013 14:05
-
-
Save willejs/7101360 to your computer and use it in GitHub Desktop.
enable RPS ec2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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