From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-138289-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1STx7z-00079n-OM
	for garchives@archives.gentoo.org; Mon, 14 May 2012 15:24:04 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0E1EEE0941;
	Mon, 14 May 2012 15:23:44 +0000 (UTC)
Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53])
	by pigeon.gentoo.org (Postfix) with ESMTP id 5DAA5E08C6
	for <gentoo-user@lists.gentoo.org>; Mon, 14 May 2012 15:22:19 +0000 (UTC)
Received: by bkcjk13 with SMTP id jk13so4483745bkc.40
        for <gentoo-user@lists.gentoo.org>; Mon, 14 May 2012 08:22:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        bh=K4peD3YFwXI82lWiCGSnIZcLfvF8+WpD4z1h9Y/u/oE=;
        b=rzjbA7yDfXgbh9vV9hanApF3/R9OjT48X/3fr3Z0acIjP4D7S03dY9JEYeAiTv7INE
         yh1a14/bDKaFb/8EOKMBE6OVUax7Mx57kAh4oovkOcZu0N188c1qH3ldmIz5ztA1y6rI
         Lki3Q2eYcpOpiNA1gn/LXOUiXhz8UGINq3BXNtxVTB+1DA8XF8z8DUSXnZZ093VVeCvN
         oRZQqvPDmQoL6GY4Py02sRABACLUcuuFdvU0HSCS8Ru8udlngSQk0gFOoi/tTYQrqT+G
         4QcQYBmmuAVh/GtBQ0qm3CsnOSrTz4qzQY3RIrKHed/3HhGukuYgur98P6ucFZ1KJB4l
         Kp5g==
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.204.129.87 with SMTP id n23mr3140224bks.19.1337008938440; Mon,
 14 May 2012 08:22:18 -0700 (PDT)
Received: by 10.204.183.203 with HTTP; Mon, 14 May 2012 08:22:18 -0700 (PDT)
In-Reply-To: <jor676$ii2$1@dough.gmane.org>
References: <jop5ht$lv1$1@dough.gmane.org>
	<CA+czFiDAjGygDNPnbkyUj5vhVRZ0yO+YwTL0OOXdJN8E4eEUBg@mail.gmail.com>
	<jor676$ii2$1@dough.gmane.org>
Date: Mon, 14 May 2012 11:22:18 -0400
Message-ID: <CA+czFiB0_jGz6Q+a3UHhpmHwJ_eFgS1vvk0r+NT-R5PeD1mDkA@mail.gmail.com>
Subject: Re: [gentoo-user] Re: [OT] Curious hdparm results
From: Michael Mol <mikemol@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 83016c2f-48d8-4e63-8858-7ba5efc89c2d
X-Archives-Hash: ad0b73c7ebeca50d768b9230b486f7f6

On Mon, May 14, 2012 at 10:52 AM, walt <w41ter@gmail.com> wrote:
> On 05/13/2012 02:00 PM, Michael Mol wrote:
>> On Sun, May 13, 2012 at 4:28 PM, walt <w41ter@gmail.com> wrote:
>>> > I have a usb3 docking station which is showing some behavior I don't
>>> > understand:
>>> >
>>> > =C2=A0#hdparm -t /dev/sdc
>>> >
>>> > /dev/sdc:
>>> > =C2=A0Timing buffered disk reads: 266 MB in =C2=A03.01 seconds =3D =
=C2=A088.43 MB/sec
>>> > =C2=A0Timing buffered disk reads: 266 MB in =C2=A03.02 seconds =3D =
=C2=A088.10 MB/sec
>>> > =C2=A0Timing buffered disk reads: 306 MB in =C2=A03.01 seconds =3D 10=
1.72 MB/sec
>>> > =C2=A0Timing buffered disk reads: 266 MB in =C2=A03.00 seconds =3D =
=C2=A088.59 MB/sec
>>> > =C2=A0Timing buffered disk reads: 306 MB in =C2=A03.00 seconds =3D 10=
1.84 MB/sec
>>> > =C2=A0Timing buffered disk reads: 306 MB in =C2=A03.00 seconds =3D 10=
1.86 MB/sec
>>> >
>>> > That's all the same disk, repeating hdparm as fast as I could. =C2=A0=
The
>>> > disk was not even mounted at the time, and no other disks were active=
.
>>> >
>>> > Two very different but reproducible numbers, changing values at rando=
m
>>> > times. =C2=A0The only thing I can think of is that the disk may be do=
ing
>>> > a SMART self-test, but for some reason the USB connection prevents
>>> > me from accessing the data so I can't test my theory.
>>> >
>>> > Any other ideas?
>
>> bonnie++?
>
> As Volker suggested, I'm not worried about this but I'm always up for
> learning new stuff, so I tried bonnie++ on the machine's main hard
> drive and on the outboard docking station (both Western Digital).
>
> Here is bonnie's printout for each drive. =C2=A0Can you tell which is whi=
ch?
> (They must have hired a special consultant to design the format ;)

Yeah, Bonnie++'s output format is a PITA in some environments. It's
just a table, but it's almost unreadable with variable-width type, and
it's worse when it wraps. I had to copy it into a text editor to be
able to read it.

>
> Version =C2=A01.96 =C2=A0 =C2=A0 =C2=A0 ------Sequential Output------ --S=
equential Input- --Random-
> Concurrency =C2=A0 1 =C2=A0 =C2=A0 -Per Chr- --Block-- -Rewrite- -Per Chr=
- --Block-- --Seeks--
> Machine =C2=A0 =C2=A0 =C2=A0 =C2=A0Size K/sec %CP K/sec %CP K/sec %CP K/s=
ec %CP K/sec %CP =C2=A0/sec %CP
> a6 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7G =C2=A0 403 =C2=A09=
7 77669 =C2=A010 36911 =C2=A0 7 =C2=A02820 =C2=A083 104831 =C2=A011 225.0 =
=C2=A0 4
> Latency =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 38221us =C2=A0 =C2=A013=
76ms =C2=A0 =C2=A0 681ms =C2=A0 68894us =C2=A0 =C2=A0 160ms =C2=A0 =C2=A0 9=
65ms
> Version =C2=A01.96 =C2=A0 =C2=A0 =C2=A0 ------Sequential Create------ ---=
-----Random Create--------
> a6 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-Create-=
- --Read--- -Delete-- -Create-- --Read--- -Delete--
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0files =C2=A0/sec %CP =C2=
=A0/sec %CP =C2=A0/sec %CP =C2=A0/sec %CP =C2=A0/sec %CP =C2=A0/sec %CP
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 16 17246 =C2=A025=
 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
> Latency =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02363us =C2=A0 =C2=
=A0 563us =C2=A0 =C2=A0 653us =C2=A0 =C2=A0 157us =C2=A0 =C2=A0 =C2=A010us =
=C2=A0 =C2=A0 238us
> 1.96,1.96,a6,1,1337025021,7G,,403,97,77669,10,36911,7,2820,83,104831,11,2=
25.0,4,16,,,,,17246,25,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,38=
221us,1376ms,681ms,68894us,160ms,965ms,2363us,563us,653us,157us,10us,238us
>
>
>
> Version =C2=A01.96 =C2=A0 =C2=A0 =C2=A0 ------Sequential Output------ --S=
equential Input- --Random-
> Concurrency =C2=A0 1 =C2=A0 =C2=A0 -Per Chr- --Block-- -Rewrite- -Per Chr=
- --Block-- --Seeks--
> Machine =C2=A0 =C2=A0 =C2=A0 =C2=A0Size K/sec %CP K/sec %CP K/sec %CP K/s=
ec %CP K/sec %CP =C2=A0/sec %CP
> a6 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7G =C2=A0 714 =C2=A09=
9 92174 =C2=A011 24808 =C2=A0 4 =C2=A03938 =C2=A096 112295 =C2=A014 128.1 =
=C2=A0 3
> Latency =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11493us =C2=A0 =C2=A015=
82ms =C2=A0 =C2=A0 233ms =C2=A0 25883us =C2=A0 22036us =C2=A0 =C2=A05344ms
> Version =C2=A01.96 =C2=A0 =C2=A0 =C2=A0 ------Sequential Create------ ---=
-----Random Create--------
> a6 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-Create-=
- --Read--- -Delete-- -Create-- --Read--- -Delete--
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0files =C2=A0/sec %CP =C2=
=A0/sec %CP =C2=A0/sec %CP =C2=A0/sec %CP =C2=A0/sec %CP =C2=A0/sec %CP
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 16 +++++ +++ ++++=
+ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
> Latency =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02515us =C2=A0 =C2=
=A0 517us =C2=A0 =C2=A02818us =C2=A0 =C2=A01271us =C2=A0 =C2=A0 =C2=A018us =
=C2=A0 =C2=A0 293us
> 1.96,1.96,a6,1,1337028303,7G,,714,99,92174,11,24808,4,3938,96,112295,14,1=
28.1,3,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,1=
1493us,1582ms,233ms,25883us,22036us,5344ms,2515us,517us,2818us,1271us,18us,=
293us

I'd guess the second printout is the USB drive. It has a much higher
latency on the sequential input test. But that's the only big
difference I can spot.

And I'd disagree with Volker on the "It's USB..." assessment. USB3 is
a _very_ different animal from earlier versions. You get nice things
like DMA, and your CPU usage is far lower than USB2, since the CPU
doesn't have to poll the USB controller for status updates. Honestly,
I'm very impressed at how similar those two printouts look, stat wise.
It's a close call to be able to identify which is which, and I'm not
really confident I did.

--=20
:wq