Re: [squid-users] increase file descriptors

From: Luka Z. Gerzic <stinger@dont-contact.us>
Date: Fri, 4 Apr 2003 13:24:28 +0200

----- Original Message -----
From: <ekefe@freemail.gr>
To: <squid-users@squid-cache.org>
Sent: Friday, April 04, 2003 12:56 PM
Subject: [squid-users] increase file descriptors

>
> Dear list,
>
> by running ./configure I get:
> checking Default FD_SETSIZE value... 1024
> checking Maximum number of filedescriptors we can open... 2048
> checking Default UDP send buffer size... 65535
>
> Does this means that squid is going to use 2048 file descriptors?
> Do I have to do anything more?

If you like to increase filedes. on your system, edit :

ls -la /usr/include/bits/types.h
-rw-r--r-- 1 root root 4382 Mar 26 17:01
/usr/include/bits/types.h

Find :

/* Number of descriptors that can fit in an `fd_set'. */
#define __FD_SETSIZE 1024

Change to:

/* Number of descriptors that can fit in an `fd_set'. */
#define __FD_SETSIZE 8192

Then on clean source run configure script. Good idea is to do ulimit
as folows: ulimit -HSn 8192

then ./configure .....

and you will have :

checking Default FD_SETSIZE value... 8192
checking Maximum number of filedescriptors we can open... 8192

hope this helps...

Best regards,
Luka Z. Gerzic

-----------
D r e n i k N e t w o r k s / B e l g r a d e

Luka Gerzic - System Admin. - DrenikNet, Serbia
Deligradska 19, 11000 Belgrade, SER
office phone:(+381 11) 659 641, 36 13 306
office fax: (+381 11) 3610 331
official web site : http://www.drenik.net/
personal web site : http://stinger.drenik.net/
Received on Fri Apr 04 2003 - 04:24:55 MST

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