newbie: squid dying & filedescriptors

From: Anders Berg <andersb@dont-contact.us>
Date: Tue, 29 Jun 1999 16:04:46 +0100

Hi.

I am currently running a squid 2.2.STABLE2 on a linux/debian 2.1 box with
kernel 2.2.7ac4 as a http-accel. What happends after a while (not after
any regular pattern) is that the squid prosess hangs. It does not die, it
just stops responding on port 80.

After reading a bit about filedescriptors I am beginning to suspect that's
where the problem is, even if I don't get any warnings about it anywhere
in my log files (debug_option ALL,1).

When I start squid it is telling me "With 1024 file descriptors
available", even if my limits.h has "OPEN_MAX 256".

I was just wondering if squid somehow overrides this (because if it
doesn't then it will only have 256 FD to play with!), or if this could be
my problem?

I am also sending you output from my stats.
The uptime was only 26 min. when I wrote this out (because of "dying" on
me), and the traffic was "low" compared to peak hours (at least double
traffic).

As the subject said, I am a "newbie" with the squid system and know that I
could tweak it a LOT more if I only had the time testing and reading
stat outputs, so be nice :)

YS
Anders Berg

Connection information for squid:
        Number of clients accessing cache: 1403
        Number of HTTP requests received: 85892
        Number of ICP messages received: 0
        Number of ICP messages sent: 0
        Number of queued ICP replies: 0
        Request failure ratio: 0.00%
        HTTP requests per minute: 3316.5
        ICP messages per minute: 0.0
        Select loop called: 450525 times, 3.449 ms avg
Cache information for squid:
        Request Hit Ratios: 5min: 91.7%, 60min: 90.1%
        Byte Hit Ratios: 5min: 89.9%, 60min: 84.8%
        Storage Swap size: 24379 KB
        Storage Mem size: 2188 KB
        Storage LRU Expiration Age: 7.00 days
        Mean Object Size: 14.52 KB
        Requests given to unlinkd: 1712
Median Service Times (seconds) 5 min 60 min:
        HTTP Requests (All): 0.00562 0.00562
        Cache Misses: 0.01648 0.01648
        Cache Hits: 0.00562 0.00562
        Near Hits: 0.00000 0.01847
        Not-Modified Replies: 0.00379 0.00379
        DNS Lookups: 0.00000 0.00000
        ICP Queries: 0.00000 0.00000
Resource usage for squid:
        UP Time: 1553.900 seconds
        CPU Time: 290.790 seconds
        CPU Usage: 18.71%
        CPU Usage, 5 minute avg: 16.88%
        CPU Usage, 60 minute avg: 18.69%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 5035
Memory usage for squid via mallinfo():
        Total space in arena: 6185 KB
        Ordinary blocks: 6022 KB 107 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 176 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 162 KB
        Total in use: 6198 KB 100%
        Total free: 162 KB 3%
Memory accounted for:
        Total accounted: 3428 KB
File descriptor usage for squid:
        Maximum number of file descriptors: 1024
        Largest file desc currently in use: 116
        Number of file desc currently in use: 107
        Files queued for open: 0
        Available number of file descriptors: 917
        Reserved number of file descriptors: 100
        Store Disk files open: 1
Internal Data Structures:
          1694 StoreEntries
           425 StoreEntries with MemObjects
           423 Hot Object Cache Items
          1680 Filemap bits set
          1679 on-disk objects
Received on Tue Jun 29 1999 - 09:11:14 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:03 MST