Re: Squid seems to "HANG UP"!

From: Sarah Rodriguez <list@dont-contact.us>
Date: Thu, 16 Sep 1999 00:42:42 +0800

Hi again Michael!

I tried to make some research on the file descriptor thing .. and i came out
with your site at http://wwwcache.ja.net/FAQ/FAQ-2.html ... and you
mentioned that hopefully linux kernels higher that 2.2.1 should already
include the alan cox's patches. My kernel is 2.2.6 ... does it? Also my
squid's version is 2.2.STABLE4

I checked my src files and found the following:

posix_types.h : __FD_SETSIZE 1024
fs.h : NR_OPEN 1024 (note: could not find INR_OPEN just NR_OPEN)
types.h (under /usr/include/gnu) : __FD_SETSIZE 256

I also checked my files in /proc/sys/fs directory:

file-max : 4096
inode-max : 8192
super-max : 256

Below is a snip from my cache.log .... as observed, squid can detect 1024
file descriptors.

1999/09/15 16:44:51| Starting Squid Cache version 2.2.STABLE4 for
i586-pc-linux-
gnu...
1999/09/15 16:44:51| Process ID 107
1999/09/15 16:44:51| With 1024 file descriptors available
1999/09/15 16:44:51| helperOpenServers: Starting 8 'dnsserver' processes
1999/09/15 16:44:51| Unlinkd pipe opened on FD 17
1999/09/15 16:44:51| Swap maxSize 2048000 KB, estimated 157538 objects
1999/09/15 16:44:51| Target number of buckets: 3150
1999/09/15 16:44:51| Using 8192 Store buckets, replacement runs every 10
seconds
1999/09/15 16:44:51| Max Mem size: 16384 KB
1999/09/15 16:44:51| Max Swap size: 2048000 KB
1999/09/15 16:44:51| Rebuilding storage in Cache Dir #0 (DIRTY)
1999/09/15 16:44:51| Set Current Directory to /export/squid/cache
1999/09/15 16:44:51| Loaded Icons.
1999/09/15 16:44:51| Accepting HTTP connections on port 8085, FD 40.
1999/09/15 16:44:51| Accepting ICP messages on port 3130, FD 41.
1999/09/15 16:44:51| Ready to serve requests.
1999/09/15 16:44:58| 65536 Entries read so far.
1999/09/15 16:44:59| Done reading Cache Dir #0 swaplog (76780 entries)
1999/09/15 16:44:59| Finished rebuilding storage disk.
1999/09/15 16:44:59| 76780 Entries read from previous logfile.
1999/09/15 16:44:59| 0 Entries scanned from swap files.
1999/09/15 16:44:59| 0 Invalid entries.
1999/09/15 16:44:59| 0 With invalid flags.
1999/09/15 16:44:59| 76780 Objects loaded.
1999/09/15 16:44:59| 0 Objects expired.
1999/09/15 16:44:59| 0 Objects cancelled.
1999/09/15 16:44:59| 0 Duplicate URLs purged.
1999/09/15 16:44:59| 0 Swapfile clashes avoided.
1999/09/15 16:44:59| Took 8 seconds (9597.5 objects/sec).
1999/09/15 16:44:59| Beginning Validation Procedure
1999/09/15 16:44:59| 65536 Entries Validated so far.
1999/09/15 16:44:59| Completed Validation Procedure
1999/09/15 16:44:59| Validated 76780 Entries
1999/09/15 16:44:59| store_swap_size = 589304k
1999/09/15 16:44:59| storeLateRelease: released 0 objects

Hope this helps ... so that you or someone may help me.

Finally ... my cache.log seems not log anything during the times when the
server doesn't respond to any request .... the clients just poll (ip of my
proxy appears on the lower-left corner of the browser) until finally issuing
a pop-up error indicating server connection error.

Thanks again for any help that you can extend.

Sarah

Systems Administrator
DBIT Systems, Inc., Philippines
sarah_rodriguez@consultant.com
Received on Wed Sep 15 1999 - 10:58:47 MDT

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