Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-18-2008, 07:24 AM   #1
Registered: Jan 2006
Posts: 159

Rep: Reputation: 16
squid is very slow

Hi all

When i run the squid service is slow internet browser on network.

Is it because I have a large number of users.

Old 10-18-2008, 09:53 AM   #2
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
please don't make 2 threads

please give more info, check your cpu utilisation, the number of network requests that squid is processing per sec ( I don't know how to check, a google should help )

and finally there is only so much a given processor with a given speed can do .. you can optimise google for help on optimising squid and improving caching behaviour etc.
Old 10-18-2008, 12:02 PM   #3
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Originally Posted by finsh View Post
Hi all

When i run the squid service is slow internet browser on network.

Is it because I have a large number of users.
I have had similar problems...I have over 500 users and I got similar complaints...

The problem is that squid is single threaded...there is no support for multiprocessors; even if you have 8 CPUs squid will only utilize one, and as I read; the squid developers are in to rush to code that in...

The way that _I_ resolved it is that I took 4 physical machines and created a virtual machine (using xen) in each one of them (giving me 4 virutal machines).

I used rsync to keep the /etc/squid/squid.conf file the same; and then used round-robbin DNS to "load balance" them.

On the clients browser I connected them via the DNS name ( should NEVER use ip will work...but it's a headache when you make any changes). This way; the load is being distributed among 4 virtual machines...and if you ever need more...just add one more virtual machine...add the IP in the DNS pool...and viola!

Old 10-18-2008, 03:18 PM   #4
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,064

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
I think you'll have to provide some information: is squid using a lot of processor time? memory? Is it getting close to the memory limits you have established when configuring it? Is name resolution occuring quickly? how many users? How much network bandwidth are you paying for? Are you getting it?
Old 10-18-2008, 08:15 PM   #5
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
I've merged two similar threads.
Old 10-19-2008, 04:50 AM   #6
Registered: Jan 2006
Posts: 159

Original Poster
Rep: Reputation: 16
I have 100 users and cach mmory in squid.conf 64kb and disk 512mb

And this is my squid.conf


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid is very slow finsh Linux - Server 1 10-18-2008 08:15 PM
squid slow browsing Ammad Linux - Networking 2 10-23-2007 01:46 AM
squid slow response ilnli Linux - Software 10 10-17-2006 12:56 AM
Slow internet thru squid kayodea Linux - Networking 2 04-26-2006 05:56 AM
Slow Squid after upgrade TechnoBod Linux - Networking 0 02-09-2004 05:29 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:05 PM.

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