Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a programmer and dont have much knowledge of the system side. We have a website running on linux with apache mysql. We are doing some performance tuning. I came across the fact that for optimum performance, disk I/O should be really fast. How can I find how is the disk I/O doing on my Linux system. Also, are there any tips from improving the disk I/O performance.
You can play around with it, if you like. Most modern distros optimize this from install, though. Other options are, of course, SCSI, RAID, faster disks, clusters and combinations of these.
We have 2 SCSI hard disks. On doing a df, I can see the following partitions
We are running a high traffic website on this box.
Our webdocuments are in /home
Apache, mysql etc are in installed in /usr (I think)
/dev/sda7 1035660 241696 741356 25% /
/dev/sdb1 70557052 32828 66940128 1% /backup
/dev/sda1 46636 25594 18634 58% /boot
/dev/sda5 48885484 539396 45862844 2% /home
none 1547352 0 1547352 0% /dev/shm
/dev/sda6 1035660 49196 933856 6% /tmp
/dev/sda2 10317860 2967172 6826568 31% /usr
/dev/sda3 7224600 209600 6647916 4% /var
I ran an hdparm -tT on these partitions and the following were the results
/dev/sda5:
Timing buffer-cache reads: 1972 MB in 2.00 seconds = 986.00 MB/sec
Timing buffered disk reads: 168 MB in 3.00 seconds = 56.00 MB/sec
/dev/sdb1:
Timing buffer-cache reads: 1932 MB in 2.00 seconds = 966.00 MB/sec
Timing buffered disk reads: 192 MB in 3.01 seconds = 63.79 MB/sec
/dev/sda6:
Timing buffer-cache reads: 1928 MB in 2.00 seconds = 964.00 MB/sec
Timing buffered disk reads: 104 MB in 3.05 seconds = 34.10 MB/sec
/dev/sda1:
Timing buffer-cache reads: 1928 MB in 2.00 seconds = 964.00 MB/sec
Timing buffered disk reads: 46 MB in 0.81 seconds = 56.79 MB/sec
/dev/sda7:
Timing buffer-cache reads: 1940 MB in 2.00 seconds = 970.00 MB/sec
Timing buffered disk reads: 106 MB in 3.00 seconds = 35.33 MB/sec
/dev/sda2:
Timing buffer-cache reads: 1920 MB in 2.00 seconds = 960.00 MB/sec
Timing buffered disk reads: 186 MB in 3.01 seconds = 61.79 MB/sec
/dev/sda3:
Timing buffer-cache reads: 1976 MB in 2.00 seconds = 988.00 MB/sec
Timing buffered disk reads: 174 MB in 3.00 seconds = 58.00 MB/sec
Are these numbers looking good? Also the disk reads vary from 34-61 MB/sec, isnt this odd?
You have two disks sda and sdb but use sdb only as a backup.
If you have disk performance problems you could begin by moving some of the data to disk sdb.
I have some good result with using Redhat AS 2.1 they have optimized their system for the use of scsi devices.
We migrated a progress database from a 3 year old xeon processor based system to a dell 6650 linux AS 2.1 and a query which took 20 minutes on the old system now was ready within one minute, also a find instruction went from 30 seconds to a blink of the eye
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.