Re: [squid-users] how to raise filedescriptors on kernel 2.4

From: Edwin Hernandez <edwin.hernandez@dont-contact.us>
Date: Tue, 18 Jun 2002 16:34:12 +0200

You need to write in directory /root/.bashrc

# .bashrc
#####################
ulimit -n 32768--------------------> this line.....for your case 4096
#########################
# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

You need logout for to take efect.

Second step you write this

/usr/include/bits/types.h to define __FD_SETSIZE 32768 (For your case 4096)

In my case....i have 32768 filedescriptor

File descriptor usage for squid:
        Maximum number of file descriptors: 32768
        Largest file desc currently in use: 15
        Number of file desc currently in use: 12
        Files queued for open: 0
        Available number of file descriptors: 32756
        Reserved number of file descriptors: 100
        Store Disk files open: 0

Regards

> The only thing i see for the kernel 2.4 is to use the command
> ulimit -n 4096 for example , but with this when i compile a squid after
> i got the following messages
> Number of filedescriptors by default FD_SETSIZE 1024
> Number of max filedescriptors we can open 4096
> And when i launch the cachemgr command , the max that i can open for a
squid
> is always 1024 .
> Can you help me , and describes what file i have to change ( in directory
> /proc/sys .
> Any clue is welcome .
>
> Guilhem michel DGCP
>
Received on Tue Jun 18 2002 - 16:31:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:43 MST