Hi,
I am into debugging a problem I have with my Hardrives in my OMV Box.
These Days when copying some bigger amount of data between the 2 internal SATA Harddrives of my OMV Box it came to my attention that the drives are extremely slow. During copying iotop/iostat reports a max throughput of 10MB/s from one local sata HDD to another local sata HDD.
Some background on my system:
MotherBoard: Asrock Q1900-ITX - 4MB Ram
Installed Volumes:
Systemvolume: SanDisk SDSSDP06 (/dev/sda)
2x Datavolumes: SAMSUNG HD105SI (no Raid, plain ext4 FS) (sdb, sdd)
as the motherboard does only habe 2 SATA ports, I use a SiI 3531 Serial ATA Controller on the 1xPCIe port of the MB for the second Data HDD.
I went through
http://forums.openmediavault.o…peed-tests-in-a-nutshell/
and done some of the proposed diagnosis:
Speed Measurements:
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 3186 MB in 2.00 seconds = 1593.37 MB/sec
Timing buffered disk reads: 704 MB in 3.01 seconds = 234.25 MB/sec
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# hdparm -Tt /dev/sdb
/dev/sdb:
Timing cached reads: 2878 MB in 2.00 seconds = 1439.26 MB/sec
Timing buffered disk reads: 32 MB in 3.13 seconds = 10.23 MB/sec
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# hdparm -Tt /dev/sdd
/dev/sdd:
Timing cached reads: 2980 MB in 2.00 seconds = 1490.47 MB/sec
Timing buffered disk reads: 32 MB in 3.13 seconds = 10.24 MB/sec
Alles anzeigen
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# dd if=/dev/sda of=/dev/null bs=100M count=3
3+0 Datensätze ein
3+0 Datensätze aus
314572800 Bytes (315 MB) kopiert, 1,23075 s, 256 MB/s
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# dd if=/dev/sdb of=/dev/null bs=100M count=3
3+0 Datensätze ein
3+0 Datensätze aus
314572800 Bytes (315 MB) kopiert, 29,2997 s, 10,7 MB/s
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# dd if=/dev/sdd of=/dev/null bs=100M count=3
3+0 Datensätze ein
3+0 Datensätze aus
314572800 Bytes (315 MB) kopiert, 29,3399 s, 10,7 MB/s
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed#
Alles anzeigen
One can see immediately, that the read performance of the 2 HDDs is extremly lousy (10MB/s)
No Problem with the interface speeds:
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# hdparm -I /dev/sdb | grep -i speed
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# hdparm -I /dev/sdd | grep -i speed
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
dmesg shows no obvious errors, however it contains some infromation I do not understand:
[ 3.669519] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 0) -> What means SControl 0, the other drives show SControl300
[ 3.675194] ata3.00: ATA-8: SAMSUNG HD105SI, 1AJ10001, max UDMA/133
[ 1.795547] ata2.00: ATA-8: SAMSUNG HD105SI, 1AJ10001, max UDMA/133
-> Why are both drives using ATA-8 even though one Drive is on the Motherboards "internal" SATA controller and one is on the PCIe to SATA Bridge ?
-> Why is ata2.00 using AA Mode and ata3.00 is not ?
root@omv:/media/78e8bd07-7143-481a-b938-232cd143c5b3/home/stephan/iospeed# egrep 'ata[0-9]\.|SATA link up' /var/log/dmesg
[ 1.781840] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.782289] ata1.00: ATA-9: SanDisk SDSSDP064G, 3.2.0, max UDMA/133
[ 1.782296] ata1.00: 123091920 sectors, multi 1: LBA48 NCQ (depth 31/32)
[ 1.783159] ata1.00: configured for UDMA/133
[ 1.789876] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.795547] ata2.00: ATA-8: SAMSUNG HD105SI, 1AJ10001, max UDMA/133
[ 1.795555] ata2.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 1.801331] ata2.00: configured for UDMA/133
[ 3.669519] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[ 3.675194] ata3.00: ATA-8: SAMSUNG HD105SI, 1AJ10001, max UDMA/133
[ 3.675201] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 3.680934] ata3.00: configured for UDMA/100
[ 8.045568] ata3.00: configured for UDMA/100
[ 8.049395] ata2.00: configured for UDMA/133
[ 9.127796] ata2.00: configured for UDMA/133
[ 9.152149] ata3.00: configured for UDMA/100
Alles anzeigen
Does anyone have an Idea how to further track this issue down ?
Best Regards
Stephan