mant1988 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

performance on centos? (Issue 307) #433

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This issue is related to 307 (performance on centos?).
I'm using CentOS 5.5 (kernel 2.6.18-194.17.1.el5PAE) and Redis 2.2-rc2. The 
problem seems related to epool.

* epoll disabled (src/config.h):

# redis-benchmark -n 100000 -q
PING: 114285.71 requests per second
PING (multi bulk): 128534.70 requests per second
MSET (10 keys, multi bulk): 55959.71 requests per second
SET: 87032.20 requests per second
GET: 128369.70 requests per second
INCR: 93984.96 requests per second
LPUSH: 87565.67 requests per second
LPOP: 100908.17 requests per second
SADD: 123609.39 requests per second
SPOP: 138121.55 requests per second
LPUSH (again, in order to bench LRANGE): 84104.29 requests per second
LRANGE (first 100 elements): 43252.59 requests per second
LRANGE (first 300 elements): 11422.04 requests per second
LRANGE (first 450 elements): 8552.86 requests per second
LRANGE (first 600 elements): 6044.12 requests per second

* epoll enabled:

# redis-benchmark -n 100000 -q
PING: 61162.08 requests per second
PING (multi bulk): 72516.31 requests per second
MSET (10 keys, multi bulk): 55401.66 requests per second
SET: 60277.28 requests per second
GET: 82236.84 requests per second
INCR: 71275.84 requests per second
LPUSH: 68917.98 requests per second
LPOP: 61050.06 requests per second
SADD: 65703.02 requests per second
SPOP: 69637.88 requests per second
LPUSH (again, in order to bench LRANGE): 63011.97 requests per second
LRANGE (first 100 elements): 28153.15 requests per second
LRANGE (first 300 elements): 12687.13 requests per second
LRANGE (first 450 elements): 10542.96 requests per second
LRANGE (first 600 elements): 6571.17 requests per second

Hope it helps.

Original issue reported on code.google.com by ldivi...@gmail.com on 10 Jan 2011 at 8:11

GoogleCodeExporter commented 8 years ago
no, it is not my case (CentOS 5.5):
i got 40k gets on real E5430 @ 2.66GHz
and 60k on virtualbox with 2Ghz CPU limit
and 80k on 2.5 Celeron

i think problem more deep in math or CPU or some CPU instructions

Original comment by john...@gmail.com on 11 Feb 2011 at 6:15