Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2006 19:20:03 -0700 (PDT)
From:      Tom Samplonius <tom@uniserve.com>
To:        "Matthew D. Fuller" <fullermd@over-yonder.net>
Cc:        freebsd-scsi@freebsd.org, Volodymyr Kostyrko <arcade@synergetica.dn.ua>
Subject:   Re: ahd(4) poor performance
Message-ID:  <20060623191627.G59394@mgmt.uniserve.ca>
In-Reply-To: <20060623232915.GM83482@over-yonder.net>
References:  <4499B748.6040805@synergetica.dn.ua> <90D11403BD2140875BFEB24D@[10.0.0.22]> <449C0E34.3080005@synergetica.dn.ua> <5272604BA34A45926DFA0D2F@[10.0.0.22]> <449C1861.3080902@synergetica.dn.ua> <0C5F4B7D7A8779025C3E480D@[10.0.0.22]> <449C5C32.1090808@synergetica.dn.ua> <20060623232915.GM83482@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 23 Jun 2006, Matthew D. Fuller wrote:

> On Sat, Jun 24, 2006 at 12:25:06AM +0300 I heard the voice of
> Volodymyr Kostyrko, and lo! it spake thus:
>>
>>   Script:
>>
>> dd if=/dev/zero of=/dev/da0s1b count=20480&
>> dd if=/dev/zero of=/dev/da0s1b count=20480&
>     [...]
>
> This seems like it would be a record-shattering worst possible case
> for the disk.  Since there's no buffering on the raw device, each dd
> stomps on the sectors of all the others, and each is writing one
> sector at a time, so you're probably eating 8 or 10 rotations writing
> each sector along the way.  Heck of a stress, maybe, but I'm not sure
> it's all that related to anything the disk will realistically do with
> normal load.

   I agree with that, but it happens to be an almost best case scenario for a 
write-back cache.  Since all of the writes are basically over-top one another, a 
disk in write-back mode, will happily aggregate it so some of these writes never 
actually hit the disk.  One write per block would occur, no matter how many dd 
processes you had.

   But in write-through (no write cache), it is definitely a nice way to thrash 
the disk.  You would get one write per block, per dd process.

> -- 
> Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
> Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
>           On the Internet, nobody can hear you scream.


Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060623191627.G59394>