Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

bottleneck of disk - performance quesiton

Posted on 2014-10-16
6
Medium Priority
?
209 Views
Last Modified: 2014-11-14
How one can find the bottleneck of a disk in Linux OS?
0
Comment
Question by:linuxperson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 14

Expert Comment

by:Natty Greg
ID: 40385906
that's does not happen to my knowledge, maybe formatting when setting up the disk, or disk is failing, Linux as far as I know does not have bottleneck of disk.
0
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 2000 total points
ID: 40386060
You could use iostat:
$ iostat 3

Open in new window

Example to show disk usage every third second.

$ iostat 3
          disk0       cpu     load average
    KB/t tps  MB/s  us sy id   1m   5m   15m
   65.89   6  0.38   1  1 97  1.35 1.21 1.12
   12.85  29  0.36   1  1 98  1.33 1.20 1.12
   16.00   1  0.01   1  1 98  1.33 1.20 1.12

Open in new window


First you might have to install the iostat tool. Example in Debian:
sudo apt-get install sysstat

Open in new window


Another tool is to measure the read/write performance with dd:
$ dd if=/dev/zero of=/tmp/test.tmp bs=500K count=1024
$ dd if=/tmp/test.tmp of=/dev/null bs=500K count=1024
$ rm /tmp/test.tmp

Open in new window

Example:
root@comp:~# dd if=/dev/zero of=/mnt/3TB/test.tmp bs=5000K count=1024
5242880000 byte (5,2 GB), 154,418 s, 34,0 MB/s
5242880000 byte (5,2 GB), 148,747 s, 35,2 MB/s (ext3, write)
5242880000 byte (5,2 GB), 126,012 s, 41,6 MB/s (ext3, read)
root@comp:~# dd if=/dev/zero of=/mnt/4TB/test.tmp bs=5000K count=1024
5242880000 byte (5,2 GB), 151,988 s, 34,5 MB/s
5242880000 byte (5,2 GB), 144,414 s, 36,3 MB/s (ext4, write)
5242880000 byte (5,2 GB), 113,318 s, 46,3 MB/s (ext4, read)

Open in new window

/Tobias
0
 
LVL 79

Expert Comment

by:arnold
ID: 40386097
Vmstat should be checked as well to make sure your system is not requiring more memory than you have.
What does the system do?
Identifying your partitions with iostat 5 5
Will point to where your reads and writes .......
That may shed light on an issue.

How your disks are setup, partitioned, arranged might ..........

And the types in use
Fdisk -l

Do you sue LVM, software raid, etc.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

Author Comment

by:linuxperson
ID: 40409075
no I don't use software RAID
0
 
LVL 79

Expert Comment

by:arnold
ID: 40409586
What is the setup of your system, Manufacturer, RAID controllers, number of drives, CPU, MEMORY, etc.?
0
 
LVL 19

Expert Comment

by:jools
ID: 40441231
try "atop" or "htop", I use atop, better than top but you will have to find/install it for your distro, it shows loads of info, including processes/memory and cpu/disk in an easy to read screen and you can log over time.

sar is another tool, use sar -d (might also need to be installed for your distro).
0

Featured Post

Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

661 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