>>Anyone knows (short of using adb on the kernel) where to see the defaults
>>used in the /etc/system file? And what are the available tuning
>>parameters? sysdef lists some, but there seems to be more...
>>For example, it says in the man page of system(4) that maxusers is
>>"a useful tuning parameter"... But what is the default value (seems
>>to be 8, from using adb)? Nowhere in TFM does it seem to have a
>>complete list of those "useful tuning parameters".
>The default value isn't 8. The default value is scaled
it appears the default GENERIC value is 8, pg 116 SunOS 5.2 Administering
Security, Performance, and Accounting.
Quote:>with the amount of memory. The maxusers parameter scales
>a number of other parameters, all of which can be set individually.
the parameters ncallout, ufs_ninode, ncsize, max_nprocs, ndquot, and maxuprc
are affected by maxusers, reference pg 116 and Table 6-1 pg 117.
>One of the most commonly asked parameters:
> set pt_cnt = <n> * number of SysV ptys
the following is a bit of pseudo tty wisdom from bill wisner. none of
this stuff is covered in the manuals/answerbook, go figure. there is
supposed to be man page for pty(4) as given by man xterm(1) but it
"ntpy controls the number of BSD-style compatibility pty devices. These
are only present for compatibility and none of the programs that are part
of the Solaris system as shipped use them. You cannot go above 48 of
these devices in the stock 2.2 release; Sun has issued a patch that corrects
this problem and allows you to configure as many as you want. However,
you must use mknod to manually create the device nodes.
pt_cnt controls the number of pts devices. These are System V pseudo-ttys.
in.telnetd and in.rlogind use these. Any software which was properly written
to work on System V uses these. If you change this number and do a boot -r,
the kernel will build the correct number of device nodes in /dev/pts.
(Note, though, that it will not remove old ones, so if you *lower* pt_cnt
you will have to manually remove the extra device nodes.)"
> set nfs:nfs_portmon = 1 * for increased fileserver security.
the complete list of tunable kernel parameters is obtained by using
/usr/ccs/bin/nm /kernel/unix. /usr/sbin/sysdef -i shows current values
assigned to kernel parameters. reference Appendix A pg 197.