Re: max fd's in linux

From: Brian <signal@dont-contact.us>
Date: Sun, 4 Oct 1998 08:47:09 -0500 (CDT)

On Sun, 4 Oct 1998, Simon Rainey wrote:

> >I have installed the 2.0.35-3kfd patch:
> >
> >constellation:/# cat /proc/sys/kernel/file-nr
> >660
> >constellation:/# cat /proc/sys/kernel/file-max
> >8192
> >
> >
> >yet when i goto compile Squid-2 RELEASE, I get:
> >
> >checking Default FD_SETSIZE value... 4096
> >checking Maximum number of filedescriptors we can open... 256
> >WARNING: 256 may not be enough filedescriptors if your
> > cache will be very busy. Please see the FAQ page
> > http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors
> > on how to increase your filedescriptor limit
> >
> >Do you have to manually go in their and edit the limit? Anyone know what
> >could be going on?
>
> You can get around this by setting the open file limit before running
> configure. Do this with ulimit:
>
> ulimit -n 3000
>
> You also need to add this line to the RunCache script before the line that
> kicks off Squid.

Ok, here is what I have now:

constellation:/usr/src/squid-2.0.RELEASE# ulimit -a
core file size (blocks) 2097151
data seg size (kbytes) unlimited
file size (blocks) 1048576
max locked memory (kbytes) unlimited
max memory size (kbytes) unlimited
open files 3000
pipe size (512 bytes) 8
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 256
virtual memory (kbytes) unlimited

What about hte max user processes? That's not going to be a bottleneck is
it?

>
> SR
>
> -------------------------------------------------------------------------
> Simon Rainey e-mail : srainey@rmplc.net
> Principal Internet Development Engineer tel : +44 1235 823238
> RM Internet for Learning fax : +44 1235 823424
> New Mill House, 183 Milton Park, Abingdon, Oxfordshire, OX14 4SE, England
>

--------------------------------------------------------------------------
Brian Feeny (BF304) | ShreveNet Inc. - Premium Internet Service Provider
Network Administrator | Shreveport, Louisiana - http://www.shreve.net/
signal@shreve.net | Web Hosting, Virtual Domains, Storefronts,
(318)222-2NET x 109 | Database/Web Integration, 56k, ISDN, T1
Received on Sun Oct 04 1998 - 06:48:05 MDT

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