hpux的nfile

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

在大型系统的使用中,我们会遇到这样的错误,由于系统报错table full error而引起了oracle数据库宕机。这种错误的引起是由于nfile值太小的缘故。

看看hpdoc的解释:nfile defines the maximum number of files that can be open simultaneously, system-wide, at any given time.

乍看似乎是我们看得见的文件打开数,其实不是,看得见的是nofile参数来管理的。

It is the number of slots in the file descriptor table. Be generous with this number because the required memory is minimal, and not having enough slots restricts system processing capacity.

nfile缺省值的计算公式如下:((16*(Nproc+16+MaxUsers)/10)+32+2*(Npty+Nstrpty)

那么这个值应该设置成多大呢?

优先考虑根据sar -v的结果来看,适当增加。观察一周左右,用lsof看它实际占用了多少。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航