如何/etc/system中的descriptors参数,我需要的是永久的实现,需要设置成1024,我在csh中,使用limit descriptors 1024后,一退出该会话后,再重新登陆,有变成默认的了! ( 版本7) 现在有没有好的办法,只实现一个用户下的环境,最好不要重起机器!
race 回复于:2003-12-12 23:57:05
可以参考Solaris Tunable Parameters Reference Manual
docs.sun.com可以下载
dw1234 回复于:2003-12-16 11:35:43
文档我已经看过了,写得不是很细,能不能给出个例子?
另外,如果要limit descriptors 4096 是否需要重新起机器?
如果我从该会话结束后,是否limit就失效了?
能不能给个正面的答复? 谢谢!
race 回复于:2003-12-16 11:40:07
没做过这些修改,l单独使用应该立即生效,修改etc/system必须启动
laoxia 回复于:2003-12-16 11:55:58
两种方式:
1。把 ulimit -n 1024 在那个进程的起动脚本中(在/etc/rc#.d下)。如此只改动一
个某一具体进程的fd限制。
2。在/etc/system里设set rlim_fd_cur=1024 然后重起机器。这样改变整个系统的
fd限制。
laoxia 回复于:2003-12-16 11:59:40
[size=18]Solaris Kernel Tuning[/size]
sysdef -i reports on several system resource limits. Other parameters can be checked on a running system using adb -k :
[color=red]adb -k /dev/ksyms /dev/mem
parameter-name/D
^D (to exit) [/color]More information on kernel tuning is available in Sun's online documentation.
[color=red]maxusers[/color]
The maxusers kernel parameter is the one most often tuned. By default, it is set to the number of Mb of physical memory or 1024, whichever is lower. It cannot be set higher than 2048.
Several kernel parameters are set when maxusers is set unless otherwise overridden by the /etc/system file. Some of these formulas differ between different versions of Solaris:
[color=red]max_nprocs[/color]: Number of processes = 10 + (16 x maxusers)
[color=red]ufs_ninode[/color]: Inode cache size = (17xmaxusers)+90 (Solaris 2.5.1) or 4x(maxusers + max_nprocs)+320 (Solaris 2.6-8). See the Disk I/O page for more information.
[color=red]ncsize[/color]: Name lookup cache size = (17xmaxusers)+90 (Solaris 2.5.1) or 4x(maxusers + max_nprocs)+320 (Solaris 2.6-8). See the Disk I/O page for more information.
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 参数 如何 /color color red 回复 max_nprocs 需要 机器 |
注册
个人空间
