老问题了,在170个人的时候就出问题,出现空文章,file tabble overflow
这个不是内存问题,就是文件指针不对。
解决办法:
【 在 ranger@mail.ttn.com.tw (Ranger Lu) 的大作中提到: 】
: On 13 Apr 1998 15:20:09 GMT, NortonNg.bbs@CHS.Dorm10.NCTU.edu.tw
: (scottex) wrote:
: >recompile your kernel with the below setting..
: >/usr/src/linux/include/linux/fs.h: #define NR_FILE 1024
: 请问为什么会这样呢?
sorry.. 1024应该是default值..
把它设大一点..从FireBird2.5xM 版的doc/Read-Linux贴过来..
如果没猜错的话,那个NR_FILE应该是限制了记录open file entry table的大小,
而那时你的file open数大多了..无法记录在该table里,而致file table overflow..
Because your BBS might be heavily accessed, it is wise to modify your kernel
so that it becomes more robust. If your concurrent online users exceed 100,
please perform the following steps:
1. Edit /usr/src/linux/include/linux/fs.h
Increase NR_OPEN from 256 to 1024
Increase NR_FILE from 1024 to 8192
Increase NR_INODE from 3072 to 24576
2. Edit /usr/src/linux/include/linux/tasks.h
Change NR_TASKS from 512 to 2048
Change MAX_TASKS_PER_USER from (NR_TASKS/2) to (NR_TASKS/8)
Change MIN_TASKS_LEFT_FOR_ROOT from 4 to 16
3. Recompile and install the new kernel and restart the machine
【 在 yinj (鹰) 的大作中提到: 】
: 我的bbs服务器是pII300/128M/scsi硬盘, 高峰时170人左右稍感速度下降。
: 当然,是linux , 2.0.36内核。
: 也许是交换区有问题?要不就是外部程序太多?
--
修改:yuhj FROM gateway.hq.prim
FROM gateway.hq.prim