Disk sleep 的问题

View: New views
7 Messages — Rating Filter:   Alert me  

Disk sleep 的问题

by 张增波 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

大家好!

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

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



--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Disk sleep 的问题

by 任晓磊 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

会不会是磁盘坏了?
用smartctl诊断一下看看

2009/9/23 张增波 <zengbo.zhang@...>
大家好!

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

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

--
Ren Xiaolei

Re: Disk sleep 的问题

by amateur-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


--
Abstract:
        This study examined the incidence of neckwear tightness among a group
of 94 white-collar working men and the effect of a tight business-shirt collar
and tie on the visual performance of 22 male subjects.  Of the white-collar
men measured, 67% were found to be wearing neckwear that was tighter than
their neck circumference.  The visual discrimination of the 22 subjects was
evaluated using a critical flicker frequency (CFF) test.  Results of the CFF
test indicated that tight neckwear significantly decreased the visual
performance of the subjects and that visual performance did not improve
immediately when tight neckwear was removed.
                -- Langan, L. M. and Watkins, S. M. "Pressure of Menswear on the
                   Neck in Relation to Visual Performance."  Human Factors 29,
                   #1 (Feb. 1987), pp. 67-71.


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Disk sleep 的问题

by 任晓磊 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

一直没明白,他们说的spin down到底是啥意思
关闭电动机?

2009/9/23 amateur <tianlei.zhao@...>

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

   hdparm -B 254 /dev/sda

这句话禁止磁盘 automatic spin down
--
Ren Xiaolei

Re: Disk sleep 的问题

by flygun2005 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

估计是长时间没有操作电脑,为了省电关闭了硬盘。

----- Original Message -----
From: 任晓磊

Re: Disk sleep 的问题

by amateur-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 23, 2009 at 01:55:14PM +0800, 任晓磊 wrote:

> 一直没明白,他们说的spin down到底是啥意思
> 关闭电动机?
>
> 2009/9/23 amateur <tianlei.zhao@...>
>
> >
> > 也有可能是 disk 被 spin down 了,或者被置于了 standby 状态。
> > 不知道你启用了 laptop-mode 没有,不要启用这个服务,另外在系统启动脚本
> > 里加一句:
> >
> >    hdparm -B 254 /dev/sda
> >
> > 这句话禁止磁盘 automatic spin down
> >
> --
> Ren Xiaolei
-------------------------
硬盘的机械结构应该清楚吧,就是一个碟片绕着中轴狂转,笔记本操作系统为了
省电,会在没有硬盘操作一段时间之后,自动的将硬盘转速降低(或者不转),
这就是 spin down。

--
Evolution is as much a fact as the earth turning on its axis and going around
the sun.  At one time this was called the Copernican theory; but, when
evidence for a theory becomes so overwhelming that no informed person can
doubt it, it is customary for scientists to call it a fact.  That all present
life descended from earlier forms, over vast stretches of geologic time, is
as firmly established as Copernican cosmology.  Biologists differ only with
respect to theories about how the process operates.
                -- Martin Gardner, "Irving Kristol and the Facts of Life".


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Disk sleep 的问题

by 张增波 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

我没有启动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
>
>
>  


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...