[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disk sleep 的问题



我没有启动laptop-mode,根本就没有装。 按照这个方法

hdparm -B 254 /dev/sda

也没有用,不知道是什么问题。 smartctl 结果:

smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family:     Fujitsu MHV series
Device Model:     FUJITSU MHV2080BH
Serial Number:    NW05T6827U26
Firmware Version: 00840028
User Capacity:    80,026,361,856 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 4a
Local Time is:    Wed Aug  5 16:10:22 2009 CST
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:                ( 471) 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:       (  55) minutes.
Conveyance self-test routine
recommended polling time:       (   2) minutes.
SCT capabilities:             (0x003d) 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     0x000f   100   100   046    Pre-fail  Always       -       236717
 2 Throughput_Performance  0x0005   100   100   030    Pre-fail  Offline      -       24510464
 3 Spin_Up_Time            0x0003   100   100   025    Pre-fail  Always       -       1
 4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       2495
 5 Reallocated_Sector_Ct   0x0033   100   100   024    Pre-fail  Always       -       8589934592000
 7 Seek_Error_Rate         0x000f   100   100   047    Pre-fail  Always       -       2579
 8 Seek_Time_Performance   0x0005   100   100   019    Pre-fail  Offline      -       0
 9 Power_On_Seconds        0x0032   093   093   000    Old_age   Always       -       3736h+12m+30s
10 Spin_Retry_Count        0x0013   100   100   020    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1213
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       191
193 Load_Cycle_Count        0x0032   098   098   000    Old_age   Always       -       49459
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       42 (Lifetime Min/Max 11/50)
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       74
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       451674112
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000f   100   100   060    Pre-fail  Always       -       19695
203 Run_Out_Cancel          0x0002   100   100   000    Old_age   Always       -       433741562044
240 Head_Flying_Hours       0x003e   200   200   000    Old_age   Always       -       0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]
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.




现在怀疑是

5 Reallocated_Sector_Ct   0x0033   100   100   024    Pre-fail  Always       -       8589934592000

出了问题,raw值太不正常了。不晓得这样分析对不对。


amateur 写道:
On Wed, Sep 23, 2009 at 10:13:22AM +0800, 张增波 wrote:
大家好!

我发现svn update进程经常挂在disk sleep状态,很久无法恢复运行,qemu-arm模
拟器有时也是因此等半天,不知道哪位有经验,说说为什么,怎么改善呢?

我用的是联想T60,Debian Testing 版本,文件系统ext3,空间占用约90%。

-------------------------
也有可能是 disk 被 spin down 了,或者被置于了 standby 状态。
不知道你启用了 laptop-mode 没有,不要启用这个服务,另外在系统启动脚本
里加一句:

    hdparm -B 254 /dev/sda

这句话禁止磁盘 automatic spin down




Reply to: