Re: test usb drive read / write speed

2011-04-24 Thread Huang, Tao
On Sun, Apr 24, 2011 at 1:14 PM, Ron Johnson ron.l.john...@cox.net wrote:
 On 04/23/2011 11:09 PM, Huang, Tao wrote:
[snip]
 is there a utility that:
 1. benchmarks random access,
 2. can do random writing on unused spaces for major filesystems,
 3. deals with the buffer properly.


 bonnie++

thanks.
that's a convenient tool.

however, it keeps producing:

$ bonnie -d /media/tmp/
Writing a byte at a time...done
Writing intelligently...Can't write block.: No such file or directory
Can't write block 478518.
$ bonnie -d /media/tmp/
Writing a byte at a time...done
Writing intelligently...Can't write block.: No space left on device
Can't write block 474393.

i checked the default parameters. nothing seems wrong.
i was benchmarking a kingston 4GB microSD card, connected with a usb adapter.

any help will be appreciated.

Tao


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTinVXsU6OyxYRJm4N+nCeB1f=la...@mail.gmail.com



Re: test usb drive read / write speed

2011-04-24 Thread Camaleón
On Sun, 24 Apr 2011 12:09:00 +0800, Huang, Tao wrote:

 i was trying to find out among several microSD cards which one has the
 fastest speed.
 i searched the web and didn't see any efficient solutions. are there
 conventional ways to test usb drive read / write speed? or any block
 device?

(...)

You may find useful this link:

http://grigio.org/microsd_class_6_performance_benchmarks

It seems to be using palimtest, a nice GUI tool included within the 
GNOME desktop. Just a careful note here, write speed test needs the 
device to be completely empty (with no data nor partitions).

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.04.24.13.44...@gmail.com



Re: test usb drive read / write speed

2011-04-24 Thread Huang, Tao
On Sun, Apr 24, 2011 at 1:14 PM, Ron Johnson ron.l.john...@cox.net wrote:
 On 04/23/2011 11:09 PM, Huang, Tao wrote:
[snip]
 is there a utility that:
 1. benchmarks random access,
 2. can do random writing on unused spaces for major filesystems,
 3. deals with the buffer properly.


 bonnie++

bonnie++ doesn't seem small-device-friendly.

$ bonnie -d /path/to/test/ -s 1024
File size should be double RAM for good results, RAM is 3012M

so effectively i cant run it on any device whose size is smaller than
6G on my box.
is it what it means?

thanx

Tao


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTimGaZsO3gg7hsw4MxK4kWWeZM3Z=q...@mail.gmail.com



Re: test usb drive read / write speed

2011-04-24 Thread Huang, Tao
On Sun, Apr 24, 2011 at 9:44 PM, Camaleón noela...@gmail.com wrote:
[...]
 You may find useful this link:

 http://grigio.org/microsd_class_6_performance_benchmarks

 It seems to be using palimtest, a nice GUI tool included within the
 GNOME desktop. Just a careful note here, write speed test needs the
 device to be completely empty (with no data nor partitions).

thanks.

it's totally accecptable to wipe a SD card.

the palimpsest in this article is in the debian gnome-disk-utility package.
search it with google, i also find this article useful:

https://wiki.archlinux.org/index.php/SSD_Benchmarking

i don't think echo 3  /proc/sys/vm/drop_caches is a good idea.
mounting a fs with the flag sync disables it's buffers, doesn't it?


if dealing with raw device is the case. one can always use

$ dd if=infile of=/dev/raw_block_device seek=offset

to write to any part of that device.


i'll run palimpsest on my cards tomorrow to see if it's results cover
everything i want.


Cheers,
Tao


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/banlktin7mr1c0vmgzsxh1mer0xzbmeu...@mail.gmail.com



Re: test usb drive read / write speed

2011-04-24 Thread Doug

On 04/24/2011 09:44 AM, Camaleón wrote:

On Sun, 24 Apr 2011 12:09:00 +0800, Huang, Tao wrote:


i was trying to find out among several microSD cards which one has the
fastest speed.
i searched the web and didn't see any efficient solutions. are there
conventional ways to test usb drive read / write speed? or any block
device?

(...)

You may find useful this link:

http://grigio.org/microsd_class_6_performance_benchmarks

It seems to be using palimtest, a nice GUI tool included within the
GNOME desktop. Just a careful note here, write speed test needs the
device to be completely empty (with no data nor partitions).

Greetings,


Do you mean palimpsest or is that something else?

--doug

--
Blessed are the peacekeepers...for they shall be shot at from both sides. --A. 
M. Greeley


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4db464e3.5050...@optonline.net



Re: test usb drive read / write speed

2011-04-24 Thread Camaleón
On Sun, 24 Apr 2011 13:58:59 -0400, Doug wrote:

 On 04/24/2011 09:44 AM, Camaleón wrote:

(...)

 It seems to be using palimtest, a nice GUI tool included within the
 GNOME desktop. Just a careful note here, write speed test needs the
 device to be completely empty (with no data nor partitions).


 Do you mean palimpsest or is that something else?

Yep, that's it, I misspelled the name of the tool :-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.04.24.18.27...@gmail.com



test usb drive read / write speed

2011-04-23 Thread Huang, Tao
hi list,

i was trying to find out among several microSD cards which one has the
fastest speed.
i searched the web and didn't see any efficient solutions.
are there conventional ways to test usb drive read / write speed? or
any block device?

i'm currently using hdparm for reading speed test.

$ hdparm --offset N -t /path/to/device

for writing speed,

$ time { dd if=/dev/zero of=/file/on/device bs=1M count=100; sync; }
$ time { cp /tmp/100m.urandom /file/on/device; sync; }

the 100m.urandom file is created before the test, since reading from
/dev/urandom is usually slower than writing to the device.
and my /tmp is mounted as tmpfs.

i wrote a script to run hdparm for multiple times on different
offsets. this is not random access but the results are satisfactory.
but i have no idea how to simulate a random writing access with data
on the drive untouched.

is there a utility that:
1. benchmarks random access,
2. can do random writing on unused spaces for major filesystems,
3. deals with the buffer properly.


Cheers,

Tao
--
School of Mathematical Sciences
Peking University

http://huangtao.me/
http://www.google.com/profiles/UniIsland


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTimaq-h_2rA17evsj4uT+myiLfk=g...@mail.gmail.com



Re: test usb drive read / write speed

2011-04-23 Thread Ron Johnson

On 04/23/2011 11:09 PM, Huang, Tao wrote:

hi list,

i was trying to find out among several microSD cards which one has the
fastest speed.
i searched the web and didn't see any efficient solutions.
are there conventional ways to test usb drive read / write speed? or
any block device?

i'm currently using hdparm for reading speed test.

$ hdparm --offset N -t /path/to/device

for writing speed,

$ time { dd if=/dev/zero of=/file/on/device bs=1M count=100; sync; }
$ time { cp /tmp/100m.urandom /file/on/device; sync; }

the 100m.urandom file is created before the test, since reading from
/dev/urandom is usually slower than writing to the device.
and my /tmp is mounted as tmpfs.

i wrote a script to run hdparm for multiple times on different
offsets. this is not random access but the results are satisfactory.
but i have no idea how to simulate a random writing access with data
on the drive untouched.

is there a utility that:
1. benchmarks random access,
2. can do random writing on unused spaces for major filesystems,
3. deals with the buffer properly.



bonnie++

--
Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
corrupt.
Samuel Adams, essay in The Public Advertiser, 1749


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4db3b1a2.5070...@cox.net