warri
Guru
- Joined
- Jun 6, 2011
- Messages
- 1,193
Hello,
now that I've finally managed to set up my NAS correctly, I have a new problem. The write/read performance is really bad (locally and over FTP/CIFS). I'm using 4k sector drives from different vendors:
All 2 TB drives (ada1-3,ada 4-6) are part of a Raid-Z array. Only ada4 (A 250GB 2,5" hdd) is seperated. When writing to the array, I get speeds of ~33 MB/s write and ~34 MB/s read:
Testing the 2,5" HDD results in write speeds of ~45 MB/s and read speeds of ~90 MB/s, which is totally fine for this drive.
Now I'm wondering if that is related to the 4k sectors on the big drives. They are reporting 512b sectors via driveinfo and seem to be aligned for 512b sectors, too (ashift=9 in zpool.cache).
Can I realign them and will it result in a better performance?
Any other ideas why the performance could be that bad?
CPU usage is at ~25% while writing/reading and RAM usage at ~ 500 MB.
Here are my system specs:
NM10-DTX WiFi with Intel Atom D525 (1.8 Ghz Dualcore)
Realtek 1Gbps NIC
2 GB RAM (some old DDR-2)
6x 2TB drives (Raid-Z, see above)
1x 250GB 2,5" drive (see above)
FreeNAS-8.0-RELEASE-i386 (there were no amd64 drivers for the Realtek NIC...)
now that I've finally managed to set up my NAS correctly, I have a new problem. The write/read performance is really bad (locally and over FTP/CIFS). I'm using 4k sector drives from different vendors:
Code:
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <SAMSUNG HD204UI 09570115> ATA-7 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes) ada0: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich0 bus 0 scbus0 target 1 lun 0 ada1: <WDC WD20EARS-00MVWB0 51.0AB51> ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada2 at ahcich0 bus 0 scbus0 target 2 lun 0 ada2: <Hitachi HDS5C3020ALA632 ML6OA580> ATA-8 SATA 3.x device ada2: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada3 at ahcich0 bus 0 scbus0 target 3 lun 0 ada3: <ST2000DL003-9VT166 CC32> ATA-8 SATA 3.x device ada3: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada3: Command Queueing enabled ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada4 at ahcich1 bus 0 scbus1 target 0 lun 0 ada4: <WDC WD2500BEKT-00PVMT0 01.01A01> ATA-8 SATA 2.x device ada4: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada4: Command Queueing enabled ada4: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C) ada5 at ahcich2 bus 0 scbus3 target 0 lun 0 ada5: <WDC WD20EARS-00MVWB0 51.0AB51> ATA-8 SATA 2.x device ada5: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada5: Command Queueing enabled ada5: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada6 at ahcich3 bus 0 scbus4 target 0 lun 0 ada6: <WDC WD20EARS-00MVWB0 51.0AB51> ATA-8 SATA 2.x device ada6: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada6: Command Queueing enabled ada6: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
All 2 TB drives (ada1-3,ada 4-6) are part of a Raid-Z array. Only ada4 (A 250GB 2,5" hdd) is seperated. When writing to the array, I get speeds of ~33 MB/s write and ~34 MB/s read:
Code:
freenas# dd if=/dev/zero of=/mnt/tank1/ddfile bs=1024k count=2000 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 59.536223 secs (35224808 bytes/sec) freenas# dd if=/mnt/tank1/ddfile of=/dev/zero bs=1024k count=2000 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 57.885041 secs (36229602 bytes/sec)
Testing the 2,5" HDD results in write speeds of ~45 MB/s and read speeds of ~90 MB/s, which is totally fine for this drive.
Now I'm wondering if that is related to the 4k sectors on the big drives. They are reporting 512b sectors via driveinfo and seem to be aligned for 512b sectors, too (ashift=9 in zpool.cache).
Can I realign them and will it result in a better performance?
Any other ideas why the performance could be that bad?
CPU usage is at ~25% while writing/reading and RAM usage at ~ 500 MB.
Here are my system specs:
NM10-DTX WiFi with Intel Atom D525 (1.8 Ghz Dualcore)
Realtek 1Gbps NIC
2 GB RAM (some old DDR-2)
6x 2TB drives (Raid-Z, see above)
1x 250GB 2,5" drive (see above)
FreeNAS-8.0-RELEASE-i386 (there were no amd64 drivers for the Realtek NIC...)