In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to reduce the hard disk occupation when the Ubuntu system is running". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to reduce the hard disk occupation when the Ubuntu system is running".
The code is as follows:
Sudo hdparm-B / dev/sda
It can be seen that the APM_ level of the hard disk / dev/sda is 254, which means that the performance of the hard disk is maximized, which requires a high level of hard disk speed, and the heat generated by the hard disk is naturally large.
If you return
The code is as follows:
/ dev/sda: APM_level = not supported
Your hard drive does not support APM (Advanced Power Management).
The full name of APM_level is Advanced Power Management level, which is the advanced power management level.
The man hdparm is visible:
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 128through 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 255tells hdparm to disable Advanced Power Management altogether on the drive (not all drives support disabling it, but most do).
The range of values is 1mm 255. the higher the value, the higher the hard disk performance. 255indicates that the power management of the hard disk / dev/sda is turned off, 254indicates the highest performance when power management is turned on, and 1 indicates the lowest hard disk performance but the most power saving.
This value allows spin-down in the range of 1 to 127 and forbids spin-down in the range of 128 to 254.
Spin-down means to hang the hard drive and stop spinning when it is idle, but frequent spin-down and spin-up will shorten the life of the hard drive.
Therefore, even if you pursue energy conservation and reduce calorific value, it is recommended that you set this value to 128 and execute the following command:
The code is as follows:
Sudo hdparm-B128 / dev/sda
My operating system is Ubuntu 14.04 (Kernel 3.14). I set this value to 128. when the temperature is 26 degrees, the temperature of the hard drive is only 36 degrees (contrast: the CPU temperature is 39 degrees).
If set to 254, the hard disk temperature will even climb to 45 degrees, although this is still a normal hard disk temperature, but for notebook users, the heat generated near the hard disk is easy to detect.
In addition, the continuous high-speed rotation of the motor will also accelerate and reduce the life of the hard disk.
To make a tradeoff between performance and energy saving, the individual sets the APM_level to 192 and allows it to power on automatically, and add it to / etc/rc.local:
The code is as follows:
Hdparm-B 192 / dev/sda
If / etc/rc.local does not work, you can add it to / etc/hdparm.conf:
The code is as follows:
/ dev/sda {
Apm = 192
Apm_battery = 192
}
Apm means that in AC power mode, apm_battery means in battery power mode.
Note: after setting APM, execute the following command to view the Load_Cycle_ count value
The code is as follows:
Sudo smartctl-a / dev/sda | grep Load_Cycle_Count
If the Load_Cycle_ count value is increasing every minute, you should set the APM value back to the original 254. the method can be modified in / etc/hdparm.conf.
Execute a command
The code is as follows:
Sudo hdparm-B 254 / dev/sda
Take effect immediately, and the configuration will take effect after restart.
Because the frequent Load/Unload of the magnetic head will also affect the life of the hard disk, the average hard disk design can withstand a maximum load cycle count of 600000 Load_Cycle_Count.
Thank you for your reading, the above is the content of "how to reduce the hard disk occupation when the Ubuntu system is running". After the study of this article, I believe you have a deeper understanding of how to reduce the hard disk occupation when the Ubuntu system is running, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.