slow SSD vs HDD

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • slow SSD vs HDD

      Hi all

      I just test speed of my disk and see SSD is slow.
      sdf is a SSD
      sde is a HDD

      result for sdf :

      Source Code

      1. ~# hdparm -t /dev/sdf
      2. /dev/sdf:
      3. Timing buffered disk reads: 236 MB in 3.08 seconds = 76.69 MB/sec
      4. root@nas:~# sudo hdparm -Tt /dev/sdf



      result for sde :

      Source Code

      1. hdparm -t /dev/sde
      2. /dev/sde:
      3. Timing buffered disk reads: 544 MB in 3.01 seconds = 180.73 MB/sec

      I dig a little and see that : SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]

      Do you kow if I can safely change IDE mode to AHCI in the bios ?

      Source Code

      1. sudo lshw -class storage
      2. *-storage
      3. description: SATA controller
      4. produit: SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
      5. fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
      6. identifiant matériel: 11
      7. information bus: pci@0000:00:11.0
      8. version: 00
      9. bits: 32 bits
      10. horloge: 66MHz
      11. fonctionnalités: storage pm ahci_1.0 bus_master cap_list
      12. configuration: driver=ahci latency=64
      13. ressources: irq:22 portE/S:c000(taille=8) portE/S:b000(taille=4) portE/S:a000(taille=8) portE/S:9000(taille=4) portE/S:8000(taille=16) mémoire:fe9ffc00-fe9fffff
      14. *-ide
      15. description: IDE interface
      16. produit: SB7x0/SB8x0/SB9x0 IDE Controller
      17. fabriquant: Advanced Micro Devices, Inc. [AMD/ATI]
      18. identifiant matériel: 14.1
      19. information bus: pci@0000:00:14.1
      20. version: 00
      21. bits: 32 bits
      22. horloge: 66MHz
      23. fonctionnalités: ide msi bus_master cap_list
      24. configuration: driver=pata_atiixp latency=64
      25. ressources: irq:16 portE/S:1f0(taille=8) portE/S:3f6 portE/S:170(taille=8) portE/S:376 portE/S:ff00(taille=16)
      26. *-scsi:0
      27. identifiant matériel: 1
      28. nom logique: scsi0
      29. fonctionnalités: emulated
      30. *-scsi:1
      31. identifiant matériel: 2
      32. nom logique: scsi1
      33. fonctionnalités: emulated
      34. *-scsi:2
      35. identifiant matériel: 3
      36. nom logique: scsi2
      37. fonctionnalités: emulated
      38. *-scsi:3
      39. identifiant matériel: 5
      40. nom logique: scsi3
      41. fonctionnalités: emulated
      42. *-scsi:4
      43. identifiant matériel: 6
      44. nom logique: scsi5
      45. fonctionnalités: emulated
      Display All

      thanks to all for your help


      result of dmesg | grep -i ahci

      Source Code

      1. dmesg | grep -i ahci
      2. [470817.561873] ahci 0000:00:11.0: set SATA to AHCI mode
      3. [477480.255258] ahci 0000:00:11.0: set SATA to AHCI mode
      4. [489237.660070] ahci 0000:00:11.0: set SATA to AHCI mode
      5. [511057.668396] ahci 0000:00:11.0: set SATA to AHCI mode
      6. [525487.660338] ahci 0000:00:11.0: set SATA to AHCI mode
      7. [541364.441332] ahci 0000:00:11.0: set SATA to AHCI mode
      8. [551092.577111] ahci 0000:00:11.0: set SATA to AHCI mode
      9. [582285.990098] ahci 0000:00:11.0: set SATA to AHCI mode
      10. [595459.049745] ahci 0000:00:11.0: set SATA to AHCI mode
      11. [601085.086233] ahci 0000:00:11.0: set SATA to AHCI mode
      12. [609550.734701] ahci 0000:00:11.0: set SATA to AHCI mode
      13. [610619.111450] ahci 0000:00:11.0: set SATA to AHCI mode
      14. [626288.921019] ahci 0000:00:11.0: set SATA to AHCI mode
      15. [634393.945022] ahci 0000:00:11.0: set SATA to AHCI mode
      16. [656559.169600] ahci 0000:00:11.0: set SATA to AHCI mode
      17. [659076.270072] ahci 0000:00:11.0: set SATA to AHCI mode
      18. [663963.471605] ahci 0000:00:11.0: set SATA to AHCI mode
      19. [665031.678546] ahci 0000:00:11.0: set SATA to AHCI mode
      20. [677296.827650] ahci 0000:00:11.0: set SATA to AHCI mode
      21. [692270.178998] ahci 0000:00:11.0: set SATA to AHCI mode
      22. [698572.403725] ahci 0000:00:11.0: set SATA to AHCI mode
      23. [701984.220831] ahci 0000:00:11.0: set SATA to AHCI mode
      24. [725414.369805] ahci 0000:00:11.0: set SATA to AHCI mode
      25. [732275.255274] ahci 0000:00:11.0: set SATA to AHCI mode
      Display All

      The post was edited 1 time, last by Revers62 ().

    • Revers62 wrote:

      Do you kow if I can safely change IDE mode to AHCI in the bios ?
      Yes and it is a much better option.
      omv 4.1.23 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      Revers62 wrote:

      Do you kow if I can safely change IDE mode to AHCI in the bios ?
      Yes and it is a much better option.
      I try to put ahci in my bios but when I do it I can't see the ssd.

      But I don't think this is the problem because the kernel take lead when debian boot.


      hum I will dig because I see 2 stanges thing : pata_atiixp

      Source Code

      1. dmesg | grep scsi
      2. [ 2.110061] scsi host0: pata_atiixp
      3. [ 2.110187] scsi host1: ahci
      4. [ 2.110297] scsi host2: pata_atiixp
      5. [ 2.110613] scsi host3: ahci
      6. [ 2.110761] scsi host4: ahci
      7. [ 2.110885] scsi host5: ahci
      8. [ 2.292452] scsi 2:0:0:0: Direct-Access ATA ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
      9. [ 2.292629] scsi 2:0:1:0: Direct-Access ATA PNY CS900 240GB 0612 PQ: 0 ANSI: 5
      10. [ 2.591493] scsi 1:0:0:0: Direct-Access ATA ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
      11. [ 2.592193] scsi 3:0:0:0: Direct-Access ATA ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
      12. [ 2.592753] scsi 4:0:0:0: Direct-Access ATA ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
      13. [ 2.605582] scsi 5:0:0:0: Direct-Access ATA ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
      14. [ 5.416477] sd 2:0:0:0: Attached scsi generic sg0 type 0
      15. [ 5.416514] sd 2:0:1:0: Attached scsi generic sg1 type 0
      16. [ 5.416540] sd 1:0:0:0: Attached scsi generic sg2 type 0
      17. [ 5.416567] sd 3:0:0:0: Attached scsi generic sg3 type 0
      18. [ 5.416592] sd 4:0:0:0: Attached scsi generic sg4 type 0
      19. [ 5.416615] sd 5:0:0:0: Attached scsi generic sg5 type 0
      Display All


      strange I have just one sata controller on my MB I have 5x same seagate hdd and 1 ssd and i can see 2 'link' are in udma5 :

      Source Code

      1. sudo hdparm -I /dev/sd{a,b,c,d,e,f} | grep -i udma
      2. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
      3. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
      4. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
      5. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
      6. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
      7. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
      hum waht 2 sata share an ATA ! like old ide device ! I will look in mobo option soon :

      Source Code

      1. ls -l /sys/block/sd* | sed -e 's@.*-> \.\..*/ata@/ata@' -e 's@/host@ @' -e 's@/target.*/@ @'
      2. /ata2 2 sda
      3. /ata2 2 sdb
      4. /ata3 1 sdc
      5. /ata4 3 sdd
      6. /ata5 4 sde
      7. /ata6 5 sdf
      ok I see on a bios " if you want boot on the 5 or 6 port sata" use ahci mode.
      the boot drive with OMV is on 6
      when I put ahci on port 5 and 6 the SSD drive is not listed in boot drive.

      I will change the sata port for the ssd to try.

      Do you know If I can change sata port drive without problem ?

      The post was edited 6 times, last by Revers62 ().

    • Revers62 wrote:

      Do you know If I can change sata port drive without problem ?
      Yes. OMV doesn't use the drive letters (sdX).
      omv 4.1.23 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • I swap the ssd with a HDD
      All port is now on ahci

      but bad performance

      Source Code

      1. /dev/sda:
      2. Timing buffered disk reads: 238 MB in 3.06 seconds = 77.78 MB/sec


      this ssd is a PNY CS900 240GB SSD capable of sata 6 Gb/s but my Mb is just 3 Gb/s
      I don"t see new firmware ...


      Source Code

      1. === START OF INFORMATION SECTION ===
      2. Device Model: PNY CS900 240GB SSD
      3. Serial Number: PNY11182241350201421
      4. LU WWN Device Id: 5 f8db4c 111801421
      5. Firmware Version: CS900612
      6. User Capacity: 240 057 409 536 bytes [240 GB]
      7. Sector Size: 512 bytes logical/physical
      8. Rotation Rate: Solid State Device
      9. Form Factor: 2.5 inches
      10. Device is: Not in smartctl database [for details use: -P showall]
      11. ATA Version is: Unknown(0x0ff8) (minor revision not indicated)
      12. SATA Version is: SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s)
      13. Local Time is: Wed Nov 7 02:55:43 2018 CET
      14. SMART support is: Available - device has SMART capability.
      15. SMART support is: Enabled
      Display All
      I try some test on other disk

      sda : ssd
      sdb; hdd
      mdo : raid5 ( 5x hdd )

      Source Code

      1. /dev/sda:
      2. Timing buffered disk reads: 238 MB in 3.06 seconds = 77.78 MB/sec
      3. root@nas:~# hdparm -t /dev/sdb
      4. /dev/sdb:
      5. Timing buffered disk reads: 572 MB in 3.01 seconds = 190.13 MB/sec
      6. root@nas:~# hdparm -t /dev/md0
      7. /dev/md0:
      8. Timing buffered disk reads: 2018 MB in 3.00 seconds = 672.47 MB/sec
      9. root@nas:~#
      Display All
      mb ; M5A78L-M LX

      The post was edited 1 time, last by Revers62 ().

    • ryecoaaron wrote:

      I guess updating the kernel won't help since you are using the latest.
      Hi Ryecoaaron

      I just comeback with some information, Hdparm can use --offset

      look at that !

      without offset :

      Source Code

      1. hdparm -t --direct /dev/sda
      2. /dev/sda:
      3. Timing O_DIRECT disk reads: 290 MB in 3.01 seconds = 96.42 MB/sec



      with an offset of 1G :

      Source Code

      1. hdparm -t --direct --offset 1 /dev/sda
      2. /dev/sda:
      3. Timing O_DIRECT disk reads (offset 1 GB): 380 MB in 3.07 seconds = 123.63 MB/sec
      4. root@nas:~# hdparm -t --direct --offset 100 /dev/sda

      and with an offset of 100G

      Source Code

      1. hdparm -t --direct --offset 100 /dev/sda
      2. /dev/sda:
      3. Timing O_DIRECT disk reads (offset 100 GB): 664 MB in 3.00 seconds = 221.13 MB/sec
      4. root@nas:~#

      In my test I can see good speed start at 2G offset.

      It's strange because it's an SSD and I can read :

      --offset Offsets to given number of GiB (1024*1024*1024) when performing -t timings of device reads. Speed changes (about twice) along many mechanical drives. Usually the maximum is at the beginning, but not always. Solid-state drives (SSDs) should show similar timings regardless of offset.


      I add this :

      Source Code

      1. fdisk -l /dev/sda
      2. Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors
      3. Units: sectors of 1 * 512 = 512 bytes
      4. Sector size (logical/physical): 512 bytes / 512 bytes
      5. I/O size (minimum/optimal): 512 bytes / 512 bytes
      6. Disklabel type: dos
      7. Disk identifier: 0xdb978318
      8. Device Boot Start End Sectors Size Id Type
      9. /dev/sda1 * 2048 461002751 461000704 219,8G 83 Linux
      10. /dev/sda2 461004798 468860927 7856130 3,8G 5 Extended
      11. /dev/sda5 461004800 468860927 7856128 3,8G 82 Linux swap / Solaris
      Display All

      The post was edited 2 times, last by Revers62 ().