HDD vypinanie a zapinanie

Sekcia: Hardware a Drivery 28.03.2010 | 11:19
Avatar johnnycage Debian Testing, GNOME 2.28.2  Používateľ
Zdravim.
Pouzivam notebook Lenovo G550. Je tam pevny disk WD Scorpio Blue 320 GB SATA Hard Drives (WD3200BEVT). Neviem ako by som to popisal, ale mam pocit, ako keby sa disk kazdu chvilku vypinal, resp. zapinal. Napr. niekedy 2x, niekedy 3x za minutu sa disk akoby znovu rozbiehal. Toto sa deje normalne za chodu systemu. Pri praci to vyzera asi tak, ze ked napriklad pozeram film, tak pri tomto "nabiehani" sa film na 1-2 sekundy zasekne a po tomto case, ked uz disk bezi ako ma sa rozbehne aj film (toto nabiehanie je aj pocut, teda akoby sa zvysovali otacky + spominane zaseknutie systemu na 1-2 sekundy). Stava sa to v podstate pri kazdej praci. Idem otvorit Nautilus a ked sa disk zacne rozbiehat, tak sa vsetko na chvilku zasekne. Deje sa to ci uz pri napajani zo siete, alebo na bateriu. Notebook pouzivam v podstate kazdy den od Septembra roku 2009, cize cca nejakeho pol roka. V prilohe zasielam vypis S.M.A.R.T.-u. Ak by boli treba este nejake informacie, samozrejme ich poskytnem. Rad by som vedel, ci to je nejaka vada, alebo to tak ma byt, ci to disku skodi, alebo nie, ci to znizuje zivotnost, ci by nebolo lepsie to odstranit. V podstate teda by som rad ziskal nejake informacie o tomto "jave". OS pouzivam Debian Testing, Gnome 2.28.2, Kernel 2.6.32, teplota disku sa pohybuje v okoli 44°C.
    • Re: HDD vypinanie a zapinanie 28.03.2010 | 11:20
      Avatar johnnycage Debian Testing, GNOME 2.28.2  Používateľ
      Tu je vypis S.M.A.R.T.-u:


      smartctl 5.40 2010-02-03 r3060 [i686-pc-linux-gnu] (local build)
      Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

      === START OF INFORMATION SECTION ===
      Model Family: Western Digital Scorpio Blue Serial ATA family
      Device Model: WDC WD3200BEVT-22ZCT0
      Serial Number: WD-WXF0A59T6302
      Firmware Version: 11.01A11
      User Capacity: 320 072 933 376 bytes
      Device is: In smartctl database [for details use: -P show]
      ATA Version is: 8
      ATA Standard is: Exact ATA specification draft version not indicated
      Local Time is: Sat Mar 27 21:49:28 2010 CET
      SMART support is: Available - device has SMART capability.
      SMART support is: Enabled

      === START OF READ SMART DATA SECTION ===
      SMART overall-health self-assessment test result: PASSED

      General SMART Values:
      Offline data collection status: (0x00) Offline data collection activity
      was never started.
      Auto Offline Data Collection: Disabled.
      Self-test execution status: ( 0) The previous self-test routine completed
      without error or no self-test has ever
      been run.
      Total time to complete Offline
      data collection: (9960) seconds.
      Offline data collection
      capabilities: (0x7b) SMART execute Offline immediate.
      Auto Offline data collection on/off support.
      Suspend Offline collection upon new
      command.
      Offline surface scan supported.
      Self-test supported.
      Conveyance Self-test supported.
      Selective Self-test supported.
      SMART capabilities: (0x0003) Saves SMART data before entering
      power-saving mode.
      Supports SMART auto save timer.
      Error logging capability: (0x01) Error logging supported.
      General Purpose Logging supported.
      Short self-test routine
      recommended polling time: ( 2) minutes.
      Extended self-test routine
      recommended polling time: ( 118) minutes.
      Conveyance self-test routine
      recommended polling time: ( 5) minutes.
      SCT capabilities: (0x303f) SCT Status supported.
      SCT Feature Control supported.
      SCT Data Table supported.

      SMART Attributes Data Structure revision number: 16
      Vendor Specific SMART Attributes with Thresholds:
      ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
      3 Spin_Up_Time 0x0027 189 186 021 Pre-fail Always - 1550
      4 Start_Stop_Count 0x0032 038 038 000 Old_age Always - 62852
      5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
      7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0
      9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 1906
      10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0
      11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
      12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 445
      192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 49
      193 Load_Cycle_Count 0x0032 177 177 000 Old_age Always - 70715
      194 Temperature_Celsius 0x0022 103 095 000 Old_age Always - 44
      196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
      197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
      198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
      199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
      200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0

      SMART Error Log Version: 1
      No Errors Logged

      SMART Self-test log structure revision number 1
      Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
      # 1 Short offline Completed without error 00% 1906 -
      # 2 Short offline Completed without error 00% 55 -
      # 3 Short offline Completed without error 00% 0 -

      SMART Selective self-test log data structure revision number 1
      SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
      1 0 0 Not_testing
      2 0 0 Not_testing
      3 0 0 Not_testing
      4 0 0 Not_testing
      5 0 0 Not_testing
      Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
      If Selective self-test is pending on power-up, resume after 0 minute delay.
      • Re: HDD vypinanie a zapinanie 28.03.2010 | 15:11
        WlaSaTy   Návštevník
        4 Start_Stop_Count 0x0032 038 038 000 Old_age Always - 62852

        hmmm. to ty si aktivoval laptop mode alebo je to vypinanie disku zalezitostou vadneho firmware ako som to zazil ja?
        • Re: HDD vypinanie a zapinanie 28.03.2010 | 16:39
          Avatar johnnycage Debian Testing, GNOME 2.28.2  Používateľ
          Praveze laptop mode mam vypnuty:
          # cat /proc/sys/vm/laptop_mode 
          0
          

          ... inak pozeral som datasheet k mojmu disku a konkretne tam bola uvedena aj hodnota Load_Cycle_Count. Maximum je 600.000 a moj disk ukazuje po cca pol roku pouzivania nejakych 70.000. Hladal som v datasheete aj polozku Start_Stop_Count, ale tu som tam nenasiel. Neviem, ci to ma nieco spolocne s polozkou Start_Stop_Count, ale cislo je take podobne.
          • Re: HDD vypinanie a zapinanie 28.03.2010 | 20:24
            WlaSaTy   Návštevník
            Laptop mode je zbierka nastaveni ktora umoznuje setrenie. A nastavenie vypinania disku je len jeden z jeho aspektov.

            Ako je nastavena sluzba hdparm, ak ju teda za sluzbu mozeme povazovat?

            • Re: HDD vypinanie a zapinanie 28.03.2010 | 21:50
              Avatar johnnycage Debian Testing, GNOME 2.28.2  Používateľ
              hdparm je nastaveny na:
              # hdparm -B /dev/sda
              
              /dev/sda:
               APM_level	= 128

              skusal som aj uplne vypnutie, teda nastavit parameter 254 a teplota mi stupla na nejakych 51°C a tam aj zostala. Len teraz neviem, ci je to dobry napad uplne vypnut ten spin-down, ci sa nebude viacej ten disk prehrievat, alebo ci to nebude nejako skodit otrasom, ked cestujem napr. vo vlaku.
              • Re: HDD vypinanie a zapinanie 28.03.2010 | 22:27
                WlaSaTy   Návštevník
                Ak casto cestujes vlaom a tvoj mechanicky disk nema gyro senzor, tak sa s tym neoplati zaoberat. Asi uz vies preco.

                Inak, spindown nie je na znizenie teploty aj ked je to jeho vedlajsim efektom. Rovnako, ako pri vypnuti celeho pocitaca.

                • Re: HDD vypinanie a zapinanie 31.03.2010 | 15:41
                  Avatar partizan Arch  Používateľ
                  Je to jednoznacne hdparm nastavenim, je tiez dost otazne co ti takto disk nastavy.
                  Ale inac si to vies nastavit hdparm -S 12 /dev/sdx

                  -S Put the drive into idle (low-power) mode, and also set the standby (spindown) timeout for the drive. This timeout value is used by the drive to determine how long to wait (with no disk activity) before turning off the spindle motor to save power. Under such circumstances, the drive may take as long as 30 seconds to respond to a subsequent disk access, though most drives are much quicker. The encoding of the timeout value is somewhat peculiar. A value of zero means "timeouts are disabled": the device will not automatically enter standby mode. Values from 1 to 240 specify multiples of 5 seconds, yielding timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5 hours. A value of 252 signifies a timeout of 21 minutes. A value of 253 sets a vendor defined timeout period between 8 and 12 hours, and the value 254 is reserved. 255 is interpreted as 21 minutes plus 15 seconds. Note that some older drives may have very different interpretations of these values.
                  Arch & Metal
                  • Re: HDD vypinanie a zapinanie 01.04.2010 | 00:16
                    WlaSaTy   Návštevník
                    Ano. Zaparkuje to hlavicky a vypne motor pohanajuci platne pricom elektronika ostane pod napajanim. V case SATA diskov to znamena to iste co v case SCSI diskov.Teda ze ho vypne, podobne ako ked vypnes telku dialkovym.

                    Preto su tam take vysoke cisla pri vypinani a zapinani.

                    Ale, myslim ze tato diskusia stratila zmysel uz davno.

                    PS.: ja spindown nepouzivam nakolko sa nejedna o riesenie ale o barlu.
                    • Re: HDD vypinanie a zapinanie 01.04.2010 | 14:07
                      Avatar johnnycage Debian Testing, GNOME 2.28.2  Používateľ
                      Nie som si celkom isty, ale prepalim som BIOS z verzie 2.02 na najnovsiu verziu, teda 2.51 a zda sa mi, ze to akoby vypinanie a znovu nastartovanie HDD zmizlo. Teda disk uz len parkuje hlavicky tak ako predtym, ale nevypina sa a nezapina sa znovu. Takze uz sa system nezasekava na tych 1-2 sekundy, ako predtym.
                      • Re: HDD vypinanie a zapinanie 01.04.2010 | 21:09
                        WlaSaTy   Návštevník
                        Ono, mozne je ze v baliku firmware pre ten stroj bol aj firmware pre disk alebo len bios zle nastavil pociatocne nastavenie pri starte. Ale skus sa pozriet aj na akusticky managenment a APM v programe hdparm. Ja som ten moj stary bug vyriesil takto.