redis ¼Óµµ Áú¹® µå¸³´Ï´Ù.

   Á¶È¸ 9345   Ãßõ 0    

redis에 관해서 관심있게 보고 있습니다.. 제가 해보고 싶은게 있어서요 .. 

그래서 오늘 처음 redis 를 깔아봤는데 생각보다 느린거 같다는 생각이

제가 잘못 했나요 .. 5만건 인서트 해보는데 .. 10초가 넘게 걸리네요 ... 

가만보니 벤치 테스트하는 프로그램이 redis-benchmark. 라고 있어서 

  1. # CentOS 5, Xeon E5520 @ 2.26 GHz (8 cores)
  2. [kmarsh@sfc1 redis-1.01]$ ./redis-benchmark -q
  3. SET: 149268.66 requests per second
  4. GET: 156281.25 requests per second
  5. INCR: 142885.72 requests per second
  6. LPUSH: 181854.55 requests per second
  7. LPOP: 163950.81 requests per second
  8. PING: 204102.05 requests per second

    1. # Linux, Intel(R) Core(TM)2 Duo CPU     E4600  @ 2.40GHz (2 cores)
    2. ffx5:~/src/redis-1.01$ ./redis-benchmark -q
    3. SET: 126607.59 requests per second
    4. GET: 119107.14 requests per second
    5. INCR: 107537.63 requests per second
    6. LPUSH: 129922.08 requests per second
    7. LPOP: 119083.34 requests per second
    8. PING: 147073.53 requests per second

      이런 글들이 있네요 ..

      그런데 저는.. 3770 을 사용하고 있음에도 
      C:\Program Files\Redis>redis-benchmark.exe -q
      PING (inline): 21186.44 requests per second
      PING: 27397.26 requests per second
      MSET (10 keys): 15723.27 requests per second
      SET: 20790.02 requests per second
      GET: 21598.27 requests per second
      INCR: 20080.32 requests per second
      LPUSH: 23923.44 requests per second
      LPOP: 20161.29 requests per second
      SADD: 26525.20 requests per second
      SPOP: 19960.08 requests per second
      LPUSH (again, in order to bench LRANGE): 19762.85 requests per second
      LRANGE (first 100 elements): 15923.57 requests per second
      LRANGE (first 300 elements): 12484.39 requests per second
      LRANGE (first 450 elements): 8826.12 requests per second
      LRANGE (first 600 elements): 7942.81 requests per second

      위 5520 시스템에 비해서 7배나 느린 속도를 보여주는데 .. 이거 왜그런건가요?
      심지어 E4600 시스템보다 느리네요..
      혹시 아시는분 계시면 답변 부탁 드릴게요 ..

      윈도우 / 64비트 /메모리 32기가 환경입니다.

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
ȸ¿øK 2013-07
e5520Àº QPI°¡ 5.86 GT/sÀÌ°í 3770Àº DMI°¡ 5.0 GT/s Àε¥, ±× Â÷ÀÌ ÀÔ´Ï´Ù.
Á¦´ë·Î 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¸¦ »ç¿ëÇϱ⠶§¹®¿¡ Äھ¼öÀÇ ¹ÝÁ¤µµ¸¦ ¶ç¿ö¼­ ±× È¿°ú¸¦ ±Ø´ëÈ­ ÇÕ´Ï´Ù.
¹°·Ð ÇÁ·Î±×·¥¿¡¼­ Àß~~~~~~ ó¸®ÇØ¾ß ÇÏÁö¸¸.
±èÁ¦¿¬ 2013-07
Àúµµ óÀ½¿¡ qpi Â÷ÀÌ ÀÎÁÙ ¾Ë¾Ò´Âµ¥ . .À§¿¡ º¸½Ã¸é E4600  º¸´Ù ÈÎ ´À¸®°Ô ³ª¿Ô½À´Ï´Ù.
qpi Â÷ÀÌ°¡ ¾Æ´Ñ°Í °°½À´Ï´Ù.

Àú ¸ÇÀ§ÀÇ º¥Ä¡°ªÀÌ E5520 ÀÇ º¥Ä¡ °ªÀε¥ À±È£´Ô Àåºñ¿Í Â÷ÀÌ°¡ ÀÖ´Â°Í °°³×¿ä .. ¿Ö ±×·±°É±î¿ä.
ȸ¿øK 2013-07
5520. 1CPU. 4ÄÚ¾î 8¾²·¹µå ÀÔ´Ï´Ù.
Àú´Â °¡Àå ¸¶Áö¸· ¼ýÀÚ. 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
ȸ¿øK 2013-07
https://github.com/MSOpenTech/redis

redis¸¦ ms ¹öÁ¯À¸·Î ¹Ù²ãº¸¼¼¿ä.
¾î¶² °á°ú°¡ ³ª¿À´ÂÁö.
ms¿¡¼­ ÃÖÀûÈ­½ÃŲ redis ÀÔ´Ï´Ù.
ȸ¿øK 2013-07
º¥Ä¡¸¶Å© ÀÚ·á°¡ Á» ÀÌ»óÇÑ µí ½Í½À´Ï´Ù.
µ¨ R620ÀÇ E5-2690ÀÇ °æ¿ì¿¡ SETÀÌ ÀúÁ¤µµ ³ª¿À´Âµ¥... 5520À¸·Î Àú·± ¼Óµµ¶ó´Ï...

¸î °÷À» Çغ¸´Ï,
redis ¼Óµµ´Â CPUŬ·°+QPI+Ram ¼Óµµ µîÀÌ º¹ÇÕÀûÀÎ °Í °°½À´Ï´Ù.
ÈæÅä 2013-07
Àúµµ À¥¼­¹ö¿¡ redis °¥¾Æ³õ°í ÀÌ·¡Àú·¡ Å×½ºÆ® Çغ¸°í Àִµ¥¿ä. º¥Ä¡ µ¹·Áº¸¸é ¾Æ·¡Ã³·³ ³ª¿É´Ï´Ù.
±×¸®°í 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
     
ȸ¿øK 2013-07
E3-1240ÀÇ º¥Ä¡°¡ E5-2690 º¸´Ù ´õ ³ô³×¿ä.
redis´Â ¿ÏÀüÈ÷ Ŭ·° »¡ÀÎ °Í °°½À´Ï´Ù.
ÀÌ·± Ȳ´çÇÑ ½ÃÃò¿¡À̼ÇÀÌ... CPU °¡°ÝÀÌ 5¹è°¡ ³Ñ´Âµ¥...

redis ¾²´Â °÷µéÀÌ µ¨ R210-II °°Àº Àåºñ¸¦ ¸¹ÀÌ ¾²´Â°Ô ÀÌÀ¯°¡ ÀÖ¾ú³×¿ä.
          
ÈæÅä 2013-07
Çä.. ±×·¯³×¿ä ¿ÏÀü Å©·°»¡
ÀÚ·á½Ç¿¡ º¥Ä¡°á°ú¸¦ ¿Ã·Á³õÀ¸¼Ì³×¿ä ^ ^ b
               
ȸ¿øK 2013-07
Ŭ·°»¡·Î º¸±â¿¡´Â 5520ÀÌ 3770 º¸´Ù º¥Ä¡°¡ ³Ê¹« ³ô°Ô ³ª¿É´Ï´Ù.
Á» ÀÌ»óÇÑ »óȲÀ̳׿ä.

¿Ã¸®½Å°Å´Â copyÇؼ­ ÀÚ·á½Ç¿¡ ¿Å°ÜµÎ°Ú½À´Ï´Ù.
µÎ°í º¸¸é¼­ »ý°¢À» Á» ÇØ¾ß ÇÒ µí.
ÈæÅä 2013-07
OS: win7
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
     
ȸ¿øK 2013-07
2100µµ »ó´çÈ÷ ¼öÄ¡°¡ ³ô³×¿ä. °ÅÀÇ 5520 ¼öÁØÀ¸·Î.
Á¡Á¡ ´õ ¹Ì±Ã¼ÓÀ¸·Î...
±èÁ¦¿¬ 2013-07
PING_INLINE: 60975.61 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 ¿¡ ¸íÇÔµµ ¸ø³»¹Ð°Ú³×¿ä..
     
ȸ¿øK 2013-07
SETÀÌ 5¸¸ÀÌ¸é ³Ê¹« ³·Àºµ¥¿ä?
          
±èÁ¦¿¬ 2013-07
¸®¾ó À©µµ¿ìÀÇ SET°ª

SET: 20790.02 requests per second

ÀÌ°Å¿¡ ºñÇÏ¸é ¾öû³­ Çâ»óÀεí.. i3-2100º¸´Ù ´À¸®Áö¸¸¿ä..ES ½ÃÇÇÀ¯¶ó ±×·²¼öµµ ÀÖÀ»±î¿ä?
               
ȸ¿øK 2013-07
¾Æ¹«¸® ES¶ó°í Çصµ... ÀÌ°Å´Â Á» ½ÉÇѵ¥¿ä?
Áö±Ý ¼º´ÉÀº 5410 º¸´Ù ¸øÇÒ °Í °°¾Æ¿ä.
´Ù¸¥ ¹º°¡ ÀÌÀ¯°¡ ÀÖÀ» °Í °°½À´Ï´Ù.
±èÁ¦¿¬ 2013-07
C:\redis>redis-benchmark -q
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 ÄÄÇ»ÅÍ ÀÔ´Ï´Ù .ÀÌ°Ô ¹«½¼ Á¶È­ÀÎÁö...
     
ȸ¿øK 2013-07
Á¡Á¡ ´õ ÀÌ»óÇØÁö³×¿ä.
SETÀÌ 1¸¸2õ´ë¸®³ª...

MS ¼Ò½º·Î ¼³Ä¡ÇØ º¸¼Ì³ª¿ä?
±èÁ¦¿¬ 2013-07
±×°Å ¾î¶»°Ô ¼³Ä¡ ÇÏ´ÂÁö ¸ô¶ó¼­¿ä ..±×³É zip ¾ÐÃà µÈ ¹öÁ¯À̶û setup ¹öÀü µÑ´Ù Çغôµ¥ ¼öÄ¡´Â ºñ½ÁÇϳ׿ä.
Gleam 2013-07
Á¦ ·ÎÄà ¸Ó½Å¿¡¼­ÀÇ °á°ú ÀÔ´Ï´Ù.
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°³ ¼³Ä¡µÊ


QnA
Á¦¸ñPage 3427/5678
2015-12   1477833   ¹é¸Þ°¡
2014-05   4940976   Á¤ÀºÁØ1
2007-07   5575   ³²±ÃÀϳ²
2017-09   5575   ÁÖŹé
2006-05   5575   ±èÈñÁ¾
2016-12   5575   ÀϷиӽºÅ©
2005-09   5575   ¿ÀÁØÈ£
2006-03   5575   ¼ÛÈ­½Ä
2008-04   5575   °­¼º
2015-07   5575   ±èÁ¦¿¬
2015-11   5576   ¹Ú»ó¹ü
2007-07   5576   ¹Ú±âÇö
2012-05   5576   ½Ç¹ö½ºÅ¸
2005-06   5576   Á¤ÀçÈÆ
2009-06   5576   ±â¿µ
2016-02   5576   susemi
2005-10   5576   ÀÌÈñ¿ø
2011-11   5576   ³ª³Ê¿ì¸®
2005-09   5576   À̽ÂÇö
2005-10   5576   ÀÓ¿µ¼ö
2005-08   5576   ¾ÈâÁØ
2015-02   5576   ggg345