LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2005, 03:48 PM   #1
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Rep: Reputation: 15
cp from one drive to antother. mb/sec?


If im doing a large file copy from one drive to another on the same box, how can i measure, easily, what my mb/sec throughput is?
 
Old 10-15-2005, 04:07 PM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
The quick, ad-hoc way is to time the copy 'time cp ...' and divide that into the file size.

I don't know of any util that can directly measure the mb/sec from a copy (as there are buffering/cacheing issues to take into consideration).

However, running (as root) 'hdparm -t /dev/hdX' will give you an approximate measure of your drive's thoughput. 'hdparm -T /dev/hdX' will read from cache, thus testing your memory/processor throughput. See the hdparm man page for more details.
 
Old 10-15-2005, 04:18 PM   #3
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
Yeah, i was aware of the time thing, but i was hoping for a more elegant way of doing it.
 
Old 10-15-2005, 04:23 PM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
You can use gkrellm, that can monitor activity on your HDDs with the transfer rate.
 
Old 10-15-2005, 05:06 PM   #5
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
Ah, thats a start, but now i might be asking for too much by seeing if there was a command line version of something that will measure transfer speed for a particular file copy?
 
Old 10-15-2005, 05:14 PM   #6
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
wont hdparm -tT tell you your transfer rates?
 
Old 10-15-2005, 05:18 PM   #7
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
wont hdparm -tT tell you your transfer rates?
Did I not mention this already. Why is everyone ignoring me?
 
Old 10-15-2005, 05:21 PM   #8
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
AFAIK there's no command line that will take account on file transfer rates, only monitoring tools like gkrellm are able to do so.
 
Old 10-15-2005, 05:22 PM   #9
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
Id like to measure a particular instance of a file copy, or simultaneous file copies. If I understand you correctly, hdparm is something i run once, and it gives me a baseline number, but doesnt tell me exactly how fast an individual file copy is going.
 
Old 10-15-2005, 05:26 PM   #10
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
No can do. Linux uses extensive buffering and drive cacheing. There's no way that I know of to turn it off to see the raw I/O speed on a drive.
 
Old 10-15-2005, 05:37 PM   #11
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
Quote:
Did I not mention this already. Why is everyone ignoring me?
did anyone else hear something?
 
  


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
Mandrake 10 Internet very slow (<1kb/sec) while windows got 50k/sec SafeTechs Mandriva 13 09-01-2006 04:07 PM
more complaints to the SEC jailbait General 1 06-22-2004 03:00 PM
IP Sec Redhat 9 martini_drinker Linux - Security 2 07-25-2003 02:57 PM
hdparm 64MB in 19.68 sec=3.25 MB/sec illtbagu Linux - General 11 06-26-2003 07:03 PM
RH7.1 Install succeded - But RH does mount the sec slave drive DoubleLetter Linux - Software 2 08-16-2001 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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