Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 13th, 2000, 01:37 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
top shelf stuff, Joe

Thanks for doing this article!

-H

Reply With Quote
  #2  
Old September 18th, 2000, 03:16 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Way too Linux specific

Subject says it...

Reply With Quote
  #3  
Old September 18th, 2000, 06:26 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Way too Linux specific

I agree it's very linux specific. I use a cache Joe has put together. While we run FreeBSD on just about everything, he made some very convincing arguments for Linux for this application, based on things like the ReiserFS, and a couple other topics I can't remember right now.
<br>
<br>
I wouldn't doubt there are some great optimizations for FreeBSD and Squid. They'll be different than Linux and Squid. This is one way to go about the job, and a very good one from what I can see. I'm interested in hearing any good FreeBSD (or other OS) and Squid stories.
<br>
<br>

Reply With Quote
  #4  
Old September 18th, 2000, 07:31 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Socket protocol

How to setup using socket protocol with Squid?

Reply With Quote
  #5  
Old September 19th, 2000, 04:57 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Excellent! Finally a good article on this.

Hey,
Finally a guy that gives better instructions on how to achieve maximum speed without all the other useless information usually found in optimization
articles.
From my own experience I believe that tweaking around with hdparm when using IDE drives also seems to help, especially on older machines used for smaller caches.
Anyway, Well done dude and thanks!

Reply With Quote
  #6  
Old September 19th, 2000, 09:33 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Way too Linux specific

You're right. It is really only of interest to Linux users. It's what I know about, really. There is also the problem of FreeBSD not being able to use the kernel threading model required of the currently fastest Squid available.
<br>
<br>
Squid 2.4 now has the nice DiskD shared memory processes for IO on FreeBSD, and Adrian Chadd has been doing interesting things with kqueues in the commloops branch in CVS, also, which should improve performance on FreeBSD. The DiskD Squid is not as fast as a threaded Squid, but it is much faster than the single process Squid.
<br>
<br>
Those things will get you a moderately fast Squid. And I imagine they will improve more over time (Swell is going to make sure Squid gets faster all around, and especially under Linux).

Reply With Quote
  #7  
Old September 19th, 2000, 09:44 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Excellent! Finally a good article on this.

You're very welcome, and you're right. hdparm is an important tool for tuning your system performance in general if you use IDE. It can be used to nudge a hesitant DMA drive into actually operating in DMA mode:
<br>
<br>
hdparm -d1 /dev/hda
<br>
<br>
I've found this to be the only really effective option for tuning for Squid. I've experimented with every other option, but found none really made measurable difference. Forcing higher PIO modes can help sometimes, though the driver usually chooses the best mode. For example, to switch to UDMA 66 mode 2:
<br>
<br>
hdparm -X66 /dev/hda
<br>
<br>
or to try for mode 4 (which only works on about half of the UDMA drives in our office):
<br>
<br>
hdparm -X68 /dev/hda
<br>
<br>
The manpage for hdparm goes firmly against manpage convention by actually making sense, so it's a great place to go for help on the subject.
<br>
<br>
I'll keep this in mind next time I update this article. Thanks for the reminder.

Reply With Quote
  #8  
Old September 20th, 2000, 08:28 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Socket protocol

what exactly PHP?try to answer in simple terms

Reply With Quote
  #9  
Old September 20th, 2000, 08:18 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Socks protocol

I found the Squid Server support four protocols , but no socks protocol.
how to resolve it?

Reply With Quote
  #10  
Old December 27th, 2000, 09:21 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Squid

Many thanks for your excellent articles, especially on squid, and for this web which is very good to me.

Reply With Quote
  #11  
Old January 4th, 2001, 08:21 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Squid and other services

What would you think of running squid on a machine such as that described by you, along with other services such as httpd and possibly a mail server? I admin a network of about 100 computers, using the one proxy to access the web. I am also considering installing a httpd on this machine. Do you think it's wise?

Reply With Quote
  #12  
Old March 1st, 2001, 04:36 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Squid and other services

Yes. Just remember , you can set the priority of your services on the linux box.
I am running apache , mail , dns on a Pentium pro 200 , with 512 Mb ram .PLUS i am running a mail virus scanner as well , and I have no problems

Reply With Quote
  #13  
Old June 25th, 2001, 12:24 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
how about 2.4.stable1 version ?

Dear Joe, Can I follow your optimization step if i use squid 2.4.stable1 version ? Which step should I adjust in order to get good squid performance with 2.4.stable1 ?

Reply With Quote
  #14  
Old January 28th, 2002, 07:14 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #15  
Old December 3rd, 2002, 11:49 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
freebsd

what about freebsd? how can i improve the performance of squid?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > High Performance Web Caching With Squid

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap