On the same machine (Lenovo ThinkCentre M600 Tiny Thin Client N3000 terminal), installing pure FreeBSD 14.1 (UFS fs) and Debian (EXT3 fs) distributions, the disk performance results are dramatically different.
Result from dmesg (FreeBSD):
Result from diskinfo:
Result from dd (FreeBSD - 50 MB/s):
Result from dd (Debian - 300 MB/s):
You can see that the machine achieves a 300MB/s write transfer without any problems. I run all commands with root rights. However, it is significantly lower on FreeBSD. Why? What else should I check and how can I tune the system to achieve better disk performance? Thx!
Result from dmesg (FreeBSD):
Code:
ada0 at ahcich1 bus 0 scbus1 target 0 lun 0
ada0: <SanDisk SSD U110 16GB U21B001> ACS-2 ATA SATA 3.x device
ada0: Serial Number 162937402388
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 15272MB (31277232 512 byte sectors)
Result from diskinfo:
Code:
diskinfo -tv /dev/ada0
/dev/ada0
512 # sectorsize
16013942784 # mediasize in bytes (15G)
31277232 # mediasize in sectors
0 # stripesize
0 # stripeoffset
31029 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
SanDisk SSD U110 16GB # Disk descr.
162937402388 # Disk ident.
ahcich1 # Attachment
Yes # TRIM/UNMAP support
0 # Rotation rate in RPM
Not_Zoned # Zone Mode
Seek times:
Full stroke: 250 iter in 0.043551 sec = 0.174 msec
Half stroke: 250 iter in 0.053353 sec = 0.213 msec
Quarter stroke: 500 iter in 0.106147 sec = 0.212 msec
Short forward: 400 iter in 0.072598 sec = 0.181 msec
Short backward: 400 iter in 0.082549 sec = 0.206 msec
Seq outer: 2048 iter in 0.235632 sec = 0.115 msec
Seq inner: 2048 iter in 0.231310 sec = 0.113 msec
Transfer rates:
outside: 102400 kbytes in 0.410430 sec = 249494 kbytes/sec
middle: 102400 kbytes in 0.420552 sec = 243490 kbytes/sec
inside: 102400 kbytes in 0.253176 sec = 404462 kbytes/sec
Result from dd (FreeBSD - 50 MB/s):
Code:
time dd if=/dev/zero of=/tmp/test.file bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes transferred in 10.349240 secs (50659564 bytes/sec)
real 0m10.359s
user 0m0.010s
sys 0m1.747s
Result from dd (Debian - 300 MB/s):
Code:
time dd if=/dev/zero of=/tmp/test.file bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 1.7096 s, 307 MB/s
real 0m1.716s
user 0m0.010s
sys 0m1.706s
You can see that the machine achieves a 300MB/s write transfer without any problems. I run all commands with root rights. However, it is significantly lower on FreeBSD. Why? What else should I check and how can I tune the system to achieve better disk performance? Thx!