Re: [squid-users] File Descriptors causing an issue in OpenBSD

From: Tek Bahadur Limbu <teklimbu@dont-contact.us>
Date: Thu, 09 Aug 2007 22:51:01 +0545

Preetish wrote:
> Hi Everybody
>
> I have recompiled Squid the way i saw in one of the how to. this is what i did
>
> 1)I uninstalled Squid
> 2)
> #ulimit -HSn 8192
> #then recompiled squid with --with-maxfd=8192
> then in my starting squid script i have added ulimit -HSn 8192
>
> But still it shows the same number of file descriptors
> File descriptor usage for squid:
> Maximum number of file descriptors: 1024
> Largest file desc currently in use: 939
> Number of file desc currently in use: 929
> Files queued for open: 1
> Available number of file descriptors: 94
> Reserved number of file descriptors: 100
> Store Disk files open: 19
> IO loop method: kqueue
>
> There is something fishy about it coz my cache is only 1.1G . and
> moreover there is a file squid.core in my /etc/squid and i do not
> understand its porpose. i searched for it online but still i did
> understand it. Is my squidclient giving me stale results. I had even
> cleaned the cache before reinstalling squid. Is there some different
> way to increase the file descriptors in OpenBSD. Kindly Help.

Hi Preetish,

On a Linux box, that should have worked right away. I assume that they
should also work for BSD boxes too. By the way, as Henrik mentioned, did
you verify the binary run /path/to/sbin/squid -v

What do you get when you issue the following 2 commands:

limits

and

ulimit -n

On your OpenBSD machine, I was wondering why your file descriptors is
only 1024 in the first place.

On BSD systems, I think increasing the following sysctl tunables might
help in general for a busy machine:

kern.maxfiles
kern.maxfilesperproc

Set those values to say 8192 or higher and save it in either your
/boot/loader.conf or /etc/sysctl.conf in case of a reboot.

Hope it helps.

Thanking you...

>
> Regards
> Preetish
>
>
>

-- 
With best regards and good wishes,
Yours sincerely,
Tek Bahadur Limbu
(TAG/TDG Group)
Jwl Systems Department
Worldlink Communications Pvt. Ltd.
Jawalakhel, Nepal
http://www.wlink.com.np
Received on Thu Aug 09 2007 - 11:06:41 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT