Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/59/2.html
Дата изменения: Thu Mar 23 12:38:07 2000
Дата индексирования: Wed Sep 15 04:07:20 2010
Кодировка:

Поисковые слова: р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п
Increasing number of files in system The HyperNews Linux KHG Discussion Pages

Increasing number of files in system

Forum: The Linux Kernel Hackers' Guide
Re: Question Tunable Kernel Parameters?
Keywords: kernel tuning, file handles, Bus error
Date: Sat, 25 Oct 1997 11:19:38 GMT
From: Simon Cooper <simon.cooper@snc-net.demon.co.uk>

Increasing number of open file handles in kernel.

I have successfully increased the number of files on my system (Linux 2.0.30) by editing the following file:

/usr/src/linux/include/linux/fs.h

I increased NR_OPEN to 1024, NB. Don't make it any higher than this as it will break other code in the kernel and your new kernel wont boot !

I also increased NR_INODE to 5000, and NR_FILE to 4096.

I then rebuilt the Kernel (and modules for good measure) and installed the new image.

Note: Its always a good idea to have your original Kernel image available. I installed a boot block in my MBR using lilo, and added an entry for my original kernel I named vmlinux.safe.

For my root system on /dev/hda2 I added the following lines to my existing /etc/lilo.conf

image=/vmlinux.safe image=linuxS root=/dev/hda2


Messages

1. None: Increasing number of open files parameter by Simon Cooper newest