|
|||
1. Overview of Solaris System Tuning 2. Solaris Kernel Tunable Parameters Where to Find Tunable Parameter Information General Kernel and Memory Parameters fsflush and Related Parameters General File System Parameters sun4u or sun4v Specific Parameters Solaris Volume Manager Parameters 4. Internet Protocol Suite Tunable Parameters 5. Network Cache and Accelerator Tunable Parameters A. Tunable Parameters Change History |
Pseudo TerminalsPseudo terminals, ptys, are used for two purposes in Solaris software:
The default number of pseudo-terminals is sufficient for a desktop workstation. So, tuning focuses on the number of ptys available for remote logins. Previous versions of Solaris required that steps be taken to explicitly configure the system for the preferred number of ptys. Starting with the Solaris 8 release, a new mechanism removes the necessity for tuning in most cases. The default number of ptys is now based on the amount of memory on the system. This default should be changed only to restrict or increase the number of users who can log in to the system. Three related variables are used in the configuration process:
pt_cnt has a default value of zero, which tells the system to limit logins based on the amount of memory specified in pct_pctofmem, unless pt_max_pty is set. If pt_cnt is non-zero, ptys are allocated until this limit is reached. When that threshold is crossed, the system looks at pt_max_pty. If pt_max_pty has a non-zero value, it is compared to pt_cnt. The pty allocation is allowed if pt_cnt is less than pt_max_pty. If pt_max_pty is zero, pt_cnt is compared to the number of ptys supported based on pt_pctofmem. If pt_cnt is less than this value, the pty allocation is allowed. Note that the limit based on pt_pctofmem only comes into play if both pt_cnt and ptms_ptymax have default values of zero. To put a hard limit on ptys that is different than the maximum derived from pt_pctofmem, set pt_cnt and ptms_ptymax in /etc/system to the preferred number of ptys. The setting of ptms_pctofmem is not relevant in this case. To dedicate a different percentage of system memory to pty support and let the operating system manage the explicit limits, do the following:
Note that the memory is not actually allocated until it is used in support of a pty. Once memory is allocated, it remains allocated. pt_cnt
pt_pctofmem
pt_max_pty
|
||
|