Solved

How to know where is bottleneck of file server performance?

Posted on 2003-12-02
5
923 Views
Last Modified: 2013-12-15
Hello,

I have a Linux file server. I feel it is slow and want to improve the performance. Before I upgrade the hardware, i want to know what is exact bottleneck, CPU, Memory, Disk, or network?

I know there are vmstat, iostat, etc. But I feel it is not so helpful. For example, iostat shows how many block read/write per seconds, but I don't know how big the number is too big! For vmstat, it shows how many percent is idle. But 50% idle is buy or not busy? My version of vmstat cannot show the percentage CPU spending on waiting for IO.

Anyone can give some information about some good open source software to analysis CPU, memory, disk and network?
0
Comment
Question by:cajin
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
TheWeakestLink earned 50 total points
ID: 9867511
One of the things affecting file I/O performance is disk throughput.  Have you tried using hdparm to optimise this?  Look at http://linux.oreillynet.com/lpt/a/linux/2000/06/29/hdparm.html to get a start.

For a file server, CPU performance is probably not going to make a huge difference, if it's not really old and slow, and if you can assume DMA is used, so I wouldn't concentrate on CPU idle time first.  
If it's old hardware, and uses PIO instead of DMA, there is another discussion right there - just upgrade..

You didn't tell us about the machine spec, which makes it difficult to comment fully.

Paul
0
 
LVL 2

Assisted Solution

by:jgilligan1
jgilligan1 earned 50 total points
ID: 10240827
Try top, this can give a nice performance view and it pretty easy to read.

uptime is good for getting a feel for how busy the server is at a moment in time, throwing this into a crontab over time would give a good register of how busy the CPU is.

Regards,

Joe G.
0
 
LVL 2

Expert Comment

by:jgilligan1
ID: 14571876
There are a small class of tools which are inhierent in Unix


gtop/top - Shows / updates process stack and other information in more or less real-time.
iostat - this shows system disk I/O performance overall
uptime - this shows overall CPU Queue wait times in a weighted average.
ps -efxl - this is a whole process stack which can show you (similarly to top) what is going on on a system in some detail, this would show ALL processes at a moment in time vs, top which tends to show just the top/most busy processes.

Regards,

Joe G.

0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now