LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2011, 04:54 PM   #1
karlochacon
Member
 
Registered: Dec 2006
Posts: 109

Rep: Reputation: 17
Disk Speed


hi guys

I have a linux server which has about 5 volumes from SAN (fiber channel) now I need to measure the transfer rate between one LUN which is a Logical Volume to another LUN which is another Logical Volume.

so basically this server has 5 LUNs from SAN
each SAN volume is a logical volume presented to linux

any tool to measure transfers rate (Megabytes per second)

so while I copy a file like 1 Terabyte I can get MB/second

thanks a lot
 
Old 03-14-2011, 05:41 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I use dd_rescue for that. You can test with different block sizes as well.

For example:

Code:
$ dd_rescue -b 1M infile outfile

dd_rescue: (warning): Don't use sparse writes for non-seekable output
dd_rescue: (info) expect to copy 4572256kB from infile
dd_rescue: (info): ipos:   4571136.0k, opos:   4571136.0k, xferd:   4571136.0k
                   errs:      0, errxfer:         0.0k, succxfer:   4571136.0k
             +curr.rate:    47123kB/s, avg.rate:    56313kB/s, avg.load:  3.9%
             >----------------------------------------.<  99%  ETA:  0:00:00 
dd_rescue: (info): read infile (4572256.0k): EOF
dd_rescue: (info): Summary for infile -> outfile
dd_rescue: (info): ipos:   4572256.0k, opos:   4572256.0k, xferd:   4572256.0k
                   errs:      0, errxfer:         0.0k, succxfer:   4572256.0k
             +curr.rate:   114262kB/s, avg.rate:    56320kB/s, avg.load:  3.9%
             >-----------------------------------------< 100%  ETA:  0:00:00
 
Old 03-14-2011, 06:08 PM   #3
karlochacon
Member
 
Registered: Dec 2006
Posts: 109

Original Poster
Rep: Reputation: 17
looks I don't have dd_rescue


Quote:
Originally Posted by macemoneta View Post
I use dd_rescue for that. You can test with different block sizes as well.

For example:

Code:
$ dd_rescue -b 1M infile outfile

dd_rescue: (warning): Don't use sparse writes for non-seekable output
dd_rescue: (info) expect to copy 4572256kB from infile
dd_rescue: (info): ipos:   4571136.0k, opos:   4571136.0k, xferd:   4571136.0k
                   errs:      0, errxfer:         0.0k, succxfer:   4571136.0k
             +curr.rate:    47123kB/s, avg.rate:    56313kB/s, avg.load:  3.9%
             >----------------------------------------.<  99%  ETA:  0:00:00 
dd_rescue: (info): read infile (4572256.0k): EOF
dd_rescue: (info): Summary for infile -> outfile
dd_rescue: (info): ipos:   4572256.0k, opos:   4572256.0k, xferd:   4572256.0k
                   errs:      0, errxfer:         0.0k, succxfer:   4572256.0k
             +curr.rate:   114262kB/s, avg.rate:    56320kB/s, avg.load:  3.9%
             >-----------------------------------------< 100%  ETA:  0:00:00
 
Old 03-14-2011, 06:16 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
So, install it. You don't specify what distribution you're using, but on most rpm based it's:

Code:
yum install dd_rescue
On deb based distributions:

Code:
apt-get install ddrescue
 
Old 03-14-2011, 08:50 PM   #5
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
hdparm -t -T /dev/sda or whatever the lun is mapped to


Quote:
/dev/sda1:
Timing cached reads: 2442 MB in 2.00 seconds = 1220.50 MB/sec
Timing buffered disk reads: 400 MB in 3.00 seconds = 133.15 MB/sec
 
Old 03-14-2011, 09:46 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The test done by 'hdparm -tT' is a short test, and doesn't provide sustained throughput information. For example, compare my 4GB transfer test above (56MB/s) with hdparm:

Code:
# hdparm -tT /dev/md1

/dev/md1:
 Timing cached reads:   4742 MB in  2.00 seconds = 2373.03 MB/sec
 Timing buffered disk reads: 388 MB in  3.00 seconds = 129.27 MB/sec
It's more than 100% off.
 
Old 03-15-2011, 09:05 AM   #7
karlochacon
Member
 
Registered: Dec 2006
Posts: 109

Original Poster
Rep: Reputation: 17
so looks like dd_rescue is the way to go

Quote:
Originally Posted by macemoneta View Post
The test done by 'hdparm -tT' is a short test, and doesn't provide sustained throughput information. For example, compare my 4GB transfer test above (56MB/s) with hdparm:

Code:
# hdparm -tT /dev/md1

/dev/md1:
 Timing cached reads:   4742 MB in  2.00 seconds = 2373.03 MB/sec
 Timing buffered disk reads: 388 MB in  3.00 seconds = 129.27 MB/sec
It's more than 100% off.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
hard disk speed elishac Linux - Newbie 9 02-26-2011 06:14 PM
Raid disk speed gbwien Linux - Hardware 2 03-05-2009 08:26 AM
low hard disk speed rohanak Linux - Hardware 1 09-11-2007 01:52 PM
Disk write speed occuda Linux - Newbie 12 06-21-2005 11:36 PM
Linux Speed Disk ? perry Linux - Software 6 06-06-2004 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 AM.

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