LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-23-2004, 02:49 AM   #1
gigi
Member
 
Registered: Nov 2003
Posts: 30

Rep: Reputation: 15
how to do caching on squid?


hello,

can anybody help me with my squid? im using squid v2.5.
my problem was its very slow when accesing the internet.

here is my sample access.log:

1077520202.618 393 192.168.1.20 TCP_MISS/200 2704 GET http://www.blackthornesw.com/bthome/...110_hbtn_a.gif - DIRECT/209.150.237.98 image/gif
1077520202.717 390 192.168.1.20 TCP_MISS/200 2709 GET http://www.blackthornesw.com/bthome/...st110_hbtn.gif - DIRECT/209.150.237.98 image/gif
1077520202.864 346 192.168.1.20 TCP_MISS/200 2709 GET http://www.blackthornesw.com/bthome/...110_hbtn_a.gif - DIRECT/209.150.237.98 image/gif
1077520203.016 450 192.168.1.20 TCP_MISS/200 8976 GET http://www.blackthornesw.com/bthome/...ust110_bnr.gif - DIRECT/209.150.237.98 image/gif
1077520290.526 406 192.168.1.20 TCP_MISS/302 434 GET http://www.google.com/ - DIRECT/216.239.57.104 text/html

As i checked what TCP_MISS means, it says that "The requested object is not in the cache" so does it means y caching does not work? Maybe that is the reason why accessing internet is very slow? I already installed cachemgr.

could you please help me.

thanks.

regards,
gigi
 
Old 02-23-2004, 06:04 PM   #2
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Have you been to any of the sites listed? Try going to google.com then close your brower and open it back up and go to google.com again and look at the logs and see if you have any hits.

Squid does not cache everything, it will cache most images and static pages (.html) it does not cache anything that has a "?" in it like php or asp pages that have variables in the url.

If you are getting any hits you are probably set up good enough, you don't have to change much from the default squid config.
 
Old 02-23-2004, 10:26 PM   #3
gigi
Member
 
Registered: Nov 2003
Posts: 30

Original Poster
Rep: Reputation: 15
hi cli_man,

Yes, i have been to those sites many times and even google.

I tried accessing www.google.com it this is what i got from access.log

1077596013.762 31046 192.168.1.20 TCP_MISS/302 434 GET http://www.google.com/ - DIRECT/216.239.57.104 text/html
1077596024.672 10909 192.168.1.20 TCP_MISS/200 1612 GET http://www.google.com.ph/ - DIRECT/216.239.57.99 text/html
1077596027.972 471 192.168.1.20 TCP_MISS/200 4024 GET http://www.google.com/
- DIRECT/216.239.57.99 text/html


How come it still TCP_MISS? does it mean www.google.com site is not on my cache?

what else should i check?

many thanks

gigi
 
  


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 as a non caching proxy stephen_davies Linux - Newbie 4 08-04-2005 12:43 PM
caching with squid kernelvn Linux - Networking 2 07-17-2005 11:54 PM
Help to configure Squid Caching !!! brains_online Linux - Newbie 0 12-23-2004 09:27 AM
Squid caching refresh time wennie Linux - General 0 12-05-2004 03:47 AM
Squid caching _everything_ ivanatora Linux - Software 0 07-28-2004 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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