LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-12-2009, 08:51 AM   #1
methanigai
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Tuning Squid


Hi ,

I am facing some performance issues in squid .

i.e. I have Debian etch with squid,squidguard,shorewall.
Internet is working in normal speed if clients are approx 50 .
If clients are approx 70 -100 it is getting very slow.

I googled for tuning and done the following things,
redirect_children 10
cache_dir ufs /var/spool/squid 1000 16 256
cache_mem 48 MB
pipeline_prefetch on
fqdncache_size 2048
maximum_object_size 8192 KB

Can you please suggest me how can i improve much ?

FYI : We have Leased line .so we are getting constant bandwidth.
We are running the server in desktop HP Compaq with 4GB RAM, Core2Duo

Thanks,
MThanigairajan
 
Old 06-12-2009, 10:21 AM   #2
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
What other services you are running on the server, because you could increase the cache_mem and the maximum_object_size_in_memory to increase the TPC_MEM_HIT if you can spare the ram.

Quote:
GDSF gives priority to smaller objects that have a better chance of getting hit. LFUDA is more like LRU, but employs a dynamic aging mechanism that is said to be more efficient than recent usage. Generally, GDSF produces a higher hit rate, while LFUDA reduces WAN bandwidth use.
Also you can try the cache_replacement_policy heap GDFS instead of the default LFUDA

Check This page and this section

Code:
Ok, that's all for squid configuration.  Now there's one last thing to do to complete the picture.  You need to edit your squid startup script to include the following two lines:

ulimit -HSn 8192 echo 1024 32768 > /proc/sys/net/ipv4/ip_local_port_range

This will raise the file descriptor limit for the squid process, and will open up a ton of IP ports for use by squid.  It won't need quite this many, but better safe than sorry.
That could help. Cheers
 
  


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
squid tuning nima0102 Linux - Server 1 01-05-2009 08:49 AM
squid tuning nima0102 Linux - Server 1 01-05-2009 04:05 AM
Regarding MEMORY TUNING hinetvenkat Linux - General 2 08-19-2005 07:58 AM
squid fine tuning help!!!! veeraabose Linux - Networking 3 03-07-2005 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:40 PM.

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