Re: rps testing questions
flat view
From: Eric Dumazet <hidden>
Date: 2011-01-17 09:53:19
Le lundi 17 janvier 2011 à 17:43 +0800, mi wake a écrit :
I do a rps(Receive Packet Steering) testing on centos 5.5 with kernel 2.6.37. cpu: 8 core Intel. ethernet adapter: bnx2x Problem statement: enable rps with: echo "ff" > /sys/class/net/eth2/queues/rx-0/rps_cpus.
bnx2x with one queue only ?
running 1 instances of netperf TCP_RR: netperf -t TCP_RR -H 192.168.0.1 -c -C without rps: 9963.48(Trans Rate per sec) with rps: 9387.59(Trans Rate per sec) I do ab and tbench testing also find there is less tps with enable rps.but,there is more cpu using when with enable rps.when with enable rps ,softirqs is blanced on cpus.
Really ? that seems unlikely with your one flow test, unless you _also_ have hardware IRQS hitting all your cpus. (That would be very bad)
is there something wrong with my test? --
If you test with one flow, RPS brings nothing at all. Better handle the packet directly from the cpu handling the hardware IRQ (and NAPI) You better make sure hardware IRQ are on one cpu, instead of many cpus.