免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2221 | 回复: 2
打印 上一主题 下一主题

[SCO UNIX] ask question : Set UNIX kernel parameters ? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-18 21:51 |只看该作者 |倒序浏览
我在安装TeMIP V4.0的时候要设置下列系统参数,怎么设置,是在/etc/sysconfigtab文件么
是要信添加,还是修改原来的entry,请指教!
Table 1-4 Setting the UNIX Kernel Parameters Parameter  Recommendation  Recommended Value for Server Products (FS or AM/FM)  Recommended Value for PM Client  Comments  
per-proc-data-size  Must be set to the value of max-per-proc-data-size  -  -  Default value for max-per-proc-data-size is system dependent and provided by Tru64 UNIX.  
per-proc-stack-size  Must be set to the value of max-per-proc-stack-size  -  -  Default value for max-per-proc-stack-size is system dependent and provided by Tru64 UNIX.  
maxusers  Greater or equal to  512  256  -  
max-proc-per-user  Greater or equal to  256  256  -  
max-threads-per-user  Greater or equal to  4096  2048  -  
vm-vpagemax  Greater or equal to  65536  65536  -  
shm-max  Greater than the size chosen for the TeMIP Event Pool  33554432  33554432  Event Pool size at installation time is 2MB. This value has to be increased in most configurations. Refer to Section 5.8 for further details.  
shm-min  Equal to  1  1  -  
shm-mni  Greater or equal to  128  128  -  
shm-seg  Greater or equal to  64  64  -  
sem-mni  Greater or equal to  256  64  For servers in very large production environments, the proposed value may not be suitable. In such cases, apply the following formula: number of active OC + number of Logs + number required by other applications on the system.  
sem-msl  Greater or equal to  128  32  -  


Further details about Tru64 UNIX kernel parameters can be found in the Compaq Tru64 UNIX System Configuration and Tuning documentation.

另外我安装了系统之后,系统要我提供unix 许可认证书,我现在手里还没有,这个怎么在license server中加入,或使用,做应用必须用这个么?如果暂时不添加,时候影响应用呢?那位赐教,并且要是有的话,能给我一份么,zhangpiwang@163.net

论坛徽章:
0
2 [报告]
发表于 2003-06-19 23:12 |只看该作者

ask question : Set UNIX kernel parameters ?

自己回复一下,算作赞助
                  Set kernel parameters
1        Command examples
displaying current attribute_value with command examples :
sysconfig -q [subsystem] [attribute_value]
displaying Minimum and Maximum Attribute
         query at run-time
sysconfig -Q [subsystem] [attribute_value]
         configure at run-time
sysconfig -R [subsystem] [attribute_value]
          -C configure at boot time
sysconfig -R [subsystem] [attribute_value]
2        current parameters
2-1        get the current parameter of the runtime environment
proc subsystem :
# sysconfig -q proc | grep  "per-proc-data-size"
per-proc-data-size     = 134217728
max-per-proc-data-size = 1073741824
# sysconfig -q proc | grep per-proc-stack-size
per-proc-stack-size = 2097152
max-per-proc-stack-size = 33554432

# sysconfig -q proc | grep per-user
max-proc-per-user = 64
max-threads-per-user = 256

# sysconfig -q vm | grep vpagemax
vm-vpagemax = 16384

# sysconfig -q ipc | grep shm
shm-max = 4194304
shm-min = 1
shm-mni = 128
shm-seg = 32
# sysconfig -q ipc | grep sem
sem-mni = 16
sem-msl = 25
sem-opm = 10
sem-ume = 10
sem-vmx = 32767
sem-aem = 16384
num-of-sems = 60
   
2-2        configure the system parameters command and stanza file

# /sbin/sysconfigdb –a –f proc.stanza proc
# /sbin/sysconfigdb –a –f vm.stanza  vm
# /sbin/sysconfigdb –a –f ipc.stanza ipc

the stanza file content.
# set the parameter for process
proc :
     per-proc-data-size       = 1073741824
     max-per-proc-data-size   = 1073741824
     per-proc-stack-size      = 2097152
     max-per-proc-stack-size  = 33554432
     max-users                = 512
     max-proc-per-user        = 4096
     max-threads-per-user     = 4096
# set the virtual memory for system
vm   :
     vm-pagemax               = 65536
# set share memory parameter
ipc  :
     shm-max                  = 33554422
     shm-min                  = 1
     shm-seq                  = 64
     sem-mni                  = 256
     sem-msl                  = 128


谢谢大家

论坛徽章:
0
3 [报告]
发表于 2003-06-20 12:16 |只看该作者

ask question : Set UNIX kernel parameters ?

呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP