»ç¿ëÀÚ ¸¹Àº À¥¼­¹ö Ä¿³Î ¼ÂÆÃ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-08-20 11:32:29
 

»ç¿ëÀÚ°¡ ¸¹Àº À¥¼­¹ö´Â ÀϽÿ¡ ¸¹Àº »ç¿ëÀÚ°¡ Á¢¼ÓÇÏ°Ô µÇ¸é
À¥¼­¹ö ÀÚü°¡ ºÎÇÏ°¡ (¹ö¹÷^^;) »ý±ä´Ù.
½Ã½ºÅÛÀÇ TCP port¿¡ °ü°è µÇ´Â ¹®Á¦Àε¥ ÀÌ ¹®Á¦´Â
Ä¿³ÎÀ» Á¶Á¤ ÇϹǷμ­ ºÎÇϸ¦ ÁÙÀϼö ÀÖ´Ù.
¸ÕÀú ½Ã½ºÅÛ ¸®¼Ò½ºÀÇ descriptorsÀÇ °¹¼ö¸¦ ´Ã·Á¾ß ÇÑ´Ù.
½Ã½ºÅÛ ±âº» descriptors´Â 64·Î µÇ¾î ÀÖ´Ù.
ÀÌ°ÍÀº »ç¿ëÀÚ°¡ À¥ºê¶ó¿ìÁ®¸¦ ÅëÇØ º¸¿©ÁÙ¼ö ÀÖ´Â ¼­¹öÀÇ ´É·Â¿¡
ÇØ´ç ÇÑ´Ù°í º¸¸é µÈ´Ù.
±× °ªÀº ´ÙÀ½°ú °°ÀÌ /etc/systemÆÄÀÏ¿¡ ¼öÁ¤ÇÏ°í ¸®ºÎÆà ÇÏ¸é µÈ´Ù.

# vi /etc/system
*ident "@(#)system 1.18 97/06/27 SMI" /* SVR4 1.5 */
*
* SYSTEM SPECIFICATION FILE
*

* moddir:
*
* Set the search path for modules. This has a format similar to the
* csh path variable. If the module isn't found in the first directory
* it tries the second and so on. The default is /kernel /usr/kernel
*
* Example:
* moddir: /kernel /usr/kernel /other/modules



* root device and root filesystem configuration:
*
* The following may be used to override the defaults provided by
* the boot program:
*
* rootfs: Set the filesystem type of the root.
*
* rootdev: Set the root device. This should be a fully
* expanded physical pathname. The default is the
* physical pathname of the device where the boot
* program resides. The physical pathname is
* highly platform and configuration dependent.
*
* Example:
* rootfs:ufs
* rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
*
* (Swap device configuration should be specified in /etc/vfstab.)



* exclude:
*
* Modules appearing in the moddir path which are NOT to be loaded,
* even if referenced. Note that `exclude' accepts either a module name,
* or a filename which includes the directory.
*
* Examples:
* exclude: win
* exclude: sys/shmsys



* forceload:
*
* Cause these modules to be loaded at boot time, (just before mounting
* the root filesystem) rather than at first reference. Note that
* forceload expects a filename which includes the directory. Also
* note that loading a module does not necessarily imply that it will
* be installed.
*
* set:
*
* Set an integer variable in the kernel or a module to a new value.
* This facility should be used with caution. See system(4).
*
* Examples:
*
* To set variables in 'unix':
*
* set nautopush=32
* set maxusers=40
*
* To set a variable named 'debug' in the module named 'test_module'
*
* set test_module:debug = 0x13


set rlim_fd_cur=1024
set rlim_fd_max=1024
set pt_cnt=1024


À§ÆÄÀÏ °°ÀÌ Ãß°¡ ÇÏ°í ³ª¸é descriptors °ªÀº 64¿¡¼­ 1024·Î ´Ã¾î ³ª°Ô µÈ´Ù.
È®ÀÎÀº limit¶ó´Â ¸í·É¾î·Î È®ÀÎ ÇÒ¼ö ÀÖ´Ù.

±×ÈÄ Ä¿³Î°ªÀ» ¼öÁ¤ ÇÏ¸é µÈ´Ù.

ºÎÆýÿ¡´Â Ä¿³ÎÀÌ ±âº» °ªÀ¸·Î ¿Ã¶ó ¿À±â ¶§¹®¿¡
ndd¸¦ »ç¿ëÇÑ ½ºÅ©¸³Æ®¸¦ /etc/rc2.d¹Ø¿¡ ³Ö¾î µÎ´Â °ÍÀÌ
ÁÁÀ»°Í °°´Ù.
# vi /etc/rc2.d/S81ndd

#!/bin/sh
ndd -set /dev/tcp tcp_keepalive_interval 120000
ndd -set /dev/tcp tcp_ip_abort_interval 120000
ndd -set /dev/tcp tcp_cwnd_max 65535
ndd -set /dev/tcp tcp_xmit_hiwat 65536
ndd -set /dev/tcp tcp_recv_hiwat 65536
ndd -set /dev/tcp tcp_time_wait_interval 120000

# chmod 755 /etc/rc2.d/S81ndd

ÀÌ·¸°Ô Çϸé À¥À» ÅëÇØ Á¢¼ÓÇÏ´Â »ç¿ëÀÚµéÀÇ TCP½Ã°£À»
ÁÙÀϼö À־ ºÎÇϸ¦ ÁÙÀϼö ÀÖ´Ù ...
¿©±â¿¡¼­ 120000Àº 2ºÐÀ» ³ªÅ¸³½´Ù.


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