onsdag 9 november 2016

Set CPU Frequency on Raspberry Pi in FreeBSD

While benchmarking I noticed very low results with FreeBSD. Apparently the Raspberry Pi 2 is locked to the low frequency of 600MHz, while in Ubuntu a governor scales it between 600 and 900.
My first try was to edit /boot/msdos/CONFIG.TXT but the different overclocking values applicable for Linux did not affect FreeBSD.

The solution was to enable powerd in FreeBSD.

Add the following to /etc/rc.conf
powerd_enable="YES"
powerd_flags="-a hadp"

That will enable powerd to utilize frequency scaling from 600MHz to 900MHz depending on load. hadp means hiadaptive mode and is a scaling leaning towards more performance.
You can read more via "man powerd" and also try out different modes live, by running for example:
powerd -v -a hadp

Sources:
vzaigrin
nobugware

Inga kommentarer:

Skicka en kommentar