Re: File descriptors usage

From: Serge Krashakov <sakr@dont-contact.us>
Date: Mon, 12 May 1997 17:32:44 +0400 (MSD)

Alexei V. Novikov <anovikov@heron.itep.ru> wrote:

> I tried to increase the number of file descriptors on my Linux box.
> What was done is the following:
>
> 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 MAX_TASKS_LEFT_FOR_ROOT from 4 to 16
>
> Then I recompile libc with the new headers. Then I run configure script in
> squid directory and receive the following output:
>
> checking Default FD_SETSIZE value... 1024
> checking Maximum number of filedescriptors we can open... 256
>
> What is wrong in this procedure ? Please help ! I'm approaching the moment
> when I'll run out of them.

You should also recompile the kernel to make new setting really working.

Serge Krashakov
Received on Mon May 12 1997 - 06:53:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:10 MST