LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2013, 02:49 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
squid proxy


Hi

i have centos 5.3 server with squid proxy server configured on it

from last few days my internet is very slow , in my squid proxy
i cant defined any cache_mem (bytes) and cache_dir,it is as follows
#Default:

# cache_mem 8 MB


#Default:

# cache_dir ufs /var/spool/squid 100 16 256

1) as i not defined this tag then cache_mem and cache_dir how much squid takes by default
2)i need to define this tag to increase internet speed??
 
Old 04-23-2013, 04:45 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
That is why it is slow.

uncomment those lines to check the difference.
 
Old 04-23-2013, 05:12 AM   #3
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Thanks for reply also can you pls tell me as i not defined this tag then cache_mem and cache_dir how much squid takes by default?

Last edited by amartlk; 04-23-2013 at 05:14 AM.
 
Old 04-23-2013, 05:19 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Cheers, I think those are the defaults.

In particular I use more than that.

I'm just doing a re-install of my main system, where the squid system config file is.

brb
 
Old 04-23-2013, 05:25 AM   #5
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
but in squid.conf tag is as follows

# cache_mem 8 MB , as this tag contain # i.e in comment so how it take this default value as 8 MB
 
Old 04-23-2013, 09:11 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by amartlk View Post
but in squid.conf tag is as follows
# cache_mem 8 MB , as this tag contain # i.e in comment so how it take this default value as 8 MB
Right...it is 8MB BY DEFAULT, and the Squid docs can tell you this. Uncomment it and make it larger.

A better question would be why, since things were working ok, did it just start behaving slowly? What did you change?
 
Old 04-24-2013, 05:11 AM   #7
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Thanks guru

i changed nothing in squid.conf , internet was slowing down from last few days
 
Old 04-24-2013, 08:57 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by amartlk View Post
Thanks guru
i changed nothing in squid.conf , internet was slowing down from last few days
That makes no sense.

If it WAS working fine, and now it isn't...that is a CLEAR sign that SOMETHING changed. What other diagnostics have you done? Have you checked ANYTHING on the system? The network? Router? Call your ISP?
 
1 members found this post helpful.
Old 04-29-2013, 01:14 PM   #9
moody_mark
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 1
This might seem like a really obvious question but sometimes we miss the obvious; did you try a machine that normally goes via the proxy and see if a direct connection (i.e. remove the proxy in its configuration) is better?

I'm running a squid proxy at home here, it's proxying traffic sometimes for up to 4 devices at a time, and I have not changed this default setting once.

Last edited by moody_mark; 04-29-2013 at 01:22 PM.
 
Old 05-03-2013, 12:14 AM   #10
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

i make cache_mem 32 Mb in squid.conf , but still internet is slow
 
Old 05-03-2013, 06:26 AM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, have you run as root,
Code:
squid -z
This sets up the cache directories. I certainly notice the difference....Just a thought...
 
Old 05-03-2013, 08:50 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by amartlk View Post
Hi

i make cache_mem 32 Mb in squid.conf , but still internet is slow
Ok...so did you read/understand what was posted before??? AGAIN:

If it WAS working fine, and now it isn't...that is a CLEAR sign that SOMETHING changed. What other diagnostics have you done? Have you checked ANYTHING on the system? The network? Router? Call your ISP?

So, AGAIN...what changed? Based on what you posted, everything was great, then it started not working correctly. That doesn't happen for no reason.
 
  


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 Proxy Server on Ubuntu and WPAD - Proxy Auto Detection cheesewizz Linux - Networking 1 12-10-2010 02:49 AM
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 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