<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>「HDD」タグの記事一覧 - 工夫と趣向と分別と。</title>
	<atom:link href="https://d.akinori.org/tag/hdd/feed/" rel="self" type="application/rss+xml" />
	<link>https://d.akinori.org/tag/hdd/</link>
	<description>おもしろく生きたいね</description>
	<lastBuildDate>Wed, 14 Apr 2010 17:24:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>WD15EARSの性能を計測</title>
		<link>https://d.akinori.org/2010/04/15/wd15ears%e3%81%ae%e6%80%a7%e8%83%bd%e3%82%92%e8%a8%88%e6%b8%ac/</link>
					<comments>https://d.akinori.org/2010/04/15/wd15ears%e3%81%ae%e6%80%a7%e8%83%bd%e3%82%92%e8%a8%88%e6%b8%ac/#comments</comments>
		
		<dc:creator><![CDATA[Akinori]]></dc:creator>
		<pubDate>Wed, 14 Apr 2010 17:13:09 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[ZFS]]></category>
		<guid isPermaLink="false">http://d.akinori.org/?p=2669</guid>

					<description><![CDATA[<p>内部処理を4KB/sectorで行うというWD Caviar Green (Advanced Format)シリーズのハードディスク、WD15EARSを調達したので性能を見てみる。昨日の記事の通り、OSはFreeBSD … <span class="read-more"><a href="https://d.akinori.org/2010/04/15/wd15ears%e3%81%ae%e6%80%a7%e8%83%bd%e3%82%92%e8%a8%88%e6%b8%ac/">続きを読む &#187;</a></span></p>
<p>The post <a href="https://d.akinori.org/2010/04/15/wd15ears%e3%81%ae%e6%80%a7%e8%83%bd%e3%82%92%e8%a8%88%e6%b8%ac/">WD15EARSの性能を計測</a> appeared first on <a href="https://d.akinori.org">工夫と趣向と分別と。</a>.</p>
<div class='yarpp yarpp-related yarpp-related-rss yarpp-template-yarpp-template-akinori'>
<!-- YARPP List -->

» 関連記事 «<ul>
<li><a href="https://d.akinori.org/2010/04/14/%e3%83%89%e3%83%a9%e3%82%a4%e3%83%96%e3%83%89%e3%82%a2-ex35pm4b-pe%e3%81%8cfreebsd-8%e3%81%a7%e4%bd%bf%e3%81%88%e3%81%9f/" rel="bookmark" title="ドライブドア EX35PM4B-PEがFreeBSD 8で使えた">ドライブドア EX35PM4B-PEがFreeBSD 8で使えた</a></li>
<li><a href="https://d.akinori.org/2011/10/27/ml110-g6%e3%81%ae%e8%b5%b7%e5%8b%95%e3%83%87%e3%82%a3%e3%82%b9%e3%82%af%e3%82%92usb%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ab%e5%a4%89%e6%9b%b4/" rel="bookmark" title="ML110 G6の起動ディスクをUSBメモリに変更">ML110 G6の起動ディスクをUSBメモリに変更</a></li>
<li><a href="https://d.akinori.org/2012/05/11/ml110-g6%e3%81%ae%e8%b5%b7%e5%8b%95%e3%83%87%e3%82%a3%e3%82%b9%e3%82%af%e3%82%92ssd%e3%81%ab%e5%a4%89%e6%9b%b4/" rel="bookmark" title="ML110 G6の起動ディスクをSSDに変更">ML110 G6の起動ディスクをSSDに変更</a></li>
</ul>
</div>
]]></description>
										<content:encoded><![CDATA[<p>内部処理を4KB/sectorで行うというWD Caviar Green (Advanced Format)シリーズのハードディスク、WD15EARSを調達したので性能を見てみる。<a href="http://d.akinori.org/2010/04/14/%e3%83%89%e3%83%a9%e3%82%a4%e3%83%96%e3%83%89%e3%82%a2-ex35pm4b-pe%e3%81%8cfreebsd-8%e3%81%a7%e4%bd%bf%e3%81%88%e3%81%9f/">昨日の記事</a>の通り、OSはFreeBSD 8/amd64、接続インターフェースはeSATAである。<br />
まず、単体のraw書き込み性能を見てみる。</p><pre class="urvanov-syntax-highlighter-plain-tag">% sudo dd if=/dev/zero of=/dev/ada0 bs=1M count=10000
10000+0 records in
10000+0 records out
10485760000 bytes transferred in 104.850489 secs (100006782 bytes/sec)</pre><p>つまり100MB/s弱だ。eSATAインターフェースカードで律速していないかは、後日内蔵SATAと比較するとしよう。<br />
それでは、一台まるごとZFSにしてbonnie++で測ってみる。</p><pre class="urvanov-syntax-highlighter-plain-tag">% sudo zpool create test ada0
% sudo bonnie++ -d /test -n 64:102400:128:8 -u root
Writing a byte at a time...done
[...]
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
daemon.musha.or 16G   138  99 58072  13 28952   6   420  99 82789   9  86.6   2
Latency               197ms    6496ms    8717ms   46942us    1645ms    2071ms
Version  1.96       ------Sequential Create------ --------Random Create--------
daemon.musha.org    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    64:102400:128/8   139   3    82   1 17323  77    92   2    52   0    48   0
Latency             41400ms    5563ms   81225us   34264ms    6496ms    9847ms
1.96,1.96,daemon.musha.org,1,1271143734,16G,,138,99,58072,13,28952,6,420,99,82789,9,86.6,2,64,102400,128,,8,139,3,82,1,17323,77,92,2,52,0,48,0,197ms,6496ms,8717ms,46942us,1645ms,2071ms,41400ms,5563ms,81225us,34264ms,6496ms,9847ms
% sudo zpool destroy test</pre><p>…うーん、シーケンシャル書き込みが58MB/sとはちょっとさびしい。<br />
ところで、このディスクはどのように諸元情報を返しているのだろうか。</p><pre class="urvanov-syntax-highlighter-plain-tag">% sudo camcontrol identify ada0 | grep 'sector size'
sector size           logical 512, physical 512, offset 0</pre><p>古いOSの互換性のためなのか、physical sector sizeも512Bと返しているようだ。ジャンパー設定を調べたが、残念ながらこれを変えることはできない模様。<br />
それでは、GEOMを使って4KB/sectorでアクセスするようにしてみよう。</p><pre class="urvanov-syntax-highlighter-plain-tag">% sudo gnop create -S 4096 ada0
% sudo zpool create test ada0.nop
% sudo bonnie++ -d /test -n 64:102400:128:8 -u root
Writing a byte at a time...done
[...]
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
daemon.musha.or 16G   129  99 68255  15 38455   8   434  99 88872   9 100.1   2
Latency             64647us    5964ms    6305ms   37390us    1907ms    1397ms
Version  1.96       ------Sequential Create------ --------Random Create--------
daemon.musha.org    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    64:102400:128/8   776  19   115   1 17922  82   790  20   110   1 21075  96
Latency              7490ms    1116ms     108ms    7415ms    1015ms   22992us
1.96,1.96,daemon.musha.org,1,1271239571,16G,,129,99,68255,15,38455,8,434,99,88872,9,100.1,2,64,102400,128,,8,776,19,115,1,17922,82,790,20,110,1,21075,96,64647us,5964ms,6305ms,37390us,1907ms,1397ms,7490ms,1116ms,108ms,7415ms,1015ms,22992us
% sudo zpool destroy test
% sudo gnop destroy ada0.nop</pre><p>おー。シーケンシャル書き込みだけ見ても68MB/sと15%以上もスループットが向上し、latencyも大幅に改善した。<br />
さらに、2台でストライピングしてみるとこうなった。</p><pre class="urvanov-syntax-highlighter-plain-tag">Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
daemon.musha.or 16G   138  98 94311  22 58070  12   431  99 123342  13 172.8   5
Latency               155ms    3874ms    4034ms   38783us     990ms     730ms
Version  1.96       ------Sequential Create------ --------Random Create--------
daemon.musha.org    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files:max:min        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
    64:102400:128/8  1123  29   134   1 16901  80  1062  27   111   1 18945  88
Latency              3282ms    1121ms   53040us    4831ms     910ms    4748us
1.96,1.96,daemon.musha.org,1,1271168105,16G,,138,98,94311,22,58070,12,431,99,123342,13,172.8,5,64,102400,128,,8,1123,29,134,1,16901,80,1062,27,111,1,18945,88,155ms,3874ms,4034ms,38783us,990ms,730ms,3282ms,1121ms,53040us,4831ms,910ms,4748us</pre><p>シーケンシャルで94MB/s。不満は残るがとりあえずよしとしよう。<br />
ところで、<code>gnop(8)</code>の設定は保存されないので、起動するたびに設定する必要がある（つまり、起動用のシステムを構成するボリュームでは使えないと思った方がよさそう）。というわけで、こんな風なスクリプトを書いて<code>/etc/rc.d/</code>に置き、</p><pre class="urvanov-syntax-highlighter-plain-tag">#!/bin/sh

# PROVIDE: zfs_prepare
# BEFORE: zfs zvol

. /etc/rc.subr

name="zfs_prepare"
rcvar="zfs_prepare_enable"
start_cmd="zfs_prepare_start"
stop_cmd="zfs_prepare_stop"
#required_modules="geom_nop"

zfs_prepare_start()
{
	[ `$SYSCTL_N security.jail.jailed` -ne 1 ] || return 0

	local dev
	for dev in $zfs_prepare_devs; do
		gnop create -S 4096 $dev
	done
}

zfs_prepare_stop()
{
	[ `$SYSCTL_N security.jail.jailed` -ne 1 ] || return 0

	local dev
	for dev in $zfs_prepare_devs; do
		gnop destroy $dev.nop
	done
}

load_rc_config $name
run_rc_command "$1"</pre><p><code>/etc/rc.conf</code>に設定する。</p><pre class="urvanov-syntax-highlighter-plain-tag">zfs_prepare_enable="YES"
zfs_prepare_devs="ada0 ada1 ada2"</pre><p>これで無事、nopデバイスが起動時にできるので、好きに使ってプールを構成すればいい。<br />
外付け箱にはとりあえず3台積んでストライプし、内蔵している移行元HDDからのそこへのコピーが済んだら、古い内蔵HDD群を換装して<code>ada[0-2]</code>にそれぞれattachすれば、RAID1+0のような構成になるだろう。空いたスロットには、起動ドライブのミラーボリュームを入れるつもり。<br />
メンテナンスに入るときに、ホットスワップもテストしてみたい。夢が広がるよ！</p>
<p>The post <a href="https://d.akinori.org/2010/04/15/wd15ears%e3%81%ae%e6%80%a7%e8%83%bd%e3%82%92%e8%a8%88%e6%b8%ac/">WD15EARSの性能を計測</a> appeared first on <a href="https://d.akinori.org">工夫と趣向と分別と。</a>.</p>
<div class='yarpp yarpp-related yarpp-related-rss yarpp-template-yarpp-template-akinori'>
<!-- YARPP List -->
<p>» 関連記事 «</p><ul>
<li><a href="https://d.akinori.org/2010/04/14/%e3%83%89%e3%83%a9%e3%82%a4%e3%83%96%e3%83%89%e3%82%a2-ex35pm4b-pe%e3%81%8cfreebsd-8%e3%81%a7%e4%bd%bf%e3%81%88%e3%81%9f/" rel="bookmark" title="ドライブドア EX35PM4B-PEがFreeBSD 8で使えた">ドライブドア EX35PM4B-PEがFreeBSD 8で使えた</a></li>
<li><a href="https://d.akinori.org/2011/10/27/ml110-g6%e3%81%ae%e8%b5%b7%e5%8b%95%e3%83%87%e3%82%a3%e3%82%b9%e3%82%af%e3%82%92usb%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ab%e5%a4%89%e6%9b%b4/" rel="bookmark" title="ML110 G6の起動ディスクをUSBメモリに変更">ML110 G6の起動ディスクをUSBメモリに変更</a></li>
<li><a href="https://d.akinori.org/2012/05/11/ml110-g6%e3%81%ae%e8%b5%b7%e5%8b%95%e3%83%87%e3%82%a3%e3%82%b9%e3%82%af%e3%82%92ssd%e3%81%ab%e5%a4%89%e6%9b%b4/" rel="bookmark" title="ML110 G6の起動ディスクをSSDに変更">ML110 G6の起動ディスクをSSDに変更</a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://d.akinori.org/2010/04/15/wd15ears%e3%81%ae%e6%80%a7%e8%83%bd%e3%82%92%e8%a8%88%e6%b8%ac/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
