Operating System - Linux
1835046 Members
2096 Online
110073 Solutions
New Discussion

problems with speed trought proxi squid

 
SOLVED
Go to solution
Ignacio Rodríguez Arrós
Frequent Advisor

problems with speed trought proxi squid

I have a proxi server with squid, and sometimes it happens that if you use internet trought the proxi (squid), it can´t download the pages (it is too slow, it looks like the speed of the conexion is too low), but if you make the conexion without going trought the proxi, (directly by the gateway), it is all right.And this not happens always, only sometimes....
16 REPLIES 16
Alexander Chuzhoy
Honored Contributor

Re: problems with speed trought proxi squid

Try to increase the amount of memory that squid uses.
It's best to have an appropriate hardware,i.e. if there are lot's of users-then the nic shoud be 1GB,lots of memory,fast hard drive,etc.
Are there any special rules in the configuration?
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

I think it´s not a problem off memory or disk, there are a few users, the disk is empty, and the machine only works with squid, firewall, and mail server (for a very few users
Alexander Chuzhoy
Honored Contributor

Re: problems with speed trought proxi squid

How much memory does the squid use?
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

How can i see that parameter ???
Alexander Chuzhoy
Honored Contributor

Re: problems with speed trought proxi squid

search the /etc/squid/squid.conf
for cache_mem
the number that appears next to it -is the amount of memory.
Peeyush
Regular Advisor

Re: problems with speed trought proxi squid

Hi,

paste the following file here...
/var/log/squid/cache.log
/var/log/squid/access.log


to chk how much memory Squid is using try
#ps -ef | grep squid

regards,
Peeyush
any suggestion for my site.. http://geocities.com/peeyush_maurya/
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

Excuse me, i have been out till now.
In my squid.conf, all the lines about cache are commented (with #), realy the only lines without # are the ones about acls and permisionss?? (sorry, i am new in squid).
the file attaches is my squid.conf
Alexander Chuzhoy
Honored Contributor

Re: problems with speed trought proxi squid

right!
locate the line # cache_mem 8
remove the comment mark from it, then change 8 with let's say 64 and restart the squid service.
See if there's an approvement in performance.
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

I have changed the line, put cache_mem 64 KB, save the file and executed squid -k reconfigure. Is that enougth?
Alexander Chuzhoy
Honored Contributor

Re: problems with speed trought proxi squid

cache_mem 64 MB
not KB

after changing execute:
service squid restart
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

I had put MB, not KB sorry. If i execute squid restart, it says service squid already running, is not valid squid -k reconfigure?
Alexander Chuzhoy
Honored Contributor
Solution

Re: problems with speed trought proxi squid

that works too, however it's better to restart the service .
if you can't restart the service with:
service squid restart

then use
servce squid stop
and
service squid start


P.S.
Points assignment is appreciated..
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

I am sorry to say that it seems to be as always, when the proxi is slow, if you go out directly bypassing it, it works well.
I don´t know why
Alexander Chuzhoy
Honored Contributor

Re: problems with speed trought proxi squid

Try not to use authentication...
From your configuration file:
it shows that you use authentication ,i.e.
user has to be authenticated .Try to disable this feature temporarily- see if there's a big difference.
Don't try to connect to local address (from local subnet) using proxy-(it works slow on
Squid an on ISA) .
Peeyush
Regular Advisor

Re: problems with speed trought proxi squid

Hi,

Read this for optimising ur squid..
http://squid.visolve.com/squid/index.htm

I use DiskD for better performance
http://www.squid-cache.org/Doc/FAQ/FAQ-22.html

i had modifies ur conf....use it and see if it gives u better speed....
note: i had defined port 8080 not the usual 3128....i had modified this file in windows...so telnet to ur linux box and copy paste this configuration in /etc/squid/squid.conf..

Regards,
Peeyush Maurya
any suggestion for my site.. http://geocities.com/peeyush_maurya/
Ignacio Rodríguez Arrós
Frequent Advisor

Re: problems with speed trought proxi squid

Thanks for your squid.conf, i am testing it, but i want to use password for my users, (i put the proxi to get that), so i uncommented the lines about password. In a few days i´ll tell you how the proxi work