Axil S/E-ljy002
1996.3.15
LEE JEONG-YONG
Subject : Tuning Kernel Parameters ( Solaris 2.x)¿¡ °üÇÏ¿©.
DESCRIPTION:
0. Overview
1. Buffer Cache Parameter
2. UFS file System Parameters
3. STREAMS Parameters
4. IPC Parameters
5. TPI Loopback Pseudo-Driver parameters
0. Overview
0.1 Output system definition
Kernel IPC parametersÀ» show
# sysdef -i
0.2 How to change the value of a parameter
1. Enter a line in the /etc/system
set paramter[module_name:variable]=value
2. OK boot -r(System halt»óÅ¿¡¼)
1. Buffer Cache Parameters
parameter | Description
--------------------------------------------------------------------------
bufhwm | 1K bytesÀÇ ´ÜÀ§·Î Ç¥ÇöµÈ buffer cache memory
»ç¿ëÀÇ ÃÖ´ëÇÑ Å©±â¸¦ ³ªÅ¸³½´Ù.
2. UFS file System Parameters
parameter | Description
-------------------------------------------------------------------------
ufs_ninode | inode tableÀÇ ÃÖ´ë Å©±â
(default=max_nprocs+16+maxusers+64)
ncsize | dnlc(directory-name lookup cache) entriesÀÇ ¼ö
(default=max_nprocs+16+maxusers+64)
3. STREAMS Parameters
parameter | Default | Description
------------------------------------------------------------------------
nstrpush | 9 | maximun number of STREAMS pushes allowed
strmsgsz | 0 | »ç¿ëÀÚ°¡ »ý¼ºÇÒ¼ö ÀÖ´Â STREAMS messages¿¡
´ëÇÑ ÃÖ´ë Å©±â
strctlsz | 1024 | ÇÑmessageÀÇ ctl partÀÇ ÃÖ´ëÀÇ Å©±â
sadcnt | 16 | sad devicesÀÇ ¼ö
strthresh | 0 | STREAMS subsystemÀÌ ¼ÒºñÇÒ¼ö ÀÖ´Â dynamic
memoryÀÇ ÃÖ´ëÀÇ ¾ç
4. IPC(Interprocess Communication) Parameters
parameter | Default | Description
------------------------------------------------------------------------
msginfo_msgmap | 100 | messages map¾ÈÀÇ Ç×µéÀÇ ¼ö
msginfo_msgmax | 2048 | ÃÖ´ë message Å©±â
msginfo_msgmnb | 4096 | queueÀÇ ÃÖ´ë bytes
msginfo_msgmni | 50 | mesaage queue identifersÀÇ ¼ö
msginfo_msgssz | 8 | ÇÑ messagesÀÇ segment Å©±â
msginfo_msgtql | 40 | system messages headersÀÇ ¼ö
msginfo_msgseq | 1024 | messages segmentsÀÇ ¼ö( ?<32768 )
------------------------------------------------------------------------
seminfo_semmap | 10 | semphore mapÀÇ Ç×µéÀÇ ¼ö
seminfo_semmni | 10 | semphore identiersÀÇ ¼ö
seminfo_semmns | 60 | system»ó¿¡ semphoresÀÇ ¼ö
seminfo_semmnu | 30 | system»ó¿¡ undo structuresÀÇ ¼ö
seminfo_semmsl | 25 | id¸¶´Ù semaphoresÀÇ ÃÖ´ë ¼ö
seminfo_semopm | 10 | semphore call¸¶´Ù ¿¬»êµéÀÇ ÃÖ´ë ¼ö
seminfo_semume | 10 | process´ç undo entriesÀÇ ÃÖ´ë ¼ö
seminfo_semvmx | 32767 | semphore ÃÖ´ë°ª
seminfo_semaem | 16384 | maximum value for adjustment on exit
-----------------------------------------------------------------------
shminfo_shmmax | 1048576 | maximum shared memory segment size
shminfo_shmmin | 1 | minimum shared memory segment size
shminfo_shmmni | 100 | shared memory identifiersÀÇ ¼ö
shminfo_shmseg | 6 | process´ç segments
-----------------------------------------------------------------------
forceload:sys/semsys
forceload:sys/msgsys
forceload:sys/shmsys
set msgsys:msginfo_variable=value
set semsys:seminfo_variable=value
set shmsys:shminfo_variable=value
5.TPI Loopback Pseudo-Driver parameters
parameter Default Description
------------------------------------------------------------------------------
tune_t_gpgslo | 25 | If freemem < t_getpgslow,the system starts
to steal pages from processes.
If freemem drops below t_gpgslo,the system
wakes up the swapper process.The swapper
will try to free some memory by swapping
processes to disk.
tune_t_fsflushr | 30 | Rate at which fsflush is run, in seconds
tune_t_minarmem | 25 | The minimum available resident(not swappable)
memory needed to avoid deadlock,in pages
tune_t_minasmem | 25 | Theminimum available swappable memory
needed to avoid deadlock,inpages
tune_t_flcker | 512 | active frlocksÀÇ ÃÖ´ëÀÇ ¼ö
putbufsz | 2000 | putchar-bufferÀÇ Å©±â
npty | 48 | Total number of 4.x pseudo-ttys configured
pt_cnt | 48 | Total number of 5.x pseudo-ttys configured
-----------------------------------------------------------------------------
Revision History
Updated by Lee Jeong-Yong on March 15 ,1996