genesis icon indicating copy to clipboard operation
genesis copied to clipboard

Add task to disable CPU frequency scaling

Open michaeljs1990 opened this issue 7 years ago • 1 comments

This task puts all CPUs into performance mode so they report back the max MHz that they are capable of achieving.

Possibly a more elegant way to do this but I went for what required the least dependencies.

Closes #65

Before running

[root@genesis tasks]# cat /proc/cpuinfo | grep "cpu MH"
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971
cpu MHz		: 2526.971

After Running

[root@genesis tasks]# cat /proc/cpuinfo | grep "cpu MH"
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000
cpu MHz		: 2528.000

lshw also reports 2528 after this task is run.

michaeljs1990 avatar May 25 '17 06:05 michaeljs1990

@roymarantz @defect bump to merge?

byxorna avatar Jun 02 '17 21:06 byxorna