æ¨æ¥ã®è¨äºã§ã
http://d.hatena.ne.jp/ichikaway/20080723/1216806584
ãã³ããã¼ã¯ãã¦ãã¨æ¸ãã¦ãã®ã§ããã®çµæãè¼ãã¾ãã
ãã¹ãç°å¢
ãµã¼ã2å°ãã¯ãã¹ã±ã¼ãã«ã§ç´çµï¼Gigabitã¤ã¼ãµãããï¼ iScsiãµã¼ã ããPentium Dual E2180 2.00GHz ã1G Memory ãSATA 160G HDD(SATA1) 7200rpm ããNIC(Broadcom) CentOS5.1 linux iScsiãµã¼ãããã°ã©ã iScsi Enterprise Target http://sourceforge.net/project/showfiles.php?group_id=108475 iScsiã¯ã©ã¤ã¢ã³ã ããPentium Dual E2180 2.00GHz ã1G Memory ãSATA 320G HDD(SATA2) 7200rpm ããNIC(Broadcom) CentOS5.1 linux iScsiã¯ã©ã¤ã¢ã³ãããã°ã©ã ãããyum install iscsi-initiator-utils ã§ã¤ã³ã¹ãã¼ã«ãããã®
iScsiãµã¼ããã¯ã©ã¤ã¢ã³ãå
±ã«ãOSã®ãã¼ã¿ãããã¦ããé åã¯Software Raid1ãã©ã¼ãªã³ã°ãã¦ã¾ãã
iScsiãµã¼ããæä¾ãããã£ã¹ã¯ã¹ãã¼ã¹ã¯ãRaidæ§æã§ã¯ãªãã¦ãåä½ã®HDDé åãå²ãå½ã¦ã¾ãã
å
·ä½çã«ã¯ã/dev/sda1,/dev/sdb1ãRaid1ã§ã/ããã¦ã³ããã¦ã/dev/sdb2ã®ã¿ã/mnt/hogeã«ãã¦ã³ãï¼Ext3ãã©ã¼ãããï¼
ä»åã¯ãddã³ãã³ãã§ã2Gã®ãã¼ã¿ãä½ã£ã¦ããã®æéãCPUè² è·ãè¨æ¸¬ãã¾ããã
ãdd if=/dev/zero of=output-file bs=1024 count=2000000
iScsiæ¥ç¶ãããåä½ã®ãµã¼ãã§ãã¼ã«ã«ãã¹ãè¨æ¸¬ï¼160G HDD åä½ãã£ã¹ã¯ï¼
ãã¼ã¿æ¸ãè¾¼ã¿é度
ã2048000000 bytes (2.0 GB) copied, 41.3468 seconds, 49.5 MB/s
CPUã®è² è· ã¦ã¼ã¶è² è·ã1%ç¨åº¦ã ã·ã¹ãã è² è·ã15ã20%ç¨åº¦
iscsiçµç±ã®è¨æ¸¬
iscsiã¯ã©ã¤ã¢ã³ããããµã¼ãã®ãã£ã¹ã¯ã«ã2Gã®ãã¡ã¤ã«ãä½æ
ãã®CPUè² è·ãè¨æ¸¬
ãã¼ã¿æ¸ãè¾¼ã¿é度
ã2048000000 bytes (2.0 GB) copied, 42.8023 seconds, 47.8 MB/s
iScsiã¯ã©ã¤ã¢ã³ãå´ã®è² è· ã¦ã¼ã¶è² è·ã1%ç¨åº¦ã ã·ã¹ãã è² è·ã20ã25%ç¨åº¦
iScsiãµã¼ãå´ã®è² è· ã¦ã¼ã¶è² è·ã1%ç¨åº¦ã ã·ã¹ãã è² è·ã20ã25%ç¨åº¦
iScsiæ¸ãè¾¼ã¿é 延
iScsiã®ãã£ã¹ã¯ã«iScsiã¯ã©ã¤ã¢ã³ããããã¼ã¿ãddã§æ¸ãè¾¼ã¿ãæ¸ãè¾¼ã¿å®äºã¡ãã»ã¼ã¸ãåºåãããæã«ãLanã±ã¼ãã«ãæããiScsiçµç±ã®æ¸ãè¾¼ã¿ãåæ¢ãããã
ãã®å¾ãiScsiãµã¼ãããã°ã©ã ãã¨ãã¦ãiScsiã§æä¾ãã¦ããããªã¥ã¼ã ããã¼ã«ã«ããªã¥ã¼ã ã¨ãã¦ãã¦ã³ãããæ¸ãè¾¼ã¾ãããã¼ã¿ã®å®¹éããã§ãã¯ããã
1Gã®ãã¼ã¿ãddã§æ¸ãè¾¼ãã ã¨ããã
iScsiã¯ã©ã¤ã¢ã³ãå®äºæã®ãã¡ã¤ã«å®¹éã¯ã1024000000byteã¨ãªãã
iScsiãµã¼ãå´ã®ãã¡ã¤ã«å®¹éã¯ã1019578368byteã¨ãªã£ãã
ãã¡ã¤ã«ä½æå®äºå¾ãLanã±ã¼ãã«ãæãã¾ã§ã«1ç§ç¨åº¦ããã£ãã®ã§ã1ã2ç§ç¨åº¦ã®ãã¼ã¿æ¸ãè¾¼ã¿é
延ãããã
ãã ããããã¯Linuxã®ã«ã¼ãã«ãè¡ã£ã¦ããWriteãã£ãã·ã¥ã«ãããã®ã¨æãã
ããã°ã©ã å´ã«ã¯ãã¼ã¿æ¸ãè¾¼ã¿å®äºã¨è¦ãããã¦ãå®éã¯ããç¨åº¦ãããã¡ã貯ãã¦ããä¸æ°ã«ãã¡ã¤ã«åºåãã¦ããããã
ã¾ã¨ã
ãã¼ã¿ã®æ¸ãè¾¼ã¿é度ã¯ã2Mbyte/sç¨åº¦é
ããªãã
iScsiçµç±ã®CPUè² è·ã¯ã5%ç¨åº¦ä¸æããã
ãã£ã¨æ©ãHDD(15000rpmç¨åº¦ï¼ã§è¡ãã¨ãCPUè² è·ã¯å¢å ããã¯ãã
ãã ããCPUã®æ§è½ãä¸ããã°åé¡ã«ãªããªãã¨æãã
ä»åã¯iScsiãµã¼ãã¨iScsiã¯ã©ã¤ã¢ã³ãã®1:1æ¥ç¶ã§ãã¹ãããã
ä»å¾ã¯ãè¤æ°iScsiã¯ã©ã¤ã¢ã³ãç°å¢ã§ãGigabitã¹ã¤ãããã¯ããã§ã©ããªããè¦ã¦ã¿ããã