The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Development Articles
|
High Performance Web Caching With Squid
Discuss High Performance Web Caching With Squid in the Development Articles forum on Dev Shed. High Performance Web Caching With Squid Development Articles forum discussing articles and tutorials located at http://www.devshed.com. See what our authors have created for your viewing pleasure.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 13th, 2000, 01:37 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
top shelf stuff, Joe
Thanks for doing this article!
-H
|

September 18th, 2000, 03:16 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Way too Linux specific
Subject says it...
|

September 18th, 2000, 06:26 PM
|
|
Guest
|
|
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>
|

September 18th, 2000, 07:31 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Socket protocol
How to setup using socket protocol with Squid?
|

September 19th, 2000, 04:57 AM
|
|
Guest
|
|
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!
|

September 19th, 2000, 09:33 PM
|
|
Guest
|
|
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).
|

September 19th, 2000, 09:44 PM
|
|
Guest
|
|
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.
|

September 20th, 2000, 08:28 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Socket protocol
what exactly PHP?try to answer in simple terms
|

September 20th, 2000, 08:18 PM
|
|
Guest
|
|
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?
|

December 27th, 2000, 09:21 AM
|
|
Guest
|
|
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.
|

January 4th, 2001, 08:21 PM
|
|
Guest
|
|
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?
|

March 1st, 2001, 04:36 AM
|
|
Guest
|
|
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
|

June 25th, 2001, 12:24 AM
|
|
Guest
|
|
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 ?
|

January 28th, 2002, 07:14 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|

December 3rd, 2002, 11:49 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
freebsd
what about freebsd? how can i improve the performance of squid?
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|