---
tags: SSD, Intel Optane
---

Dell特供版,問就是剁手同時還想賭
MIT!
`smartctl -a`:
``` text
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.11.5-arch1-1] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: Dell Ent NVMe P5800x SED WI U.2 400GB
Serial Number: /****************/
Firmware Version: 1.0.0
PCI Vendor ID: 0x8086
PCI Vendor Subsystem ID: 0x1028
IEEE OUI Identifier: 0x5cd2e4
Total NVM Capacity: 400,088,457,216 [400 GB]
Unallocated NVM Capacity: 0
Controller ID: 0
NVMe Version: 1.3
Number of Namespaces: 128
Local Time is: Tue Oct 29 22:07:47 2024 CST
Firmware Updates (0x18): 4 Slots, no Reset required
Optional Admin Commands (0x001f): Security Format Frmw_DL NS_Mngmt Self_Test
Optional NVM Commands (0x004e): Wr_Unc DS_Mngmt Wr_Zero Timestmp
Log Page Attributes (0x1e): Cmd_Eff_Lg Ext_Get_Lg Telmtry_Lg Pers_Ev_Lg
Maximum Data Transfer Size: 32 Pages
Warning Comp. Temp. Threshold: 70 Celsius
Critical Comp. Temp. Threshold: 76 Celsius
Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 13.00W - - 0 0 0 0 0 0
1 + 11.00W - - 0 1 0 1 0 0
2 + 9.00W - - 0 2 0 2 0 0
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 24 Celsius
Available Spare: 100%
Available Spare Threshold: 0%
Percentage Used: 0%
Data Units Read: 8 [4.09 MB]
Data Units Written: 0
Host Read Commands: 284
Host Write Commands: 0
Controller Busy Time: 0
Power Cycles: 2
Power On Hours: 0
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, 16 of 256 entries)
No Errors Logged
Self-test Log (NVMe Log 0x06)
Self-test status: No self-test in progress
No Self-tests Logged
```
`nvme id-ctrl`
``` text
NVME Identify Controller:
vid : 0x8086
ssvid : 0x1028
sn : /****************/
mn : Dell Ent NVMe P5800x SED WI U.2 400GB
fr : 1.0.0
rab : 0
ieee : 5cd2e4
cmic : 0
mdts : 5
cntlid : 0
ver : 0x10300
rtd3r : 0x1e8480
rtd3e : 0x493e0
oaes : 0x300
ctratt : 0
rrls : 0
cntrltype : 0
fguid : 00000000-0000-0000-/***************/
crdt1 : 0
crdt2 : 0
crdt3 : 0
nvmsr : 1
vwci : 0
mec : 1
oacs : 0x1f
acl : 3
aerl : 3
frmw : 0x18
lpa : 0x1e
elpe : 255
npss : 2
avscc : 0
apsta : 0
wctemp : 343
cctemp : 349
mtfa : 50
hmpre : 0
hmmin : 0
tnvmcap : 400088457216
unvmcap : 0
rpmbs : 0
edstt : 30
dsto : 1
fwug : 1
kas : 0
hctma : 0
mntmt : 0
mxtmt : 0
sanicap : 0x3
hmminds : 0
hmmaxd : 0
nsetidmax : 0
endgidmax : 0
anatt : 0
anacap : 0
anagrpmax : 0
nanagrpid : 0
pels : 80
domainid : 0
megcap : 0
sqes : 0x66
cqes : 0x44
maxcmd : 0
nn : 128
oncs : 0x4e
fuses : 0
fna : 0x4
vwc : 0
awun : 0
awupf : 0
icsvscc : 0
nwpc : 0
acwu : 0
ocfs : 0
sgls : 0
mnan : 0
maxdna : 0
maxcna : 0
oaqd : 0
subnqn : nqn.2021-12.com.intel:/****************/
ioccsz : 0
iorcsz : 0
icdoff : 0
fcatt : 0
msdbd : 0
ofcs : 0
ps 0 : mp:13.00W operational enlat:0 exlat:0 rrt:0 rrl:0
rwt:0 rwl:0 idle_power:- active_power:-
active_power_workload:-
ps 1 : mp:11.00W operational enlat:0 exlat:0 rrt:1 rrl:0
rwt:1 rwl:0 idle_power:- active_power:-
active_power_workload:-
ps 2 : mp:9.00W operational enlat:0 exlat:0 rrt:2 rrl:0
rwt:2 rwl:0 idle_power:- active_power:-
active_power_workload:-
```
可以看出有三個功耗檔位,落在9w\~13w,而[Intel](https://www.intel.com/content/www/us/en/products/sku/201861/intel-optane-ssd-dc-p5800x-series-400gb-2-5in-pcie-x4-3d-xpoint/specifications.html)自己是寫3.8w\~14w,大概是Dell特供的緣故?
韌體為1.0.0,Intel MAS 2.5.0認得到硬碟、序號正確,不過會說韌體要找對應廠商拿,Dell官網翻了一下至少有兩種版本都是`Dell Ent NVMe P5800x SED WI U.2 400GB`可用的,分別為2023/6/19發佈的[50Y36_2.0.0](https://www.dell.com/support/home/zh-tw/drivers/driversdetails?driverid=50y36)以及2024/3/7(~~鐵道,啟動!~~)發佈的[99WWV_1.0.0](https://www.dell.com/support/home/zh-tw/drivers/driversdetails?driverid=99wwv),姑且認為開箱預設的1.0.0韌體就是Dell版相對新的了。
`nvme id-ns -H /dev/nvme<x>n<y> | grep -i relative`
``` text
LBA Format 0 : Metadata Size: 0 bytes - Data Size: 512 bytes - Relative Performance: 0 Best (in use)
LBA Format 1 : Metadata Size: 8 bytes - Data Size: 512 bytes - Relative Performance: 0 Best
LBA Format 2 : Metadata Size: 0 bytes - Data Size: 4096 bytes - Relative Performance: 0 Best
LBA Format 3 : Metadata Size: 8 bytes - Data Size: 4096 bytes - Relative Performance: 0 Best
LBA Format 4 : Metadata Size: 64 bytes - Data Size: 4096 bytes - Relative Performance: 0 Best
```
預設logical sector size是512 bytes
理應是可以切logical sector size的,且據[superuser](https://superuser.com/questions/121252/)去`cat /sys/block/nvme<x>n<y>/queue/physical_block_size`,這顆報給系統的物理扇區大小是4k,那就刷成4kn吧
``` text
You are about to format nvme<x>n<y>, namespace <y>.
WARNING: Format may irrevocably delete this device's data.
You have 10 seconds to press Ctrl-C to cancel this operation.
Use the force [--force] option to suppress this warning.
Sending format operation ...
Success formatting namespace:1
```
`nvme id-ns -H /dev/nvme<x>n<y> | grep -i relative`
``` text
LBA Format 0 : Metadata Size: 0 bytes - Data Size: 512 bytes - Relative Performance: 0 Best
LBA Format 1 : Metadata Size: 8 bytes - Data Size: 512 bytes - Relative Performance: 0 Best
LBA Format 2 : Metadata Size: 0 bytes - Data Size: 4096 bytes - Relative Performance: 0 Best (in use)
LBA Format 3 : Metadata Size: 8 bytes - Data Size: 4096 bytes - Relative Performance: 0 Best
LBA Format 4 : Metadata Size: 64 bytes - Data Size: 4096 bytes - Relative Performance: 0 Best
```
來個快餐`fio`
需要注意的是插槽沒了所以是跑在南橋的PCIe2.0\*4,無論是延遲還是帶寬都會受限
平台是R7-5800X3D@C7H
``` text
$ fio --filename=./tmp_mnt/fiooif --direct=1 --ioengine=io_uring --loops=5 --size=1G --runtime=40 --time_based=1 --output=./fio_p5800x.csv --output-format=terse \
--stonewall --direct=1 --group_reporting \
--name=4kQ1T1RW --bs=4096 --iodepth=1 --rw=randrw --rwmixread=70 \
--name=4kQ1T1RW --bs=4096 --iodepth=1 --rw=randrw --rwmixread=80 \
--name=4kQ2T2RW --bs=4096 --iodepth=2 --numjobs=2 --rw=randrw --rwmixread=70 \
--name=4kQ2T2RW --bs=4096 --iodepth=2 --numjobs=2 --rw=randrw --rwmixread=80 \
--name=SeqQ8T1RW --bs=1024k --iodepth=8 --rw=rw --rwmixread=75
```
同樣的測試順手測了手邊其他幾顆SSD 列表如下
其中P1600X跟BC711都是跑在i5-8350u筆電平台,Gen3\*2,大塊寫入是128K(測的時候key錯了),不過應該影響不大
除了這兩顆[不知道SKL平台怎麼接的](https://superuser.com/questions/1375202/)之外其它Zen 3平台測試都是跑在Chipset,所以都有程度不一的debuff
至於fio是否能直接對應到不同應用場景下的實際表現又是另一回事了
一個很明顯的變因是測試時間/資料大小過小
總之看看即可
| | Intel P5800X 400G | Intel P1600X 118G | WDC SN640 7.68T | Samsung 970 EP v2 (Elpis) 1T | Samsung 860 EVO 1T | Micron 5200 Pro 1.92T | Hynix P44 Pro 1T | Hynix BC711 512G |
| ------------------------ | ----------------- | ----------------- | --------------------- | ---------------------------- | ------------------ | --------------------- | ---------------- | ---------------- |
| File System | BTRFS | BTRFS | NTFS | NTFS | NTFS | BTRFS | BTRFS | BTRFS |
| Hardware Config | Chipset 2.0\*4 | ??? 3.0\*2 | Chipset 2.0\*4 | Chipset 3.0\*4 | SATA | SATA | Chipset 2.0\*1 | ??? 3.0\*4 |
| 4kQ1T1 R70%W30% | 108.59/46.55 | 115.49,49.61 | 33.78/14.47 | 43.40/18.66 | 39.15/16.82 | 22.03/9.42 | 45.90/19.71 | 48.52/20.82 |
| 4kQ1T1 R80%W20% | 127.93/32.06 | 144.35/36.32 | 35.42/8.89 | 51.22/12.87 | 41.86/10.54 | 25.16/6.31 | 45.33/11.41 | 57.41/14.46 |
| 4kQ2T2 R70%W30% | 300.82/128.88 | 268.28/115.16 | 131.62/56.63 | 238.38/93.70 | 131.08/56.41 | 78.36/33.73 | 112.42/48.39 | 181.33/77.89 |
| 4kQ2T2 R80%W20% | 396.40/99.17 | 309.92/77.40 | 139.79/34.93 | 260.64/65.06 | 143.00/35.76 | 90.48/22.60 | 166.08/41.47 | 172.22/43.03 |
| Seq 1M Q8T1 R75%W25% | 564.10/188.06 | | 1429.68/476.97 | 3026.99/1011.74 | 398.32/135.70 | 372.23/127.75 | 336.38/115.37 | |
| Seq 128K Q8T1 R75%W25% | | 431.21/144.31 | | | | | | 425.07/142.18 |
`fio`的terse (csv)測試結果[在這邊](https://docs.google.com/spreadsheets/d/1ULGxg20sFMhpfvVot24XpuEiv-M0380MhG2w-CnI7rs/edit?usp=sharing)
幾個比較有趣的點
1. 你Optane還是你Optane,無論是CPU孱弱如筆電SKL或者延遲還卡著個晶片組,延遲都只有NAND的1/2以下
2. P1600X美亞/新蛋補貨了的話非常建議再次狠狠用新台幣(鎂?)將它下架,現在就是挺後悔年中60鎂的時候沒多屯幾條
3. 這批5200 pro是汰換下來、已經寫入幾百個T了的洋垃圾,根據[Serve The Home論壇](https://forums.servethehome.com/index.php?threads/anyone-with-micron-5200-or-5300-max-drives.38056/)的說法5300這條產品線跟極早期的MX500方案很類似,而5200的方案又更早些,可以確定的是數字真的不怎麼好看,就,洋垃圾不只洋而且很垃圾
4. SN640數據也不怎麼好看,勝在當初那批是全新企業級且價格相對平易近人
5. BC711恐怖如斯,根據[smzdm](https://post.smzdm.com/p/a20l57pd/)跟[reddit](https://redd.it/10kfgqh)這塊是少數短盤封裝仍然包了DRAM的,整體會比較接近P31 Gold。Hynix的2242/2230後續還有BC901/PVC10等型號,其中PVC10已知dramless,不過根據[homolab](https://www.youtube.com/watch?v=BSHLR7Q_aJU)跑分性能是更上一層樓的。
6. P5800X溫度不知道為什麼就是不超過30度,同樣的插槽及通風條件(有把小風扇在旁邊吹),SN640測試後可以來到50度,同時[Serve The Home](https://www.servethehome.com/intel-optane-dc-p5800x-800gb-workstation-ssd-review/2/)也是可以摸到51度的,可能跟Dell版標稱功耗比起原版稍低、以及受限於插槽根本沒跑滿速有關,又或者是Dell版韌體回報問題? 當然P5800X是15mm而SN640是7mm,散熱能力上本身就有差距
這顆可能就供著了,Optane(幾乎最後的)榮光: 還有個[小改款](https://www.chiphell.com/forum.php?mod=viewthread&tid=2490320)P5810X有著更高的功耗上限、更低的待機功耗,不過跟P1600X一樣最近基本找不到
BTW P1600x也[可以](https://forum.level1techs.com/t/formatting-the-optane-ssd-p1600x-ssdpek1a118ga01-to-use-4k-blocks/195455/20)刷成4096 Bytes logical sector size,只是這顆比較奇葩,大部分可以改邏輯扇區的SSD這個操作都不會花太久,P5800x而言幾秒鐘的事情,然而P1600x久到哭,得先把特定timeout flag拔掉才能跑完
或者已知主機板有對應功能的話可能可以試試