[squid-users] comm_select: select failure: (22) Invalid argument

From: Uros Bizjak <uros.bizjak_at_gmail.com>
Date: Fri, 24 Aug 2012 21:54:14 +0200

Hi,

I recently installed a pre-compiled version (OpenCSW package) of squid
(2.7.STABLE9) on solaris 10.
First I tried running the squid with the default OS file descriptor
limit (256) but it turned out that this limit was set far to low.

So I changed the limit to 4096 and after the restart and some traffic
coming in I got this error:
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 1
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 2
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 3
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 4
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 5
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 6
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 7
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 8
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 9
2012/08/23 22:04:57| comm_select: select failure: (22) Invalid argument
2012/08/23 22:04:57| Select loop Error. Retry 10
FATAL: Select Loop failed!
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.

If I set the limit to 1024 the squid does not terminate but it becomes
very slow when the traffic kicks in...

I noticed some posts regarding the limitation of select() on Solaris
which won't handle more than 1024 FD.

So, I'm wondering, is there any way to set more then 1024 FD in
Solaris 10 to be used by the Squid?
If not, is there any way at all to get a high performance squid to be
used by a few thousand of users on Solaris 10?

Thanks.

Regards,
Uros.
Received on Fri Aug 24 2012 - 19:54:21 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 25 2012 - 12:00:03 MDT