My laptop is AMD A9-9425 with 12gb ram 1 tb hdd running FreeBSD 13.2 RC5 with Xorg LXQT SDDM installed and running.
Following changes made to stock FreeBSD install
These above changes were done primarily keeping the laptop use for a student or programmer
powerd was stock no changes.
powerdxx was started as
This was to to mimic the default behaviour of powerd for sampling every 250ms
rest both powerd and powerxx were using all default values.
Initial test done basically to see idle performance which C states are entered most and which lowest frequency is hit at idle. This test was done on AC power.
System was booted to SDDM login screen.
switched to terminal ctrl+alt+F1 and logged in as root. htop started and left for 4-5mins
What I found was powerdxx uses CPU to the extent of being seen on htop as is evident in screen shot.
the min frequency 1400mhz was hit large number of times but hardly anything above 2000mhz was hit at idle BUT cpu entered less into C2 states which is surprising as lowest frequency was hit.
using powerd the cpu entered much more into C2 states but the cpu freq hardly hit the minimum 1400mhz
it touched highest 3100mhz and lowest was 1800mhz
1400mhz was blink and miss
Observed powerdxx uses much more cpu time than powerd.
Also one more observation is
dev.cpu.freq_levels did not show turbo boost frequency which for this processor is 3.7ghz
Following changes made to stock FreeBSD install
Code:
kern.hz=500
kern.preempt_thresh=171
kern.eventtimer.timer=HPET
performance_cx_lowest=Cmax
economy_cx_lowest=Cmax
These above changes were done primarily keeping the laptop use for a student or programmer
powerd was stock no changes.
powerdxx was started as
Code:
powerd++ -v -s1 -p.25s
This was to to mimic the default behaviour of powerd for sampling every 250ms
rest both powerd and powerxx were using all default values.
Initial test done basically to see idle performance which C states are entered most and which lowest frequency is hit at idle. This test was done on AC power.
System was booted to SDDM login screen.
switched to terminal ctrl+alt+F1 and logged in as root. htop started and left for 4-5mins
What I found was powerdxx uses CPU to the extent of being seen on htop as is evident in screen shot.
the min frequency 1400mhz was hit large number of times but hardly anything above 2000mhz was hit at idle BUT cpu entered less into C2 states which is surprising as lowest frequency was hit.
using powerd the cpu entered much more into C2 states but the cpu freq hardly hit the minimum 1400mhz
it touched highest 3100mhz and lowest was 1800mhz
1400mhz was blink and miss
Observed powerdxx uses much more cpu time than powerd.
Also one more observation is
dev.cpu.freq_levels did not show turbo boost frequency which for this processor is 3.7ghz