阅 读 文 章

关于虚拟终端数目的修改问题

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(race) | 时间:2007-05-27 | 浏览:人次 ]


前几天laoxia回复的帖子说在/etc/system里,有个pt_cnt是管这个,缺省为48,最大可以达到3844, 一般调到3000就可以了,以上是控制TELNET 和RLOGIN用户数的。
  以前在使用2.6的时候,也遇到过这个问题,远程用户进不去系统,而且系统当时也特别慢,怀疑就是虚拟终端已经达到极限,修改了那个参数就可以登录了。现在工作站数量多了,就不存在很多用户同时登陆的问题了。
  现在找到了关于Pseudo Terminals的详细资料,尤其是soalris8和以前的方法不一样了。有兴趣的可以看一下
《Solaris Tunable Parameters Reference Manual》下载地址
http://docs-pdf.sun.com/816-0607/816-0607.pdf


Pseudo Terminals
Pseudo terminals, ptys, are used for two purposes in Solaris:
 Supporting remote logins by using the telnet, rlogin, or rsh commands
 Providing the interface through which the X Window system creates command
interpreter windows
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 desired 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 and should be changed
only to increase the number or to decrease the default value.
Three related variables are used in the configuration process:
  pt_cnt - Default maximum number of ptys
  pt_pctofmem - Percentage of kernel memory that can be dedicated to pty
support structures
  pt_max_pty - Hard maximum for number of ptys
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. When that threshold is crossed, the
system looks at pt_max_pty. If that has a non-zero value, it is compared to pt_cnt
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 修改 问题 目的 终端 虚拟 关于 回复 可以 ValidationNone

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.