On Tue, 2004-11-23 at 12:17, Diamond King wrote:
> You still need to insert __FD_SETSIZE in kernel 2.6. i
> guess. Open up the /usr/include/bits/types.h with any
> editor and insert __FD_SETSIZE 8192 at the top of the
> file.
Is there a reason for the line to be not in the file? I'm not
confortable in putting it there because it's system wide.(?)
>
> then run the command, ulimit -HSn 8192 and lastly,
> recompile the squid 2.5. remember that u need to run
> the ulimit -HSn 8192 command at the squid's binary
> directory everytime u want to start the squid
> daemon.cheers!
I've managed to get the Max_file desc to 4096 already. It seems that
doing the ulimit-HSn 4096 at the init script will make it go to 4096. It
won't work with 8192.
>
> -m4-
>
> --- Ow Mun Heng <Ow.Mun.Heng@wdc.com> wrote:
>
> > On Sun, 2004-11-21 at 02:12, Ow Mun Heng wrote:
> > > Need some advice, I can't seem to be able to
> > locate resources which will
> > > help me here.
> > >
> > > I'm building a squid server which will serve a
> > _lot_ of clients. I want
> > > to increase it's max-file-descriptors, much like
> > the Tsunami
> > > (http://www.swelltech.com/).
> > >
> > > I've tried looking for the _FD_SETSIZE_ but am
> > unable to locate it.
> > >
> > > I've tried setting ulimit -HSn 8192 but upon squid
> > startup, I keep
> > > seeing the
> > >
> > > 1024 Max File Descriptors
> > >
> > > My /proc entries
> > > cat /proc/sys/fs/file-max
> > > 50956
> > > cat /proc/sys/fs/inode-nr
> > > 6346 219
> > > cat /proc/sys/fs/file-nr
> > > 645 0 50956
> > >
> > > They seem to be right.
> > >
> > > I've not resorted to re-compiling yet because
> > based on my googling, I
> > > need to change FD_SETSIZE.
> >
> > After reading
> >
> (http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#filedescriptors)
> > I think
> > my kernel 2.6 and this being squid 2.5, I don't need
> > the FD_SETSIZE
> > option.
> >
> > And I think I will try compiling on my own based on
> > those instructions.
> >
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
-- Ow Mun Heng Gentoo/Linux on D600 1.4Ghz CPU kernel 2.6.9-gentoo-r4 Neuromancer 10:30:46 up 1:20, 7 users, load average: 0.50, 0.55, 0.73Received on Wed Nov 24 2004 - 19:34:13 MST
This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:02 MST