LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2005, 05:40 AM   #1
NuLLiFiEd
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Rep: Reputation: 0
squid hogging all available resources


Hello,

I have installed latest stable version of squid (2.5 stable 12)
on a server with the following specs dual xeon 3.2 ghz, 1gb ram, 4x36.4 gb scsi 15k rpm (raid 4 i think)

When i start squid with the acl's i have defined in squid.conf cpu goes to 99% and memory to about 60% and browsing thru squid is painfull, like 60-80% decrease in browsing and loading of sites.

When i comment out the acls its working just fine (0.2-1.1% cpu and 0.1% mem) and browsing speed is just normal.

These are the acl's that give me the problems (or so i think, because if i comment those out its working just fine):


#acl users src 192.168.0.0/255.255.255.0
#acl magic_words1 url_regex -i 192.168
#delay_pools 2
#delay_class 1 2
#delay_parameters 1 512000/512000 20000/512000
#delay_access 1 allow users

#delay_class 2 2
#delay_parameters 2 -1/-1 -1/-1
#delay_access 2 allow magic_words1
#reply_body_max_size 67108864 deny

#acl hacking1 url_regex "/usr/local/squid/etc/deny/hacking1"
#acl noporn url_regex "/usr/local/squid/etc/deny/noporn"
#acl hacking2 url_regex "/usr/local/squid/etc/deny/hacking2"
#acl porn_deny1 url_regex "/usr/local/squid/etc/deny/porn_deny1"
#acl porn_deny2 url_regex "/usr/local/squid/etc/deny/porn_deny2"
#acl proxy_deny url_regex "/usr/local/squid/etc/deny/proxy_deny"
#acl warez_deny url_regex "/usr/local/squid/etc/deny/warez_deny"
#acl warez_deny2 url_regex "/usr/local/squid/etc/deny/warez_deny2"
acl download2 urlpath_regex -i "/usr/local/squid/etc/denydownload.txt"
acl POST method POST
http_access deny download2
http_reply_access deny download2

#http_access allow noporn
#http_access deny hacking1
#http_access deny hacking2
#http_access deny porn_deny1
#http_access deny porn_deny2
#http_access deny proxy_deny
#http_access deny warez_deny
#http_access deny warez_deny2


What am I doing wrong? Please help if possible, Thank you
 
Old 12-06-2005, 03:51 AM   #2
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Rep: Reputation: 15
well i have same problem but i can't find any solution actully this error squid I/O threads to high and squid not responding to all I/O request squid que conjustion and squid stop responding ..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's hogging all my memory? cdavidson Linux - Newbie 5 03-29-2005 03:15 PM
bittorrent hogging the bandwidth PawnsharK Linux - Software 0 05-23-2004 10:17 AM
esd is hogging soundcard dbkluck Debian 1 09-14-2003 01:30 AM
Suse 8.2 and Susewatcher... hogging resources? Pandemonium Linux - Software 6 07-19-2003 03:34 AM
freenet hogging resources wapcaplet Linux - Software 0 03-25-2003 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration