Is posible to tune HDD performance under linux?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fzabkar
    Badcaps Veteran
    • Mar 2009
    • 772
    • Australia

    #21
    Re: Is posible to tune HDD performance under linux?

    I haven't used Linux in a very long time, so I can't help you. In any case I would think that a 3Ware or Linux forum would be better for these kinds of questions.

    Comment

    • hikaruichijo
      Senior Member
      • Aug 2015
      • 123
      • Spain

      #22
      Re: Is posible to tune HDD performance under linux?

      Well, the problem is the 3ware card, and I've found a lot of other forums talking about the poor performance of these cards and didn't found a solution, in my case the cheap sil3112a is a lot faster. Maybe that's why 3ware was bought by another company, bad products... In my case, I'll stay as far as I can from 3ware/amcc products from now and get another card when I can, I'm almoust sure a cheapo sil3114 would perform a lot better.

      In any case I'm using this script, I didn't write it, so no credit for the work, only modified it a bit for my needs.

      #!/bin/bash

      START=0
      INCREMENT=16
      ALLOWDRIFT="50.0"

      speed=0
      try=$(( $START - $INCREMENT ))
      keepgoing=true
      topspeed=0
      topra=0
      answer=""
      #echo "Enable 3Ware cache"
      #tw_cli set cache c2 u0 on
      #tw_cli set cache c2 u1 on
      #tw_cli set cache c2 u2 on
      #tw_cli set cache c2 u3 on
      #echo "OK"
      echo "Wich drive to test? (sda,sdb,sdc)"
      read answer
      echo "Start value?"
      read value
      try=value
      echo "Testing $answer"
      while [[ "${keepgoing}" == "true" ]]; do
      try=$(( $try + $INCREMENT ))
      echo "Top speed is ${topspeed} MB/sec at ${topra} readahead."
      echo -n "Trying $try readahead..."
      blockdev --setra $try /dev/$answer
      speed=$(hdparm -t /dev/$answer | tail -n 1 | awk '{print $11}')
      echo -n " ${speed} MB/sec"

      # Hmm...
      if [ "$(echo "scale=3; ${speed} > ${topspeed}" | bc )" -eq '1' ]; then
      echo -e "\t** TOP SPEED"
      topspeed="${speed}"
      topra="${try}"
      keepgoing=true
      else
      percdiff=$(echo -e "scale=3\n100 - ( ( ${speed} / ${topspeed} ) * 100 )\nquit" | bc)
      if [ "$(echo "scale=3; ${percdiff} < ${ALLOWDRIFT}" | bc)" -eq '1' ]; then
      echo -e "\t${percdiff}% slower"
      keepgoing=true
      else
      echo -e "\t${percdiff}% slower, bailing..."
      keepgoing=false
      fi
      fi

      done

      echo -e "Looks like the best speed of ${topspeed} MB/sec is achieved with a readahead of ${topra}.\n"



      It works for any drive/controler so it may be usefull for anyone that want to improbe the performance of their hdds under linux.

      Comment

      Related Topics

      Collapse

      • Document Archive
        Microsoft Surface Book Surface Book with Performance Base Hybrid (2-in-1) Specification for Upgrade or Repair
        by Document Archive
        This specification for the Microsoft Surface Book Surface Book with Performance Base Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the Surface Book with Performance Base boardview and Surface Book with Performance Base schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please...
        09-06-2024, 08:20 AM
      • Document Archive
        ASUS VivoBook Performance Laptop Notebook Pro Specification for Upgrade or Repair
        by Document Archive
        This specification for the ASUS VivoBook Performance Laptop Notebook can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the Performance Laptop boardview and Performance Laptop schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet,...
        09-06-2024, 07:00 AM
      • VaNDAL_UK
        Altec PC410 Auto PID Tune
        by VaNDAL_UK
        Hi,

        Anyone know how to get the Altech PC410 to initiate a P.I.D Tune?

        I can see the option, turn it on and it just flashed "tune" but nothing happens. Even tried running a profile after selecting tune.

        I remember doing it years ago on another machine but for the life of me I can't work it out this time.

        TIA.
        11-13-2024, 02:58 PM
      • mr.malcom
        HP 17-cd0606ng no Windows or Linux Boot, exept idle=poll Boot-Parameter
        by mr.malcom
        Hello,

        this is a very strange Problem:

        Notebook hang instantly on Boot. BIOS is accesable.
        Windows: instant after showing "loading circle", even Windows Boot Stick hang instant (even without installed SSD/NVME )
        Linux: instantly (if Linux Boot in leagacy Mode with log messages: Machine Check exception after 0.25 sec)

        i have tried:
        - only one RAM Stick, another working RAM, both RAM channel
        - BIOS Flash to newest Version F.50, BIOS Reset
        - Memtest86 hang instant at Test 2
        - HP UEFI Diagnostic wont find...
        02-26-2022, 05:19 AM
      • tsavpyn
        Requests to Intel Flash Programming Tool for Linux Ubuntu x86_64
        by tsavpyn
        Dear all,
        I forgot my BIOS password of my Surface Pro 3, I searched for solutions for a long time and knew that by using FPT to dump my bios to bin file and using decryptor, I can get my BIOS password.
        Now I have a problem that I am unable to dump my BIOS into bin file.

        My Surface Pro 3 currently runs on Ubuntu 22.04, with Secure Boot enabled and Boot From SSD Only.

        I searched for FPT but there is no Linux version and none of them work.
        I hereby request a copy of Intel Flash Programming Tool for Linux x64.
        I would really appreciate it if anyone...
        05-28-2024, 11:18 PM
      • Loading...
      • No more items.
      Working...