LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2011, 05:39 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
measure USB drive speed


Can anyone suggest a good way to measure USB drive speed in a repeatable and effective way?

I know that what I "copy" and how I "copy" and the filesystem in use make a difference in anything I try to measure.

I know that I can:
  • choose some file or folder tree
  • use various tools (cp, tar, rsync, etc) to move the data
  • use time command to collect details
  • do this more than once

One "benchmark" I've used in the past was to create a source tree for some application and use make clean; time make in that tree. Lots of I/O of various sorts and some computation and very repeatable.

Since I'm not seeking a gold standard benchmark, I can do what I like, but I'd like to do something (a)meaningful in general for myself and others, and (b)avoid inventing what probably already exixts. I hope someone, here, can suggest an existing tool kit.

Cheers,
~~~ 0;-Dan

Last edited by SaintDanBert; 05-30-2011 at 05:44 PM.
 
Old 05-30-2011, 08:22 PM   #2
netsurf
Member
 
Registered: Nov 2004
Location: UK
Distribution: ubuntu 10.04+ distro hopping
Posts: 181

Rep: Reputation: 31
Hi SaintDanBert,

Have you heard of bonnie++ at all? ( http://linux.die.net/man/8/bonnie++ )
I the tool is designed for benchmarking hard drives. I have personally used it for placing load on one in the past and it will print out statistics in the end. One thing that caught me out is that with default options, it will create an 8GB file in the current working directory. You may need to manually specify the size to create and number of files.
Hope that helps.

Kind Regard,
Netsurf
 
Old 05-31-2011, 03:31 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
I've use dd in the past:
copy from /dev/zero to a file on my disk to measure disk write speed
copy from a file on my disk to /dev/null to measure disk read speed

NB, you need to make the io size match what your applications would use. and you need to use a number of IOs big enough that Linux does not cache everything in ram.
Use bs and count options for this.

bonnie++ is on the fedora repository, so I'll try it
 
Old 05-31-2011, 09:39 AM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by 16pide View Post
NB, you need to make the io size match what your applications would use. and you need to use a number of IOs big enough that Linux does not cache everything in ram.
Use bs and count options for this.
I have no idea about I/O sizes and caching. Any recommendations where to learn?
Are averages and other statistics kept somewhere by the various file systems that
I could read from /proc or /sys?

~~~ 0;-Dan
 
  


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
Tools to measure Internet speed hcgrant Linux - Networking 3 08-05-2010 01:20 PM
How to measure file transfer speed? hadimotamedi Linux - Newbie 2 06-15-2010 05:04 AM
measure the network speed between a wifi station and access point powah Linux - Wireless Networking 1 08-19-2005 11:35 AM
USB 2.0 DVD Drive running at usb 1.1 speed.. redsmoke Linux - Hardware 1 01-17-2005 04:19 AM
how to measure network speed ? x2000koh Linux - Networking 2 06-13-2003 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:34 PM.

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