Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[squid-users] Solaris 8 running out of filedescriptors

0 views
Skip to first unread message

Apostolou, Nicholas [IT]

unread,
Jun 30, 2003, 4:09:47 AM6/30/03
to
Hi All,

What are the recommendations for Solaris 8 (kernel 108528-19),where it is
running out of file descriptors?
There is no information specific for Solaris 8 on the FAQ.
Currently running Squid2.5stable2.

2003/06/30 16:16:06| WARNING! Your cache is running out of filedescriptors

Also what happens when you run out of DNS server processors?
This will go to 32, currently have 25 DNS processors, and I still have more
users to come on this host.

2003/06/30 14:35:28| WARNING: All dnsserver processes are busy.
2003/06/30 14:35:28| WARNING: 25 pending requests queued


Nicholas Apostolou
Unix Systems
Business Technology
Level 15, 2 Park Street
Sydney NSW Australia 2000

Phone: (+612) 82254468
Fax: (+612) 82255404
Mobile: +61 401709007
Email: nicholas....@citigroup.com


Important Information
This message may contain confidential, proprietary or privileged
information. If you are not the intended recipient, please notify the
sender immediately and delete the message from your system. You should not
copy or use it for any purpose, nor disclose its contents to any other
person. E-mail transmission cannot be guaranteed to be secure or
error-free. No guarantee is made that any attachments are virus free. We
reserve the right to monitor all e-mail communications.

Although the information is believed to be reliable, we do not guarantee its
accuracy and it may be incomplete or condensed. All opinions and estimates
constitute our judgement at the date of issue and are subject to change
without notice. Unless stated otherwise, pricing information is indicative
only, subject to change and is not an offer to deal at any price quoted.
Any reference to the terms of executed transactions is preliminary only and
subject to written confirmation.


Marc Elsen

unread,
Jun 30, 2003, 4:15:12 AM6/30/03
to

"Apostolou, Nicholas [IT]" wrote:
>
> Hi All,
>
> What are the recommendations for Solaris 8 (kernel 108528-19),where it is
> running out of file descriptors?
> There is no information specific for Solaris 8 on the FAQ.

http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.4

M.

--

'Love is truth without any future.
(M.E. 1997)

Masood Ahmad Shah

unread,
Jun 30, 2003, 6:19:26 AM6/30/03
to
Would you like to tell us, which solaris version you are using?
Because there are different ways to increase file descriptors in diffirent
version of Solaris....

--

Best Regs,
Masood Ahmad Shah
System Administrator

^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
| * * * * * * * * * * * * * * * * * * * * * * * *
| Fibre Net (Pvt) Ltd. Lahore, Pakistan
| Tel: +92-42-6677024
| Mobile: +92-300-4277367
| http://www.fibre.net.pk
| * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
"All I want is a few minutes alone with the source code for the universe and
a quick recompile."


----- Original Message -----
From: "Apostolou, Nicholas [IT]" <Nicholas....@citigroup.com>
To: <squid...@squid-cache.org>
Sent: Monday, June 30, 2003 1:01 PM
Subject: [squid-users] Solaris 8 running out of filedescriptors


| Hi All,
|
| What are the recommendations for Solaris 8 (kernel 108528-19),where it is
| running out of file descriptors?
| There is no information specific for Solaris 8 on the FAQ.

Adam

unread,
Jun 30, 2003, 1:50:50 PM6/30/03
to
Nicholas.Apostolou wrote:
> What are the recommendations for Solaris 8 (kernel 108528-19),where it is
> running out of file descriptors?
> There is no information specific for Solaris 8 on the FAQ.
> Currently running Squid2.5stable2.

I don't recall exactly where I read it but I am pretty sure you don't want
to do what I 1st did and bump up the current too high - you will just
consume system resources. You can set _max to any number as that doesn't
consume resources until put in use. So what I did was, in the /etc/system
file, the following:
set rlim_fd_cur=2048
set rlim_fd_max=4096

Reboot (of course) and then when compiling squid, I *first* do a make
distclean (I lost a lot of time before Henrik reminded me to do that as the
older values didn't get cleared), and then run my own makesquid file. This
way I don't have to recall all the options I use and sets the ulimit's as
defined in the FAQ. So I have something like this in /home/adam/squid, then
cd to squidVERSION, and run ../makesquidconfig

#!/usr/dt/bin/dtksh
# makesquidconfig
if [[ $CACHE_HTTP_PORT != 99 ]]
then
echo " CACHE_HTTP_PORT needs to be set in your profile to port 99, like so:
CACHE_HTTP_PORT=99; export CACHE_HTTP_PORT"
exit
else
pwd=$(pwd)
squidprefix=${pwd##*/}
ulimit -n 2048
./configure --prefix=/usr/local/${squidprefix} --enable-dlmalloc --enable-as
ync-io --enable-storeio="aufs,diskd,ufs" --enable-removal-policies="heap,lru
" --enable-delay-pools --disable-icmp --enable-cachemgr-hostname=mysquid --e
nable-snmp --disable-ident-lookups --with-pthreads --enable-err-languages="E
nglish Spanish"
fi

> Also what happens when you run out of DNS server processors?
> This will go to 32, currently have 25 DNS processors, and I still have
more
> users to come on this host.

From what I've understood (Henrik's many posts) you probably shouldn't be
compiling in dnsserver - just use your system's default DNS (i.e. I think
dnsserver is deprecated).

hth,

Adam

0 new messages