( pista_ | 2017. 12. 07., cs – 12:20 )

Valamit nagyon elrontok, benézek, mert a sebességtesztek zvol-al borzalmasak.
Vegyük az "alapot", sda-ra 2TB ext4, a teszt ezt adja:


=====ext4 nativ==================================================================
#bonnie++ -u root -r 1024 -s 16384 -d /teszt/ -f -b -n 1 -c 4
Version 1.97 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 4 -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
dell-4-doom0 16G 198457 13 100316 11 201004 12 575.0 5
Latency 231ms 2676ms 75501us 150ms
Version 1.97 ------Sequential Create------ --------Random Create--------
dell-4-doom0 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
1 48 0 +++++ +++ 52 0 48 0 +++++ +++ 52 0
Latency 108ms 41us 75205us 66908us 18us 50548us
===================================================================================

Ezt követően a 4 diskből építek egy raidz2-t, azon egy 2TB zvol-t, amire ext4-et teszek (majd egy virtuális gép menne erre) és mountolás után borzalmas teszt eredményt produkál. :-((

#zpool status
pool: vol0
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
vol0 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
scsi-35000c50094710e87 ONLINE 0 0 0
scsi-35000c50094717fdf ONLINE 0 0 0
scsi-35000c5009471a887 ONLINE 0 0 0
scsi-350000397b80a0341 ONLINE 0 0 0

# zfs create -V 2T vol0/xen01

#bonnie++ -u root -r 1024 -s 16384 -d /mnt/ -f -b -n 1 -c 4
Version 1.97 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 4 -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
dell-4-doom0 16G 52252 4 15099 3 526915 65 676.2 19
Latency 935ms 1670ms 105ms 713ms
Version 1.97 ------Sequential Create------ --------Random Create--------
dell-4-doom0 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
1 42 0 +++++ +++ 47 0 46 0 +++++ +++ 47 0
Latency 805ms 47us 148ms 223ms 16us 151ms
====================================================================================

Amennyiben nem zvol-t csinálok, hanem sima zfs filerendszert és azt tesztelem, különösen, ha tömörítés is van rajta, akkor egészen szép eredményt hoz(na), de nekem virtuális gépekhez ez így nem lesz jó:


================
# zpool status
pool: vol0
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
vol0 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
scsi-35000c50094710e87 ONLINE 0 0 0
scsi-35000c50094717fdf ONLINE 0 0 0
scsi-35000c5009471a887 ONLINE 0 0 0
scsi-350000397b80a0341 ONLINE 0 0 0

# df -h
vol0/teszt 6,9T 128K 6,9T 1% /zfs

#bonnie++ -u root -r 1024 -s 16384 -d /zfs/ -f -b -n 1 -c 4
Version 1.97 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 4 -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
dell-4-doom0 16G 718212 89 346988 64 1055258 74 713.8 19
Latency 4145us 166ms 61046us 202ms
Version 1.97 ------Sequential Create------ --------Random Create--------
dell-4-doom0 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
1 119 1 +++++ +++ 113 1 126 1 +++++ +++ 137 1
Latency 67807us 16us 75833us 75417us 18us 79329us
=======================================================================================

Ötlet?

Előre is köszönöm!