Re: [squid-users] Re: 3.2.1 file descriptor is locked to 1024?

From: 叶雨飞 <sunyucong_at_gmail.com>
Date: Fri, 17 Aug 2012 02:25:17 -0700

ah, I see, ulimit -HSn does print out a limit of 1024 on my shell, I
thought it was unlimited before. thanks for the information.

On Fri, Aug 17, 2012 at 2:20 AM, Jenny Lee <bodycare_5_at_live.com> wrote:
>
> You said if you use "max_filedescriptors 16384" it is using 16K fds. If you do not use it, it is using your shell's limit which can be increased with the command I gave you.
> Where is the problem adn what are you exactly trying to solve? Put max_filedescriptos 64K in your config and be done with it.
> Jenny
>
> ----------------------------------------
>> From: sunyucong_at_gmail.com
>> Date: Fri, 17 Aug 2012 02:13:48 -0700
>> To: bodycare_5_at_live.com
>> CC: squid-users_at_squid-cache.org
>> Subject: Re: [squid-users] Re: 3.2.1 file descriptor is locked to 1024?
>>
>> told you there's no limit set at all anywhere, set it again won't
>> solve it. it's squid that don't want to use more than 1024 unless told
>> so explicitly in the config.
>>
>> On Fri, Aug 17, 2012 at 2:04 AM, Jenny Lee <bodycare_5_at_live.com> wrote:
>> >
>> > So put it before that, then:
>> > ulimit -HSn 65536; ./squid -f squid.conf
>> > Jenny
>> > ----------------------------------------
>> >> From: sunyucong_at_gmail.com
>> >> Date: Fri, 17 Aug 2012 01:56:59 -0700
>> >> Subject: Re: [squid-users] Re: 3.2.1 file descriptor is locked to 1024?
>> >> To: bodycare_5_at_live.com
>> >> CC: squid-users_at_squid-cache.org
>> >>
>> >> No, I just launch it with ./squid -f squid.conf , no script.
>> >>
>> >> I think this is a problem with default config , it might be
>> >> initialized wrong in the default config.
>> >>
>> >> On Fri, Aug 17, 2012 at 1:09 AM, Jenny Lee <bodycare_5_at_live.com> wrote:
>> >> >
>> >> > In your /etc/rc.d/init.d/squid file, or whatever script is starting squid, put:
>> >> > ulimit -HSn 65536
>> >> > Jenny
>> >> >> From: sunyucong_at_gmail.com
>> >> >> Date: Thu, 16 Aug 2012 20:03:05 -0700
>> >> >> To: squid-users_at_squid-cache.org
>> >> >> Subject: [squid-users] Re: 3.2.1 file descriptor is locked to 1024?
>> >> >>
>> >> >> I found that if I include
>> >> >> max_filedescriptors 16384 in the config, it will actually use the 16384 fds
>> >> >>
>> >> >> if I don't have this line, then it will use 1024, however the document
>> >> >> and source code I can find doesn't say any thing like 1024 at all,
>> >> >>
>> >> >> what might be the reason?
>> >> >>
>> >> >> On Thu, Aug 16, 2012 at 7:31 PM, Yucong Sun (叶雨飞) <sunyucong_at_gmail.com> wrote:
>> >> >> > Here's what I get from mgr:info
>> >> >> >
>> >> >> > File descriptor usage for squid:
>> >> >> > Maximum number of file descriptors: 1024
>> >> >> > Largest file desc currently in use: 755
>> >> >> > Number of file desc currently in use: 692
>> >> >> > Files queued for open: 0
>> >> >> > Available number of file descriptors: 332
>> >> >> > Reserved number of file descriptors: 100
>> >> >> > Store Disk files open: 0
>> >> >> >
>> >> >> >
>> >> >> > and here's the squid -v output
>> >> >> >
>> >> >> > Squid Cache: Version 3.2.1
>> >> >> > configure options: '--disable-maintainer-mode'
>> >> >> > '--disable-dependency-tracking' '--disable-silent-rules'
>> >> >> > '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs'
>> >> >> > '--enable-removal-policies=lru,heap' '--enable-cache-digests'
>> >> >> > '--enable-underscores' '--enable-follow-x-forwarded-for'
>> >> >> > '--disable-translation' '--with-filedescriptors=65536'
>> >> >> > '--with-default-user=proxy' '--enable-ssl' '--enable-ltdl-convenience'
>> >> >> >
>> >> >> > How can I get squid 3.2.1 to use more than 1024 ?
>> >> >> >
>> >> >> > I've verified that system is fine, there's no per user limit either.
>> >> >> >
>> >> >> > # cat /proc/sys/fs/file-max
>> >> >> > 199839
Received on Fri Aug 17 2012 - 09:25:47 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 17 2012 - 12:00:09 MDT