LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-21-2003, 07:49 AM   #1
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Rep: Reputation: 15
Optimising squid


Hello

If anyone has squid set up for optimal performance, could they please post me their squid.conf file? I am trying to make it so that squid doesn't slow down when someone downloads, on my 600k cable connection.

There are a lot of options in squid.conf, just wanted to compare with someone else who has squid running nicely

Cheers
 
Old 02-21-2003, 10:16 AM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
I am away from my squid servers at the moment. You should post your squid.conf and we'll have a look. There are a few techniques that can speed up squid a bit. Are you experiencing a severe slow down?
 
Old 02-21-2003, 11:06 PM   #3
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Sounds like you need delay pools... Here are some of the more pertinent lines from my squid.conf:

acl all src 0.0.0.0/0.0.0.0
acl Employees src 204.99.99.0/255.255.255.0
acl Multimedia urlpath_regex "/etc/squid/multimedia"
acl local dst 204.99.99.0/24

always_direct allow local
delay_pools 3
#
delay_class 1 1
delay_access 1 allow Multimedia
delay_parameters 1 7500/4000
#
delay_class 2 1
delay_access 2 allow Employees
delay_parameters 2 150000/50000
#
delay_class 3 1
delay_access 3 allow all
delay_parameters 3 20000/10000




the /etc/squid/multimedia file contains:

\.mp2$
\.mp3$
\.mpg$
\.mov$
\.wav$
\.avi$
.... and many more ...

So I'm breaking the delay pools down such that downloading an .mp3 file goes very slow and all others go a bit faster. For instance... Be creative... Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
Optimising FC4 x86 johannlo Fedora 2 07-06-2005 04:29 PM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM


All times are GMT -5. The time now is 08:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration