|
|
发表于 2009-5-31 18:59:17
|
显示全部楼层
环境温度 27.5°C,硬盘 39°C。
我试用了一下 dreamawake 的方法。感觉她的方法比我那个调节内核参数的办法要好,最重要的是,在确保不增加 Load_Cycle_Count 的情况下,硬盘温度也不会增加多少(与 Arch 默认的硬盘 APM 值 100 的情况相比)。
不过我发现,dreamawake 的方法实质上,只是把硬盘的 APM 值设为 128 而已。因此,理论上并没有必要特意写个执行脚本。可是另人郁闷的是,如果只是单纯将APM 值设为 128,那么每查询一次 Load_Cycle_Count 就会加 1(我也不知道为什么)。而用 dreamawake 的执行脚本则不存在这样的问题(其实也存在,只是间隔时间要长一些)。
- HDPARM(8)
- ...
- -B Query/set Advanced Power Management feature, if the drive sup‐
- ports it. A low value means aggressive power management and a
- high value means better performance. [color=blue]Possible settings range
- from values 1 through 127 (which permit spin-down), and values
- 128 through 254 (which do not permit spin-down). [/color] The highest
- degree of power management is attained with a setting of 1, and
- the highest I/O performance with a setting of 254. A value of
- 255 tells hdparm to disable Advanced Power Management altogether
- on the drive (not all drives support disabling it, but most do).
复制代码 Ubuntu 当前的策略(看了下相关代码),实际上是:如果在用电池,就将硬盘 APM 设为 128;如果在用交流电,就将 APM 设为 254。而多数人用交流电的,所以,硬盘一定会相当热吧。 |
|