File descriptors usage

From: Alexei V. Novikov <anovikov@dont-contact.us>
Date: Mon, 12 May 1997 17:03:11 +0400 (MSD)

Hi All,
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.
                        Sincerely Yours,
                                Alexei.
Received on Mon May 12 1997 - 06:04:08 MDT

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