이제 나스도 스피드 스텝 잡아야 하나 봅니다..
- Mactopia
- 1416
- 4
Mactopia님의 기기정보
CPU : XEON 1230 V2
MAINBOARD : ZOTAC Z77 ITX WIFI
GRAPHIC : AMD RX 570 4096 MB
MEM : 16GB XMP
HDD : SAMUNG SSD 830 256GB
PSU : SliverStone SX600-G
Prerequisites
- XPEnoboot 5.1-5022.3
- CPU Power Saving script (Scripts section)
- WinSCP (Tools section)
Attention
If you have an Intel based CPU, make sure that the power setting options in your BIOS is set to ‘OS Controlled‘. In case of the HP Gen 8 micro server, save this setting as ‘User default‘ or else the bios reset bug will reset it at reboot.
Check power state
Before installing the script, let’s check your current CPU power state.
- Start a SSH session to your NAS and login as ‘root‘.
- Type the following command: grep "MHz" /proc/cpuinfo and press Enter.
- Example output of an AMD 2 core processor (HP N54L):
cpu MHz : 2196.380
cpu MHz : 2196.380 - What this shows is that your cores are running at max power and thus using max power consumption.
- Now that we know this we can use the script to bring power state level down to save power. Once the script is enabled the power states are automatically toggled according to the load of the CPU.
Installation
- Download the script for AMD or Intel from the DSM software page, under the Scripts section.
- Download and install WinSCP and make a connection to your NAS. Start ‘WinSCP‘ and start a new connection with protocol ‘SCP‘. Enter the ip address or hostname of your NAS and login as ‘root‘. Click on ‘Login‘ and fill in your password.
- Upload the script to the /usr/local/etc/rc.d/ directory.
- Right click on the script and choose ‘Properties‘ and give it ‘Execution‘ rights for the owner.
- Close WinSCP.
- There is a possibility that after your disk are woken up from hibernation that the power state is overwritten. To fix this you can make an adjustment in crontab that runs the script say every 15 minutes.
- Start a SSH session to your NAS and login as ‘root‘.
- Type the following command: vi /etc/crontab
- Go to the end of the last line, press ‘Insert‘, press ‘Right arrow‘ and press ‘Enter‘. This will get you on the next line.
- Type the following command and use ‘Tab‘ for spacing and use the correct script name accordingly:
*/15 * * * * root /usr/local/etc/rc.d/S99PowersavingAMD.sh - Press ‘Esc‘ and type ‘:wq‘.
- Reboot your NAS.
Check power state again
- After the reboot start a SSH session to your NAS and login as ‘root‘.
- Type the following command: grep "MHz" /proc/cpuinfo and press Enter.
- Example output of an AMD 2 core processor (HP N54L) after applying the script:
cpu MHz : 800.000
cpu MHz : 800.000 - This result shows current power state under no load. When CPU load increases, the power states automatically toggle up so that your CPU runs at higher frequencies. When CPU load decreases, the power state is adjusted accordingly down, saving energy.
- If you want to check if the power state has changed after waking up from hibernation type the following command in SSH:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
If the answer is ‘performance’ that means the governor has been changed. If you check again in a few more minutes (maximum 15) it should revert to ‘conservative‘ due to the crontab schedule.
https://www.xpenology.nl/control-cpu-power-state/
--
아...귀찮은디.....몰랐으면 모를까...힝...
Mactopia
댓글 4
참여를 하시면 세상을 바꿉니다.
Mactopia
Mactopia
뽐뿌에 적용한 사람이 있더군요.?
기본적으로 안드로이드 기기의 가버너 변경과 같은 것이고
30.4와트 나오던게 무려 30으로 줄어든다고 합니다.?
다른 분의 시스템은 39에서 37이 됐고요.?
신경 끄고 그냥 써도 되겠습니다 ㅎㅎ
권한이 없습니다. 로그인
이건 모르고 살렵니다~