Unable to turn on Receive Packet Steering for Amazon Linux on EC2?


#1

As described in this doc http://www.aerospike.com/docs/deploy_guides/aws/recommendations/

I tries to turn on RPS, however I got permission denied error:

sudo echo “f” > /sys/class/net/eth0/queues/rx-0/rps_cpus
-bash: /sys/class/net/eth0/queues/rx-0/rps_cpus: Permission denied

Anything I missed here?

Thanks.


#2

Hi Iming,

The sudo of your command goes only to the echo part, not to the redirection part, hence the error.

The two ways to solve the problem are:

  1. Run the entire command under root prompt

or

  1. Run

    echo f|sudo tee /sys/class/net/eth0/queues/rx-0/rps_cpus


#3

Thanks for pointing out the problem. Your solution works!