Search squid archive

RE: FILE DESCRIPTORS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My /etc/init.d/squid ...I'm doing this already

	#!/bin/bash
	echo 1024 32768 > /proc/sys/net/ipv4/ip_local_port_range
	echo 1024 > /proc/sys/net/ipv4/tcp_max_syn_backlog
	SQUID="/usr/local/squid/sbin/squid"

	# increase file descriptor limits
	echo 8192 > /proc/sys/fs/file-max
	ulimit -HSn 8192

	case "$1" in

	start)
	   $SQUID -s
	   echo '    Squid started'
	   ;;

	stop)
	   $SQUID -k shutdown
	   echo '    Squid stopped'
	   ;;

	esac


________________________________________
From: kabindra shrestha [mailto:shresthakabindra@xxxxxxxxx] 
Sent: Wednesday, February 22, 2006 7:28 PM
To: Gregori Parker
Subject: Re:  FILE DESCRIPTORS

u ve to run the same command "ulimit -HSn 8192" before starting the squid. it is working fine on my server.

>>---------------------------

I've done everything I have read about to increase file descriptors on 
my caching box, and now I just rebuilt a fresh clean squid.  Before I
ran configure, I did ulimit -HSn 8192, and I noticed that while
configuring it said "Checking File Descriptors... 8192".  I even
double-checked autoconf.h and saw #define SQUID_MAXFD 8192.  I thought
everything was good, even ran a "ulimit -n" right before starting squid
and saw 8192!  So I start her up, and in cache.log I see...

2006/02/22 19:05:08| Starting Squid Cache version 2.5.STABLE12 for
x86_64-unknown-linux-gnu...
2006/02/22 19:05:08| Process ID 3657
2006/02/22 19:05:08| With 1024 file descriptors available

Arggghh.

Can anyone help me out?  This is on Fedora Core 4 64-bit

Thanks, sigh - Gregori




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux