Hi,
I'm experiencing an issue with performance tests in different UFS partitions with the same tunefs options.
System information:
Test procedures:
Test results:
As we can see, the p2 partitions performs 99 Mbps faster them p4. Why is that?
Thank you very much.
I'm experiencing an issue with performance tests in different UFS partitions with the same tunefs options.
System information:
Code:
# uname -a
FreeBSD cache.local 9.1-RELEASE FreeBSD 9.1-RELEASE #3: Tue Apr 9 11:21:57 BRT 2013 root@cache.local:/usr/obj/usr/src/sys/CUSTOM amd64
Code:
# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0p2 / ufs rw 1 1
/dev/ada0p3 none swap sw 0 0
/dev/ada0p4 /cache ufs rw,noatime 2 2
Code:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 38G 4.4G 31G 12% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/ada0p4 101G 4.8G 88G 5% /cache
devfs 1.0k 1.0k 0B 100% /var/named/dev
Code:
# tunefs -p /
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: soft update journaling: (-j) enabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
Code:
# tunefs -p /cache
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: soft update journaling: (-j) enabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
Test procedures:
Code:
# dd bs=1m of=/dev/null if=/dev/ada0p2
Code:
# dd bs=1m of=/dev/null if=/dev/ada0p4
Test results:
Code:
# gstat
dT: 1.001s w: 1.000s
L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name
0 0 0 0 0.0 0 0 0.0 0.0| cd0
1 652 652 83501 1.5 0 0 0.0 96.6| ada0
0 0 0 0 0.0 0 0 0.0 0.0| ada0p1
1 652 652 83501 1.5 0 0 0.0 97.7| ada0p2
0 0 0 0 0.0 0 0 0.0 0.0| ada0p3
0 0 0 0 0.0 0 0 0.0 0.0| ada0p4
0 0 0 0 0.0 0 0 0.0 0.0| gptid/8d571973-a061-11e2-a919-00188be1ed87
Code:
# gstat
dT: 1.001s w: 1.000s
L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name
0 0 0 0 0.0 0 0 0.0 0.0| cd0
1 552 552 70713 1.8 0 0 0.0 97.1| ada0
0 0 0 0 0.0 0 0 0.0 0.0| ada0p1
0 0 0 0 0.0 0 0 0.0 0.0| ada0p2
0 0 0 0 0.0 0 0 0.0 0.0| ada0p3
1 552 552 70713 1.8 0 0 0.0 98.0| ada0p4
0 0 0 0 0.0 0 0 0.0 0.0| gptid/8d571973-a061-11e2-a919-00188be1ed87
As we can see, the p2 partitions performs 99 Mbps faster them p4. Why is that?
Thank you very much.