According to Bogdan Taru: While burning my CPU. > > Hi, Frank, > > First of all, I recompiled & installed 2.0.34 last night. That was before I > got your mail. What I did was editing /usr/src/linux/include/linux/fs.h and I > replaced > > #define NR_OPEN 256 > with > #define NR_OPEN 512. You should never have to edit any files for this sort of thing as all this can be alterd in the "proc" filesystem. /proc/sys/kernel is the place to change things. > > Recompiled and installed, and everything works just fine, but a 'cat > /proc/sys/kernel/file-max' gives me 1024. Don't know why... Maybe somebody can > make some light in all this... Thanks, anyway! Because the following are defaults. BLOCK_SIZE 1024 NR_FILE 1024 Like Frank stated change things in /proc/sys/kernel and futher more the sysctl() interface "proc filesystem" is designed for just that reason. I cant realy imagen why a end user should want to change that sort of defaults anyway, unless you defined 256 when you installed Linux, or maybe i am missing something. > > Gevaerts Frank wrote: > > > On Tue, 22 Sep 1998, Bogdan Taru wrote: > > > > > > > > Hi, > > > I recently began to get some error messages about too few file > > > descriptors (256). Where can I change this number (to 1024, for example)? > > > I guess in the Linux kernel, but where? > > > > In a recent kernel, (2.0 or later i guess) , try > > "echo 1024>/proc/sys/kernel/file-max" > > I think that should work, but I'm not sure. > > > > Frank > > > > > Have fun, > > > bogdan > > -- > Have fun, > bogdan > > > -- Regards Richard. [EMAIL PROTECTED]
