it's a funny scene; i'm using nginx+php+redis architecture; i used webbench to test the website performance; like this: webbench -t60 -c1000
http://10.3.128.3/index.phpbut the page is very slow when i test. And i use redis-cli --latency, i saw the 60-100 avg latency, it's unbelievable.

load average:0.36, php-fpm children:50, http-qps:1663, redis-qps:3300-3400, redis-latency: 8-25
i think the load average is very health, but the http-qps is not fast, so i change the php-fpm children to 200.

load average:0.18, php-fpm children:200, http-qps:1576, redis-qps: 3300-3400, redis-latency: 60-100
when i change the php-fpm children to 200, it have no effect, and the redis-latency is to big!
so i try to change the php-fpm children to small...

load average:8.01, php-fpm children:34, http-qps:4548, redis-qps: 10000-11000, redis-latency: 0-4
what happened! when i change the php-fpm children to 34, the redis-qps is fast, and the http-qps is fast too.
i think the redis latency is the problem. so i try again.

load average:3.94, php-fpm children:35, http-qps:3262, redis-qps: 4000-4500, redis-latency: 0-13
it's unbelievable. just increase 1 php-fpm, have different result. i strace the redis, find the epoll_wait is always appear.

so, is it have some bug in redis use epoll?