freebsd下服務硬體效能測試

2021-12-29 22:28:55 字數 4838 閱讀 9444

freebsd用整體解決方案,簡約核心打動我們。用它乙個更大的理由是它出色的軟體包管理。unix/linux下的免費軟體遠要比windows下的多,不論用port還是, pkg_add都是非常方便

回到正題,任何東西只有能度量,才能進度。伺服器硬體效能,軟體占用資源和效能都是我們整體方案的一部分。

freebsd下用unixbench和自帶的diskinfo都是測試效能的好工具。前者用port安裝, /benchmarks/unixbench。

硬體:xeon e5320 4 core 1.86ghz

4-6g, sas 15000 73g,raid0

unixbench 4.1

4g記憶體,無raid0, 單塊硬碟

test baseline result index

dhrystone 2 using register variables 116700.0 10871107.7 931.5

double-precision whetstone 55.0 2334.0 424.4

execl throughput 43.0 1656.7 385.3

file copy 1024 bufsize 2000 maxblocks 3960.0 53064.0 134.0

file copy 256 bufsize 500 maxblocks 1655.0 52611.0 317.9

file copy 4096 bufsize 8000 maxblocks 5800.0 75403.0 130.0

pipe throughput 12440.0 696700.6 560.0

pipe-based context switching 4000.0 97562.5 243.9

process creation 126.0 5239.9 415.9

shell scripts (8 concurrent) 6.0 1074.4 1790.7

system call overhead 15000.0 418358.8 278.9

*****====

final score 399.1

(imac下virtualbox freebsd 286.7)

********************=

雙cpu,無raid, 單硬碟

test baseline result index

dhrystone 2 using register variables 116700.0 10705009.7 917.3

double-precision whetstone 55.0 2299.4 418.1

execl throughput 43.0 1461.9 340.0

file copy 1024 bufsize 2000 maxblocks 3960.0 74216.0 187.4

file copy 256 bufsize 500 maxblocks 1655.0 47267.0 285.6

file copy 4096 bufsize 8000 maxblocks 5800.0 82344.0 142.0

pipe throughput 12440.0 694449.9 558.2

pipe-based context switching 4000.0 49442.0 123.6

process creation 126.0 2502.7 198.6

shell scripts (8 concurrent) 6.0 639.5 1065.8

system call overhead 15000.0 417766.4 278.5

*****====

final score 323.3

雙cpu, raid0

test baseline result index

dhrystone 2 using register variables 116700.0 10827829.1 927.8

double-precision whetstone 55.0 2299.1 418.0

execl throughput 43.0 1396.8 324.8

file copy 1024 bufsize 2000 maxblocks 3960.0 123192.0 311.1

file copy 256 bufsize 500 maxblocks 1655.0 57031.0 344.6

file copy 4096 bufsize 8000 maxblocks 5800.0 125188.0 215.8

pipe throughput 12440.0 696110.8 559.6

pipe-based context switching 4000.0 49654.9 124.1

process creation 126.0 2446.5 194.2

shell scripts (8 concurrent) 6.0 663.2 1105.3

system call overhead 15000.0 418897.5 279.3

*****====

final score 357.4

單cpu, raid0

index values

test baseline result index

dhrystone 2 using register variables 116700.0 10768717.2 922.8

double-precision whetstone 55.0 2304.3 419.0

execl throughput 43.0 1659.2 385.9

file copy 1024 bufsize 2000 maxblocks 3960.0 125472.0 316.8

file copy 256 bufsize 500 maxblocks 1655.0 64471.0 389.6

file copy 4096 bufsize 8000 maxblocks 5800.0 127750.0 220.3

pipe throughput 12440.0 695856.9 559.4

pipe-based context switching 4000.0 89720.7 224.3

process creation 126.0 4944.5 392.4

shell scripts (8 concurrent) 6.0 1069.5 1782.5

system call overhead 15000.0 419510.4 279.7

*****====

final score 432.7

=============

小結:總體來看,硬碟io得分較低。通過raid0,效能有50%的提公升!

雙cpu並沒有帶來得分提公升,反而分數下降,應該是unix並不能把smp效能發揮出來。

vimdisk -vt *** 測試

單塊磁碟

seek times:

full stroke: 250 iter in 2.284611 sec = 9.138 msec

half stroke: 250 iter in 1.708564 sec = 6.834 msec

quarter stroke: 500 iter in 2.904974 sec = 5.810 msec

short forward: 400 iter in 0.999326 sec = 2.498 msec

short backward: 400 iter in 1.422588 sec = 3.556 msec

seq outer: 2048 iter in 0.644016 sec = 0.314 msec

seq inner: 2048 iter in 0.646552 sec = 0.316 msec

transfer rates:

outside: 102400 kbytes in 1.121078 sec = 91341 kbytes/sec

middle: 102400 kbytes in 1.256561 sec = 81492 kbytes/sec

inside: 102400 kbytes in 1.718713 sec = 59579 kbytes/sec

raid0

seek times:

full stroke: 250 iter in 0.757134 sec = 3.029 msec

half stroke: 250 iter in 1.734370 sec = 6.937 msec

quarter stroke: 500 iter in 2.851250 sec = 5.702 msec

short forward: 400 iter in 1.181895 sec = 2.955 msec

short backward: 400 iter in 1.533171 sec = 3.833 msec

seq outer: 2048 iter in 0.637557 sec = 0.311 msec

seq inner: 2048 iter in 0.646973 sec = 0.316 msec

transfer rates:

outside: 102400 kbytes in 0.928369 sec = 110301 kbytes/sec

middle: 102400 kbytes in 0.914266 sec = 112002 kbytes/sec

inside: 102400 kbytes in 0.914666 sec = 111953 kbytes/sec

小結:通過raid0,效能有20%-87%的提公升。

總結:度量才能進度,硬碟效能是基礎,可以用unix自帶和開源的工具來建立基線!

伺服器的raid方案可以提公升io的效能,進而提公升整體效能。

Freebsd 下搭建Samba伺服器 實驗成功

freebsd 下搭建samba伺服器 在安裝前最好是更新一下系統的包 cvsup l 2 h cvsup.cn.freebsd.org usr share examples cvsup ports supfile cd usr ports japanese samba3 makeinstallcl...

伺服器 PC硬體效能測試 3

網路效能測試工具netperf netperf是一款針對網路效能進行測試的工具,主要測試的是網路傳輸速率 吞吐量 響應時間等,針對的tcp和udp傳輸。netperf是client server的工作模式,server端主要是用來做監聽,監聽客戶端的連線,client端是用來向server端傳送連線...

介面測試及伺服器效能壓測

對於伺服器壓測和效能測試,也基於同一套框架,多執行緒模擬多用併發,使用者賬號密碼可以從檔案讀入或者偽造自增賬號,所有使用者登入後,每個使用者開一線程呼叫測試介面,高階一點的手段可以保持多執行緒同步,設定乙個集合點,在集合點同時傳送http請求 還可以採用使用者模型讓乙個執行緒依次或者隨機呼叫多個不同...