LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-25-2003, 09:12 PM   #1
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Squid Performance


I have just set up a squid transperant caching server at the isp that I work at and would like to know how I can tell if I have any bottlenecks.

We set up a machine as a test machine: 667 Celeron, 40 Gig 7200 rpm drive, 384 megs of ram. This machine has been running for 4 days now and is doing much better than we had expected but there is one problem I hadn't thought of. This server was set up to test what bottlenecks we would have and then we are going to build a server to fit the needs we have, How do I tell if the hard drive is a bottleneck?

We have about 1500 Clients going through it right now and are seeing about 20% less bandwidth being used the server is running about 25% proccessor useage with about 700 concurrent connections at a time, what I have been seeing is that it will run steady between 15 and 30% proccessor useage and then about once every 10 minutes it will spike to 98% for about 25 seconds, it is not at any given interval so I don't think it is a cron bothing it (the only thing running is squid) I am wondering if the drive is not able to keep up with the information being read and saved?

Hopefully I haven't given too much info to confuse a very simple answer :-) So my question is how do I find if I have a bottleneck in the system?
 
Old 06-26-2003, 10:18 AM   #2
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Original Poster
Rep: Reputation: 30
Any Suggestions??? How can I tell how much the drive is being used? Not space but throughput kind of like the utility top tells me how much cpu I am using?
 
Old 06-27-2003, 05:48 PM   #3
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
You can collect and report a lot of system activity with the command "sar".
This tool is commonly used on all kinds of Unix systems.

For example, if you want some I/O reporting you can use the command "sar -b 1 10", which reports I/O with these parameters 10 seconds long and refreshes every second.

I recommend reading the manpage for this tool, as it is quite extensive.

Sometimes the "vmstat" command is also interesting. This will report how much memory is cached by the system / Squid.

By the way, which Linux distribution do you use?
The RPM file for Red Hat Linux 9 is called "sysstat-4.0.7-3.i386.rpm".

You can check if it's installed with the command "rpm -qi sysstat".

If you use a Red Hat distribution, you may want to check out which services are active in which runlevel, you can use the command "chkconfig --list |more".

(
You can find the homepage of the author of the Linux implementation of 'sar' here : "http://perso.wanadoo.fr/sebastien.godard/"
)

Good luck!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM
your feedback needed regarding squid performance newpenguin Linux - Networking 2 12-08-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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