You are not logged in.

#1 2016-10-21 21:19:32

CyberNhull
Member
Registered: 2013-01-27
Posts: 99

Problems with cpu frequency

Hello, i have made 2 scripts to limit the cpu frequency to 2.4Ghz and one to disable the turbo boost. They execute on boot as services.
Today i notice both on KDE and Gnome when i'm watching a video on youtube with Opera or Google Chrome the CPU goes up 2.40 to 3.40 like when it had turbo boost on. Anyone knows why this happens?
I think the problem might be the scripts are applying the limits to one core and not to the four core i have. If anyone could confirm this it would be apreciated big_smile.

These are my scripts:

Limit Min CPU Frequency:

[Unit]
Description= Minimum CPU Frequency

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"

[Install]
WantedBy=multi-user.target

Limit Max CPU Frequency:

[Unit]
Description=Max CPU Frequency

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 2400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"

[Install]
WantedBy=multi-user.target

No Turbo Boost:

[Unit]
Description=NoTurbo

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"

[Install]
WantedBy=multi-user.target

Screenshot of what's happening:
http://imgur.com/TD6JacB


If it does not kill you....It will make you smarter

Offline

Board footer

Powered by FluxBB