Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"markdown-it-cjk-breaks": "^1.1.3",
"markdown-it-footnote": "^3.0.2",
"markdown-it-implicit-figures": "^0.10.0",
"prismjs": "^1.23.0",
"prismjs": "^1.27.0",
"saber-highlight-css": "^0.1.2",
"saber-plugin-ga-lite": "^0.4.0",
"saber-plugin-image": "^0.2.2",
Expand Down
Binary file not shown.
Binary file not shown.
74 changes: 74 additions & 0 deletions pages/_posts/p440ar-ctrl-benchmark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
title: P440ar Array Controller 直通评测
tags:
- HP
- HBA
- RAID
- ZFS
categories:
- 搞机
layout: post
date: 2022-03-26
---

最近到了一批`HPE DL560 G9`的机器,默认带的是[P440ar](https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c04496202)的卡。但是目前我们都是用的ZFS,所以一般来说我们都会把卡刷成`IT Mode`直通给系统。

戴尔的卡已经有[很成熟的教程](https://fohdeesha.com/docs/index.html)了,但是HP似乎都没有,目前可以选择的方案看了一圈只有

- HBA Mode,他们的卡自带了这个模式
- RAID 0 for each physical drive,我没想到的是他们界面直接就有这个选项,看来很多这样的需求

但是继续找了一下并没有看到有关于更多ZFS的评测,所以这里就记录一下目前收集到的信息

## 规格

### 硬盘

硬盘是`2.5 inch Seagate 1TB 7200 RPM`,具体信息:

```
Status: OK
Serial Number: 9XG6E9NN
Model: ST910006CLAR1000
Media Type: HDD
Capacity: 1000 GB
Firmware Version: AS0D
Encryption Status Not Encrypted
```

### 控制器

控制器读缓存开启,写缓存关闭

## 测试

### 脚本

使用的是[fio](https://github.com/axboe/fio),配合脚本

<iframe src="https://gist.github.com/sudhanshu-15/8bab656a910829ab9c32d7700c570be6.pibb"></iframe>

### RAID 0 结果

<a :href="raid0">fio-raid0.tar.gz</a>

### HBA 结果

<a :href="hba">fio-hba.tar.gz</a>

## 结论

目前测试出来单盘的情况下,HBA和Raid0的结果在512K的读写下很相近,但是HBA模式表现似乎要更好一点。

所有结果都打包在上面,有需要的可以自行下载研究。如果有更多测试/模式想要测试,可以在评论区留言

<script>
export default {
data () {
return {
raid0: require("../_assets/file/p440ar-ctrl-benchmark/fio-raid0.tar.gz"),
hba: require("../_assets/file/p440ar-ctrl-benchmark/fio-hba.tar.gz"),
}
},
}
</script>
17 changes: 11 additions & 6 deletions saber-node.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
const webpack = require('webpack')

exports.chainWebpack = function(chain) {
const fileLoaderExt = (names, chain) => {
chain.module
.rule("pdf")
.test(/\.pdf$/)
.use("pdf")
.rule("file load path")
.test(new RegExp(`\.(${names.join('|')})$`))
.use("file load path")
.loader("file-loader")
.options({
name: "[name].[ext]",
name: "[path][name].[ext]",
});
chain.module
}

exports.chainWebpack = function(chain) {
fileLoaderExt(["pdf", "tar.gz"], chain)

chain.module
.rule("cool")
.test(/\.cool$/)
.use("cool")
Expand Down
41 changes: 4 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1874,15 +1874,6 @@ cli-cursor@^2.1.0:
dependencies:
restore-cursor "^2.0.0"

clipboard@^2.0.0:
version "2.0.6"
resolved "https://registry.yarnpkg.com/clipboard/-/clipboard-2.0.6.tgz#52921296eec0fdf77ead1749421b21c968647376"
integrity sha512-g5zbiixBRk/wyKakSwCKd7vQXDjFnAMGHoEyBogG/bw9kTD9GvdAvaoRR1ALcEzt3pVKxZR0pViekPMIS0QyGg==
dependencies:
good-listener "^1.2.2"
select "^1.1.2"
tiny-emitter "^2.0.0"

clone-response@1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b"
Expand Down Expand Up @@ -2400,11 +2391,6 @@ define-property@^2.0.2:
is-descriptor "^1.0.2"
isobject "^3.0.1"

delegate@^3.1.2:
version "3.2.0"
resolved "https://registry.yarnpkg.com/delegate/-/delegate-3.2.0.tgz#b66b71c3158522e8ab5744f720d8ca0c2af59166"
integrity sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==

depd@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
Expand Down Expand Up @@ -3077,13 +3063,6 @@ globals@^11.1.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==

good-listener@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/good-listener/-/good-listener-1.2.2.tgz#d53b30cdf9313dffb7dc9a0d477096aa6d145c50"
integrity sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=
dependencies:
delegate "^3.1.2"

got@^8.3.1:
version "8.3.2"
resolved "https://registry.yarnpkg.com/got/-/got-8.3.2.tgz#1d23f64390e97f776cac52e5b936e5f514d2e937"
Expand Down Expand Up @@ -5038,12 +5017,10 @@ pretty-ms@^5.0.0:
dependencies:
parse-ms "^2.1.0"

prismjs@^1.23.0:
version "1.23.0"
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.23.0.tgz#d3b3967f7d72440690497652a9d40ff046067f33"
integrity sha512-c29LVsqOaLbBHuIbsTxaKENh1N2EQBOHaWv7gkHN4dgRbxSREqDnDbtFJYdpPauS4YCplMSNCABQ6Eeor69bAA==
optionalDependencies:
clipboard "^2.0.0"
prismjs@^1.27.0:
version "1.27.0"
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057"
integrity sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==

private@^0.1.8:
version "0.1.8"
Expand Down Expand Up @@ -5583,11 +5560,6 @@ seek-bzip@^1.0.5:
dependencies:
commander "~2.8.1"

select@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/select/-/select-1.1.2.tgz#0e7350acdec80b1108528786ec1d4418d11b396d"
integrity sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=

semver@7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e"
Expand Down Expand Up @@ -6073,11 +6045,6 @@ timsort@^0.3.0:
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=

tiny-emitter@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423"
integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==

tiny-invariant@^1.0.6:
version "1.1.0"
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.1.0.tgz#634c5f8efdc27714b7f386c35e6760991d230875"
Expand Down