M.2 NVMe SSD増設してみた

システム用のSSD TOSHIBA THNSNH256GCST 256GB がもう90%行きそうなので、システムディスクの移設を計画中。
その前にディスクだけ増設してみた。

ホントはもう7年動かしているので、CPUとマザボなども交換したいが、今は時期が悪い。
CPUの脆弱性やUSB4、DDR5が対応するまでもう少し待ちたい。

なわけで、新しいSSDですが、今更SATA SSDなんて使いたくないのと、今後流用することも考えて、M.2 の

Western Digital WD Black SN750 NVMe SSD 1TB

https://www.westerndigital.com/ja-jp/products/internal-drives/wd-black-sn750-nvme-ssd

もちろん、今のマザボ (ASUS P8Z77-V PRO)には M.2 インターフェースなんて付いていないので、ヒートシンク付きのM.2 PCi express変換ボード

OWL-PCEXM2-03

https://www.owltech.co.jp/product/pcexm2-03

を選択。

この前、交換した3TBのHDDがsofmapで1万2千円位で売れたので、実質2万円くらい。

 

FreeBSD 上での挙動

設置して起動しただけで問題なし。カーネルも組み込んであるようなので、loader.conf も必要なし。
SATAなどと違って NVMe 独自の管理方法があるようだ。
ディスクとして使うデバイス名は/dev/nvd* になる。

とりあえずマニュアルから管理コマンドを一通り叩く

https://www.freebsd.org/cgi/man.cgi?query=nvmecontrol&sektion=8&manpath=freebsd-release-ports

 

nvmecontrol devlist

nvme0: WDS100T3X0C-00SJG0
nvme0ns1 (953869MB)

nvmecontrol identify nvme0

Controller Capabilities/Features
================================
Vendor ID:                   15b7
Subsystem Vendor ID:         15b7
Serial Number:               191078452708
Model Number:                WDS100T3X0C-00SJG0
Firmware Version:            102000WD
Recommended Arb Burst:       4
IEEE OUI Identifier:         44 1b 00
Multi-Path I/O Capabilities: Not Supported
Max Data Transfer Size:      524288
Controller ID:               0x2017
Version:                     1.3.0

Admin Command Set Attributes
============================
Security Send/Receive:       Supported
Format NVM:                  Supported
Firmware Activate/Download:  Supported
Namespace Managment:         Not Supported
Device Self-test:            Supported
Directives:                  Not Supported
NVMe-MI Send/Receive:        Not Supported
Virtualization Management:   Not Supported
Doorbell Buffer Config       Not Supported
Abort Command Limit:         5
Async Event Request Limit:   8
Number of Firmware Slots:    2
Firmware Slot 1 Read-Only:   No
Per-Namespace SMART Log:     No
Error Log Page Entries:      256
Number of Power States:      5

NVM Command Set Attributes
==========================
Submission Queue Entry Size
  Max:                       64
  Min:                       64
Completion Queue Entry Size
  Max:                       16
  Min:                       16
Number of Namespaces:        1
Compare Command:             Supported
Write Uncorrectable Command: Supported
Dataset Management Command:  Supported
Write Zeroes Command:        Supported
Save Features:               Supported
Reservations:                Not Supported
Timestamp feature:           Not Supported
Fused Operation Support:     Not Supported
Format NVM Attributes:       Per-NS Erase, Per-NS Format
Volatile Write Cache:        Present

nvmecontrol perftest -n 32 -o read -s 512 -t 30 nvme0ns1

Threads: 32 Size: 512 READ Time: 30 IO/s: 345064 MB/s: 168

nvmecontrol power -l nvme0

Power States Supported: 5

# Max pwr Enter Lat Exit Lat RT RL WT WL Idle Pwr Act Pwr Workloadd
-- -------- --------- --------- -- -- -- -- -------- -------- --
0: 6.0000W 0.000ms 0.000ms 0 0 0 0 0.0000W 0.0000W 0
1: 3.5000W 0.000ms 0.000ms 1 1 1 1 0.0000W 0.0000W 0
2: 3.0000W 0.000ms 0.000ms 2 2 2 2 0.0000W 0.0000W 0
3: 0.1000W* 4.000ms 10.000ms 3 3 3 3 0.0000W 0.0000W 0
4: 0.0025W* 4.000ms 45.000ms 4 4 4 4 0.0000W 0.0000W 0

nvmecontrol power nvme0

Current Power Mode is 0

 

S.M.A.R.T

nvd0 ではなく、nvme0ns1 などを指定するようだ。

smartctl -a /dev/nvme0ns1

smartctl 7.0 2018-12-30 r4883 [FreeBSD 12.0-STABLE amd64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       WDS100T3X0C-00SJG0
Serial Number:                      191078452708
Firmware Version:                   102000WD
PCI Vendor/Subsystem ID:            0x15b7
IEEE OUI Identifier:                0x001b44
Total NVM Capacity:                 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity:           0
Controller ID:                      8215
Number of Namespaces:               1
Namespace 1 Size/Capacity:          1,000,204,886,016 [1.00 TB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            001b44 4a4489aef5
Local Time is:                      Sun Apr  7 20:33:33 2019 JST
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Maximum Data Transfer Size:         128 Pages
Warning  Comp. Temp. Threshold:     80 Celsius
Critical Comp. Temp. Threshold:     85 Celsius
Namespace 1 Features (0x02):        NA_Fields

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.00W       -        -    0  0  0  0        0       0
 1 +     3.50W       -        -    1  1  1  1        0       0
 2 +     3.00W       -        -    2  2  2  2        0       0
 3 -   0.1000W       -        -    3  3  3  3     4000   10000
 4 -   0.0025W       -        -    4  4  4  4     4000   45000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         2
 1 -    4096       0         1

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        44 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    14,076 [7.20 GB]
Data Units Written:                 0
Host Read Commands:                 10,404,183
Host Write Commands:                0
Controller Busy Time:               0
Power Cycles:                       3
Power On Hours:                     3
Unsafe Shutdowns:                   0
Media and Data Integrity Errors:    0
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0

Error Information (NVMe Log 0x01, max 256 entries)
No Errors Logged

 

diskinfoによるディスク情報も一応

diskinfo -tv /dev/nvd0

/dev/nvd0
	512         	# sectorsize
	1000204886016	# mediasize in bytes (932G)
	1953525168  	# mediasize in sectors
	0           	# stripesize
	0           	# stripeoffset
	WDS100T3X0C-00SJG0	# Disk descr.
	191078452708	# Disk ident.
	Yes         	# TRIM/UNMAP support
	0           	# Rotation rate in RPM

Seek times:
	Full stroke:	  250 iter in   0.004770 sec =    0.019 msec
	Half stroke:	  250 iter in   0.004779 sec =    0.019 msec
	Quarter stroke:	  500 iter in   0.009368 sec =    0.019 msec
	Short forward:	  400 iter in   0.007527 sec =    0.019 msec
	Short backward:	  400 iter in   0.005315 sec =    0.013 msec
	Seq outer:	 2048 iter in   0.027030 sec =    0.013 msec
	Seq inner:	 2048 iter in   0.039602 sec =    0.019 msec

Transfer rates:
	outside:       102400 kbytes in   0.055535 sec =  1843882 kbytes/sec
	middle:        102400 kbytes in   0.050005 sec =  2047795 kbytes/sec
	inside:        102400 kbytes in   0.050136 sec =  2042445 kbytes/sec

 

ちなみに今のシステム用 SSD はと言うと

diskinfo -tv /dev/ada0

/dev/ada0
	512         	# sectorsize
	256060514304	# mediasize in bytes (238G)
	500118192   	# mediasize in sectors
	0           	# stripesize
	0           	# stripeoffset
	496149      	# Cylinders according to firmware.
	16          	# Heads according to firmware.
	63          	# Sectors according to firmware.
	TOSHIBA THNSNH256GCST	# Disk descr.
	53RS1014TPHY	# Disk ident.
	Yes         	# TRIM/UNMAP support
	0           	# Rotation rate in RPM
	Not_Zoned   	# Zone Mode

Seek times:
	Full stroke:	  250 iter in   0.039367 sec =    0.157 msec
	Half stroke:	  250 iter in   0.046700 sec =    0.187 msec
	Quarter stroke:	  500 iter in   0.092286 sec =    0.185 msec
	Short forward:	  400 iter in   0.074417 sec =    0.186 msec
	Short backward:	  400 iter in   0.075238 sec =    0.188 msec
	Seq outer:	 2048 iter in   0.138887 sec =    0.068 msec
	Seq inner:	 2048 iter in   0.142435 sec =    0.070 msec

Transfer rates:
	outside:       102400 kbytes in   0.337841 sec =   303101 kbytes/sec
	middle:        102400 kbytes in   0.288914 sec =   354431 kbytes/sec
	inside:        102400 kbytes in   0.287008 sec =   356784 kbytes/sec

だいぶ速い。

ただ、カタログスペックと比べると遅いのはおそらく、マザボが古いせいか、PCIいっぱい挿しているせいもあると思うが、十分速いので問題ない。
マザボを新調すれば、本来のスペックが出ると思う。

システムの引っ越しはとりあえず後で。

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

Time limit is exhausted. Please reload CAPTCHA.

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください