脚本宝典收集整理的这篇文章主要介绍了Ubuntu系统运行时降低硬盘占用的相关尝试,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
APM_level的全称为Advanced Power Management level,即(硬盘)高级电源管理级别.
man hdparm 可见:
Get/set Advanced Power Management feature, if the drive supports IT.
A low value means aggressive power management and a high value means better PErformance.
Possible settings range From values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down).
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).
该值的取值范围为1~255,值越大,硬盘性能越高,其中255表示关闭硬盘/dev/sda的电源管理,254表示在开启电源管理下的最高性能,1表示最低的硬盘性能但最省电.
这个值在1~127区间时允许spin-down,在128~254这个区间则禁止spin-down.
spin-down是指在闲置时挂起硬盘,停止转动,但是频繁的spin-down和spin-up会使硬盘寿命变短.
所以,即使你追求节能,减少发热量,也建议你将该值设为128,执行以下命令即可:
注意: 设置APM后执行以下命令查看Load_Cycle_Count值
以上是脚本宝典为你收集整理的Ubuntu系统运行时降低硬盘占用的相关尝试全部内容,希望文章能够帮你解决Ubuntu系统运行时降低硬盘占用的相关尝试所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。