³×Æ®¿÷ ºÎÇÏ Å×½ºÆ®
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-12-09 17:27:57
 

<pre>
°¡²û ³×Æ®¿÷ Ä«µå¸¦ Å×½ºÆ® ÇØ¾ß ÇÒ °æ¿ì°¡ Àִµ¥, ÀÌ ¶§ ÃÖ´ë·Î Æ®·¡ÇÈÀ» ÁÖ´Â ¹æ¹ýÀÔ´Ï´Ù.
¿ì¼± ¼ø¼öÇÏ°Ô ³×Æ®¿÷ Æ®·¡Çȸ¸À» ÀÌ¿ëÇÏ¿© ºÎÇϸ¦ Áà¾ß Çϱ⠶§¹®¿¡ disk³ª ±âŸ ´Ù¸¥ IOÀå
Ä¡ÀÇ ¿µÇâÀ» ÃÖ¼ÒÈ­ ÇØ¾ß ÇÕ´Ï´Ù. À̸¦ À§ÇÏ¿© /dev/zero¿Í /dev/null °¡»ó ÀåÄ¡¸¦ ÀÌ¿ë ÇÕ´Ï´Ù.

¿ì¼± Å×½ºÆ® ÇÒ ±â°è¸¦ A¶ó°í ÇÏ°í ±× »ó´ë·Î B¶ó´Â ±â°è¸¦ Áغñ ÇÕ´Ï´Ù. ¹°·Ð B´Â Aº¸´Ù Àû¾îµµ
¸¹Àº ¹êµåÀ§½º¸¦ Áö¿øÇÏ´Â ³×Æ®¿÷ Ä«µå°¡ ÀåÂø µÇ¾î ÀÖ¾î¾ß ÇÏ°ÚÁÒ.

1. A¿Í B ¸ðµÎ rshÀÌ °¡´É Çϵµ·Ï .rhostµîÀ» ¼³Á¤ ÇÕ´Ï´Ù.

2. B·Î root·Î±ä ÇÏ¿© ´ÙÀ½ ¸í·ÉÀ» ½ÇÇà ÇÕ´Ï´Ù.

# dd if=/dev/zero | rsh A dd of=/dev/null &

ÃÖ´ëÀÇ ºÎÇϸ¦ ÁÖ±â À§ÇØ À§ ¸í·ÉÀ» µÎ ¼¼¹ø ¹Ýº¹ ÇÕ´Ï´Ù.

3. A·Î ·Î±ä ÇÏ¿© netstat -i ¸í·ÉÀ¸·Î Æ®·¡ÇÈÀ» È®ÀÎ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.

# netstat -i 1
input le0 output input (Total) output
packets errs packets errs colls packets errs packets errs colls
825933 0 606554 0 0 853023 0 633644 0 0
730 0 366 0 0 730 0 366 0 0
848 0 427 0 0 848 0 427 0 0
815 0 413 0 0 815 0 413 0 0
849 0 425 0 0 849 0 425 0 0
868 0 436 0 0 868 0 436 0 0
862 0 432 0 0 862 0 432 0 0

À§ÀÇ °á°ú 10Mbps ÀÎÅÍÆäÀ̽ºÀÎ le0 ÀÇ in + out ÆÐŶÀº ÃÊ´ç Æò±Õ ¾à 1300°³ Á¤µµÀÌ°í
ÀÌ°ÍÀº 1300 * 1500Bytes (MTU) = 1.95MBytes/s °¡ µÇ°Ú³×¿ä. À̸¦ ´Ù½Ã bps·Î ¹Ù²Ù¸é
15.6Mbps °¡ µÇ°í full duplexÀ̹ǷΠ±¦ÂúÀº throughput À̶ó°í ÇÒ ¼ö ÀÖ½À´Ï´Ù.

4. È®ÀÎÀÌ ³¡³µÀ¸¸é B¿¡ ½ÇÇà µÇ°í ÀÖ´ø ¹é±×¶ó¿îµå ÀÛ¾÷À» kill ¸í·ÉÀ¸·Î Á¾·á ½Ãŵ´Ï´Ù.


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦