Re: [squid-users] Increasing file descriptors

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 21 Jul 2003 11:35:04 +0200

On Monday 21 July 2003 10.33, you wrote:

> Any ideas on how to set the file descriptors limit,

See the Squid FAQ. It works.

> I have tried using ulimit
> -HSn 8192 in the install section of my squid spec file, before
> running configure.

Good.

> Then I run the following that just restarts
> squid with the new set fd thing:
>
> #!/bin/bash
> PID=`(/bin/ps -d | /bin/grep 'RunCache' | /bin/gawk '{printf $1}')`
> /bin/kill -TERM $PID
> /usr/local/squid/sbin/squid -k kill
> ulimit -HSn 8192
> /usr/local/squid/bin/RunCache &

Why are you using RunCache?

Other than this it looks good.

> 1. Do I even need to set the fd limit in the spec file, or can I do
> it elsewhere?

You can set it anywhere, as long as it is set when the squid built and
before it is started.

> 2. How do I know if squid is actually running with the new fd
> limit?

See cache.log or the cachemgr.

Regards
Henrik
Received on Mon Jul 21 2003 - 03:35:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:13 MST