装入时间参数

只能在初始 STREAMS 装入时间设置装入时间参数。

strload 命令从 /etc/pse_tune.conf 文件中读取参数名称和值。 此文件只能由特权用户修改。 它包含以下格式的参数名称和值:

# Streams Tunable Parameters
#
# This file contains Streams tunable parameter values. 
# The initial values are the same as the default values. 
# To change any parameter, modify the parameter value and
# the next system reboot will make it effective. 
# To change the run-time parameter, use the no command any time.
strmsgsz        0        # run-time parameter
strctlsz        1024     # run-time parameter
nstrpush        8        # load-time parameter
psetimers       20       # run-time parameter
psebufcalls     20       # run-time parameter
strturncnt      15       # run-time parameter
strthresh       85       # run-time parameter, 85% of "thewall"
lowthresh       90       # tun-time parameter, 90% of "thewall"
medthresh       95       # run-time parameter, 95% of "thewall"
pseintrstack    12288    # load-time parameter, (3 * 4096)

初始值与缺省值相同。 如果用户更改了任何值,那么这些值将在下次系统重新引导时生效。 如果系统中不存在此文件,或者此文件为空,那么 strload 命令不会失败,并且所有参数都设置为其缺省值。

load-time 参数如下所示:
描述
nstrpush 指示可以推送到单个 STREAM 的最大模块数。 缺省值为 8。
psetintrstack 指示 STREAMS 在越级运行时允许的中断堆栈大小的最大数目。 有时,当运行 INTBASE 级别以外的进程进入 STREAM 时,它会因为没有足够的中断堆栈大小而迂到堆栈溢出问题。 正确调整此参数可降低堆栈溢出问题的可能性。 缺省值为 0x3000 (十进制 12288)。