그래서 오늘 처음 redis 를 깔아봤는데 생각보다 느린거 같다는 생각이
제가 잘못 했나요 .. 5만건 인서트 해보는데 .. 10초가 넘게 걸리네요 ...
가만보니 벤치 테스트하는 프로그램이 redis-benchmark. 라고 있어서
-
# CentOS 5, Xeon E5520 @ 2.26 GHz (8 cores)
-
[kmarsh@sfc1 redis-1.01]$ ./redis-benchmark -q
-
SET: 149268.66 requests per second
-
GET: 156281.25 requests per second
-
INCR: 142885.72 requests per second
-
LPUSH: 181854.55 requests per second
-
LPOP: 163950.81 requests per second
-
PING: 204102.05 requests per second
-
# Linux, Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz (2 cores)
-
ffx5:~/src/redis-1.01$ ./redis-benchmark -q
-
SET: 126607.59 requests per second
-
GET: 119107.14 requests per second
-
INCR: 107537.63 requests per second
-
LPUSH: 129922.08 requests per second
-
LPOP: 119083.34 requests per second
-
PING: 147073.53 requests per second이런 글들이 있네요 ..그런데 저는.. 3770 을 사용하고 있음에도C:\Program Files\Redis>redis-benchmark.exe -qPING (inline): 21186.44 requests per secondPING: 27397.26 requests per secondMSET (10 keys): 15723.27 requests per secondSET: 20790.02 requests per secondGET: 21598.27 requests per secondINCR: 20080.32 requests per secondLPUSH: 23923.44 requests per secondLPOP: 20161.29 requests per secondSADD: 26525.20 requests per secondSPOP: 19960.08 requests per secondLPUSH (again, in order to bench LRANGE): 19762.85 requests per secondLRANGE (first 100 elements): 15923.57 requests per secondLRANGE (first 300 elements): 12484.39 requests per secondLRANGE (first 450 elements): 8826.12 requests per secondLRANGE (first 600 elements): 7942.81 requests per second위 5520 시스템에 비해서 7배나 느린 속도를 보여주는데 .. 이거 왜그런건가요?심지어 E4600 시스템보다 느리네요..혹시 아시는분 계시면 답변 부탁 드릴게요 ..
윈도우 / 64비트 /메모리 32기가 환경입니다.
-
Á¦´ë·Î redis¸¦ »ç¿ëÇÏ·Á¸é QPI 8.0 GT/s ·¥¼Óµµ 1600À» ¾²¼Å¾ß ÇÕ´Ï´Ù.
DMI¸¦ ¾²´Â ÀÏ¹Ý ½Ã½ºÅÛ¿¡¼´Â ¼ÖÁ÷È÷ ÃßõÇÏ´Â °ÍÀÌ ¾Æ´Õ´Ï´Ù.
http://en.wikipedia.org/wiki/Intel_QuickPath_Interconnect
http://blog.daum.net/knyatom/505
5520ÀÇ °æ¿ì centos 6.4¿¡¼ 7.-8¸¸ Á¤µµ operationÀÌ °¡´ÉÇÏ´Ù°í ³ª¿É´Ï´Ù (Á¦ Àåºñ¿¡¼)
±×·±µ¥, redis´Â 1 instance, 1 core¸¦ »ç¿ëÇϱ⠶§¹®¿¡ Äھ¼öÀÇ ¹ÝÁ¤µµ¸¦ ¶ç¿ö¼ ±× È¿°ú¸¦ ±Ø´ëÈ ÇÕ´Ï´Ù.
¹°·Ð ÇÁ·Î±×·¥¿¡¼ Àß~~~~~~ ó¸®ÇØ¾ß ÇÏÁö¸¸.
qpi Â÷ÀÌ°¡ ¾Æ´Ñ°Í °°½À´Ï´Ù.
Àú ¸ÇÀ§ÀÇ º¥Ä¡°ªÀÌ E5520 ÀÇ º¥Ä¡ °ªÀε¥ À±È£´Ô Àåºñ¿Í Â÷ÀÌ°¡ ÀÖ´Â°Í °°³×¿ä .. ¿Ö ±×·±°É±î¿ä.
Àú´Â °¡Àå ¸¶Áö¸· ¼ýÀÚ. MSET¸¸ º¸°Åµç¿ä. º¹ÀâÇÑ ³ÑÀ̶ó¼.
MSET (10 keys): 65359.48 requests per second
·¥ÀÌ. 1333Mhz ECC/REGÀε¥...
º¥Ä¡ ÀÚ·áÀÇ 5520ÀÇ SETÀÌ 30% ÀÌ»ó ³ôÀº °ÍÀ» º¸¸é (Äھ 8°³¶ó°í Çصµ 1°³¸¸ ¾²´Âµ¥)
µ¥ÀÌÅÍÀÇ ½Å¹æ¼ºÀÌ Á»...
±×·¡µµ, MSETÀÌ ÇöÀúÈ÷ ¶³¾îÁö´Â °ÍÀ» º¸¸é...
xeon °è¿°úÀÇ Â÷ÀÌ+À©µµÈ¯°æ ¶§¹®À̶ó°í ÇØ¾ß ÇÏÁö ¾ÊÀ»±î¿ä?
[root@localhost ~]# redis-benchmark -q
PING_INLINE: 108695.65 requests per second
PING_BULK: 108695.65 requests per second
SET: 108695.65 requests per second
GET: 107526.88 requests per second
INCR: 108695.65 requests per second
LPUSH: 108695.65 requests per second
LPOP: 98039.22 requests per second
SADD: 106382.98 requests per second
SPOP: 106382.98 requests per second
LPUSH (needed to benchmark LRANGE): 107526.88 requests per second
LRANGE_100 (first 100 elements): 43668.12 requests per second
LRANGE_300 (first 300 elements): 15898.25 requests per second
LRANGE_500 (first 450 elements): 11792.45 requests per second
LRANGE_600 (first 600 elements): 9124.09 requests per second
MSET (10 keys): 65359.48 requests per second
redis¸¦ ms ¹öÁ¯À¸·Î ¹Ù²ãº¸¼¼¿ä.
¾î¶² °á°ú°¡ ³ª¿À´ÂÁö.
ms¿¡¼ ÃÖÀûȽÃŲ redis ÀÔ´Ï´Ù.
µ¨ R620ÀÇ E5-2690ÀÇ °æ¿ì¿¡ SETÀÌ ÀúÁ¤µµ ³ª¿À´Âµ¥... 5520À¸·Î Àú·± ¼Óµµ¶ó´Ï...
¸î °÷À» Çغ¸´Ï,
redis ¼Óµµ´Â CPUŬ·°+QPI+Ram ¼Óµµ µîÀÌ º¹ÇÕÀûÀÎ °Í °°½À´Ï´Ù.
±×¸®°í 5520¿¡¼ Àú·¸°Ô ³ª¿À³ª¿ä? ¤¾¤¾ ±Ã±ÝÇϳ׿ä
OS: centos 6.4
CPU: Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
RAM: DDR3 1333 MHz 16G
[root@localhost redis-2.6.10]# redis-benchmark -q
PING_INLINE: 163934.42 requests per second
PING_BULK: 163934.42 requests per second
SET: 166666.67 requests per second
GET: 163934.42 requests per second
INCR: 166666.67 requests per second
LPUSH: 166666.67 requests per second
LPOP: 163934.42 requests per second
SADD: 166666.67 requests per second
SPOP: 163934.42 requests per second
LPUSH (needed to benchmark LRANGE): 166666.67 requests per second
LRANGE_100 (first 100 elements): 70422.53 requests per second
LRANGE_300 (first 300 elements): 26385.22 requests per second
LRANGE_500 (first 450 elements): 19230.77 requests per second
LRANGE_600 (first 600 elements): 14903.13 requests per second
MSET (10 keys): 102040.82 requests per second
redis´Â ¿ÏÀüÈ÷ Ŭ·° »¡ÀÎ °Í °°½À´Ï´Ù.
ÀÌ·± Ȳ´çÇÑ ½ÃÃò¿¡À̼ÇÀÌ... CPU °¡°ÝÀÌ 5¹è°¡ ³Ñ´Âµ¥...
redis ¾²´Â °÷µéÀÌ µ¨ R210-II °°Àº Àåºñ¸¦ ¸¹ÀÌ ¾²´Â°Ô ÀÌÀ¯°¡ ÀÖ¾ú³×¿ä.
ÀÚ·á½Ç¿¡ º¥Ä¡°á°ú¸¦ ¿Ã·Á³õÀ¸¼Ì³×¿ä ^ ^ b
Á» ÀÌ»óÇÑ »óȲÀ̳׿ä.
¿Ã¸®½Å°Å´Â copyÇؼ ÀÚ·á½Ç¿¡ ¿Å°ÜµÎ°Ú½À´Ï´Ù.
µÎ°í º¸¸é¼ »ý°¢À» Á» ÇØ¾ß ÇÒ µí.
CPU: i3-2100
RAM: 8G
redis¹öÀü: redis-2.4.6-setup-64-bit.exe ? Redis 2.4.6 Windows Setup (64-bit)
3770 ¿¡ ´Ù½Ã ¼³Ä¡Çغ¸¼¼¿ä ±×°Å¸»°í´Â ¸ô°Ù³×¿ä ÇìÇò
C:\Program Files\Redis>redis-benchmark -q
PING (inline): 96153.84 requests per second
PING: 112359.55 requests per second
MSET (10 keys): 63694.27 requests per second
SET: 95238.10 requests per second
GET: 100000.00 requests per second
INCR: 97087.38 requests per second
LPUSH: 102040.82 requests per second
LPOP: 99009.90 requests per second
SADD: 98039.22 requests per second
SPOP: 103092.78 requests per second
LPUSH (again, in order to bench LRANGE): 90909.09 requests
LRANGE (first 100 elements): 54945.05 requests per second
LRANGE (first 300 elements): 31545.74 requests per second
LRANGE (first 450 elements): 23640.66 requests per second
LRANGE (first 600 elements): 15576.32 requests per second
Á¡Á¡ ´õ ¹Ì±Ã¼ÓÀ¸·Î...
PING_BULK: 60975.61 requests per second
SET: 50761.42 requests per second
GET: 58823.53 requests per second
INCR: 75757.58 requests per second
LPUSH: 68965.52 requests per second
LPOP: 66666.66 requests per second
SADD: 80000.00 requests per second
SPOP: 95238.10 requests per second
LPUSH (needed to benchmark LRANGE): 88495.58 requests per second
LRANGE_100 (first 100 elements): 47619.05 requests per second
LRANGE_300 (first 300 elements): 20661.16 requests per second
LRANGE_500 (first 450 elements): 6531.68 requests per second
LRANGE_600 (first 600 elements): 7674.60 requests per second
MSET (10 keys): 61349.69 requests per second
hyper-v ¿¡ ¿Ã¶ó°£ vm centos ¿¡¼ Å×½ºÆ® Çغ» º¥Ä¡ÀÔ´Ï´Ù.. À©µµ¿ìº¸´Ü ³ô±ä Çѵ¥ ¸¸Á·½º·´Áö ¾Ê³×¿ä
¹º°¡ i3-2100 ¿¡ ¸íÇÔµµ ¸ø³»¹Ð°Ú³×¿ä..
SET: 20790.02 requests per second
ÀÌ°Å¿¡ ºñÇÏ¸é ¾öû³ Çâ»óÀεí.. i3-2100º¸´Ù ´À¸®Áö¸¸¿ä..ES ½ÃÇÇÀ¯¶ó ±×·²¼öµµ ÀÖÀ»±î¿ä?
Áö±Ý ¼º´ÉÀº 5410 º¸´Ù ¸øÇÒ °Í °°¾Æ¿ä.
´Ù¸¥ ¹º°¡ ÀÌÀ¯°¡ ÀÖÀ» °Í °°½À´Ï´Ù.
PING (inline): 10857.76 requests per second
PING: 11876.48 requests per second
MSET (10 keys): 9861.93 requests per second
SET: 12091.90 requests per second
GET: 9293.68 requests per second
INCR: 10869.57 requests per second
LPUSH: 12330.46 requests per second
LPOP: 11049.72 requests per second
SADD: 11248.59 requests per second
SPOP: 9025.27 requests per second
LPUSH (again, in order to bench LRANGE): 10020.04 requests per second
LRANGE (first 100 elements): 10330.58 requests per second
LRANGE (first 300 elements): 7627.77 requests per second
LRANGE (first 450 elements): 6105.01 requests per second
LRANGE (first 600 elements): 5470.46 requests per second
¿·¿¡ ÀÖ´Â 3820 64G ÄÄÇ»ÅÍ ÀÔ´Ï´Ù .ÀÌ°Ô ¹«½¼ Á¶ÈÀÎÁö...
SETÀÌ 1¸¸2õ´ë¸®³ª...
MS ¼Ò½º·Î ¼³Ä¡ÇØ º¸¼Ì³ª¿ä?
D:\redis-2.6\bin>redis-benchmark.exe -q
PING_INLINE: 89285.71 requests per second
PING_BULK: 92592.59 requests per second
SET: 86206.90 requests per second
GET: 78125.00 requests per second
INCR: 86206.90 requests per second
LPUSH: 87719.30 requests per second
LPOP: 91743.13 requests per second
SADD: 91743.13 requests per second
SPOP: 92592.59 requests per second
LPUSH (needed to benchmark LRANGE): 99009.90 requests per second
LRANGE_100 (first 100 elements): 28901.73 requests per second
LRANGE_300 (first 300 elements): 13605.44 requests per second
LRANGE_500 (first 450 elements): 8460.24 requests per second
LRANGE_600 (first 600 elements): 6666.67 requests per second
MSET (10 keys): 46948.36 requests per second
D:\redis-2.6\bin>systeminfo
È£½ºÆ® À̸§:
OS À̸§: Microsoft Windows 8 Enterprise K
OS ¹öÀü: 6.2.9200 N/A ºôµå 9200
OS Á¦Á¶¾÷ü: Microsoft Corporation
OS ±¸¼º: µ¶¸³ ½ÇÇàÇü ¿öÅ©½ºÅ×À̼Ç
OS ºôµå Á¾·ù: Multiprocessor Free
µî·ÏµÈ ¼ÒÀ¯ÀÚ: Windows User
µî·ÏµÈ Á¶Á÷:
Á¦Ç° ID:
¿ø·¡ ¼³Ä¡ ³¯Â¥: 2013-03-04, 10:31:44
½Ã½ºÅÛ ºÎÆ® ½Ã°£: 2013-07-08, 16:35:55
½Ã½ºÅÛ Á¦Á¶¾÷ü: ASUSTeK COMPUTER INC.
½Ã½ºÅÛ ¸ðµ¨: UX32VD
½Ã½ºÅÛ Á¾·ù: x64-based PC
ÇÁ·Î¼¼¼: ÇÁ·Î¼¼¼ 1°³ ¼³Ä¡µÊ
[01]: Intel64 Family 6 Model 58 Stepping 9 GenuineIntel ~1900Mhz
BIOS ¹öÀü: American Megatrends Inc. UX32VD.214, 2013-01-29
Windows µð·ºÅ͸®: C:\Windows
½Ã½ºÅÛ µð·ºÅ͸®: C:\Windows\system32
ºÎÆà ÀåÄ¡: \Device\HarddiskVolume1
½Ã½ºÅÛ ·ÎĶ: ko;Çѱ¹¾î
ÀÔ·Â ·ÎĶ: ko;Çѱ¹¾î
Ç¥ÁØ ½Ã°£´ë: (UTC+09:00) ¼¿ï
ÃÑ ½ÇÁ¦ ¸Þ¸ð¸®: 10,126MB
»ç¿ë °¡´ÉÇÑ ½ÇÁ¦ ¸Þ¸ð¸®: 2,784MB
°¡»ó ¸Þ¸ð¸®: ÃÖ´ë Å©±â: 11,598MB
°¡»ó ¸Þ¸ð¸®: »ç¿ë °¡´É: 6,252MB
°¡»ó ¸Þ¸ð¸®: »ç¿ë Áß: 5,346MB
ÆäÀÌÁö ÆÄÀÏ À§Ä¡: C:\pagefile.sys
µµ¸ÞÀÎ: WORKGROUP
·Î±×¿Â ¼¹ö: \\
ÇÖÇȽº: ÇÖÇȽº 66°³ ¼³Ä¡µÊ