FreeBSD: GELI ile şifrelenmiş ZFS diskin performansını ölçelim
FreeBSD de yazma ve okuma hızını ölçmek için yapılan en ilkel teknik diske belirli boyutta bir dosya yazdırılır ve time ile süresi ölçülür;
ZFS diskimin mount edildiği kısıma geçiyorum ve yazma hızını ölçüyorum
cd /tank /usr/bin/time -h dd if=/dev/zero of=sometestfile bs=1024 count=30000 30000+0 records in 30000+0 records out 30720000 bytes transferred in 0.284663 secs (107917095 bytes/sec) 0.30s real 0.00s user 0.28s sys
Çeviri yaparsak 107917095 bytes => 102.917761802673 megabytes eder.
Okuma hızını da şöyle ölçebilirim ;
/usr/bin/time -h dd if=sometestfile of=/dev/null bs=1024 count=300000 30000+0 records in 30000+0 records out 30720000 bytes transferred in 0.146465 secs (209743193 bytes/sec) 0.16s real 0.00s user 0.14s sys
Yine çevirirsek 209743193 bytes => 200.026696205139 megabytes eder..
Bir VM için güzel bence 🙂
Diğer yandan bu işlemler için komutlar da var tabi;
diskinfo -c /dev/ad0s1e
/dev/ad0s1e 512 # sectorsize 23327473664 # mediasize in bytes (21G) 45561472 # mediasize in sectors 0 # stripesize 2442117120 # stripeoffset 45199 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. VBe810aa12-e2485f76 # Disk ident. I/O command overhead: time to read 10MB block 0.477556 sec = 0.023 msec/sector time to read 20480 sectors 39.934862 sec = 1.950 msec/sector calculated command overhead = 1.927 msec/sector
diskinfo -t /dev/ad0s1e
/dev/ad0s1e 512 # sectorsize 23327473664 # mediasize in bytes (21G) 45561472 # mediasize in sectors 0 # stripesize 2442117120 # stripeoffset 45199 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. VBe810aa12-e2485f76 # Disk ident. Seek times: Full stroke: 250 iter in 1.634982 sec = 6.540 msec Half stroke: 250 iter in 0.112785 sec = 0.451 msec Quarter stroke: 500 iter in 0.267257 sec = 0.535 msec Short forward: 400 iter in 0.192746 sec = 0.482 msec Short backward: 400 iter in 0.166916 sec = 0.417 msec Seq outer: 2048 iter in 0.729265 sec = 0.356 msec Seq inner: 2048 iter in 0.777211 sec = 0.379 msec Transfer rates: outside: 102400 kbytes in 1.978827 sec = 51748 kbytes/sec middle: 102400 kbytes in 0.732414 sec = 139812 kbytes/sec inside: 102400 kbytes in 0.999502 sec = 102451 kbytes/sec
FreeBSD: ZFS diski GELI ile key kullanmadan şifreleme Cisco Sınavları Değişti