Rc.local setting

HI,

I wondered if I can add this to the rc.local with the wrt3200 hardware?

echo 600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

Without knowing the effect of the values you set, yes you can.

2 Likes

I thought it was a standard?

also, I think I see that one here somewhere:

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 933000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 933000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 933000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 30 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

Standard for what ?

Yes, it's right below this ^ text line.

1 Like

you are funny :wink:

@Peacefuleight - if you're seeking assistance, it may help to provide clear, detailed information.

I'm confused about the discussion of "what's a standard". If you're referring to manipulating the settings in /sys - it's not clear why you're mentioning they're a standard.

  • Are you seeking further assistance aside from the "yes you can" that has been given?
  • Are you seeking a more detailed, technical response (i.e. specific to the scaling commands)?

hi, thank you, yes please. With my wrt3200, which commands would be the best in rc.local, to achieve the best performance?
thanks

what makes you believe it's not already running optimally ?

You do not need to place commands "in rc.local, to achieve the best performance". Because of this, the basis of your inquiry isn't clear. If you wish to elaborate, we may be able to better assist you.

cause on the forum I can see many talk about that in rc.local, so I thought I should too. ?

1 Like

does those discussions mention your router or SoC, specifically ?

1 Like

my router wrt3200acm yep

1 Like

Thank you for offering some clarity. Can you provide a link to these postings (i.e. paste a link to what you're blindly referencing)?

I've searched the Forums for "rc.local" and "scaling" - I've found no results similar to what you described.

https://forum.openwrt.org/t/divested-wrt-no-nonsense-hardened-builds-for-linksys-wrt-series/80522/18

1 Like

From the linked thread:

Divested-WRT != official OpenWrt

Additionally, I see nothing on the post linked about rc.local - can you elaborate?
I see a comment a few posts following the one linked with the commands, but there is no details nor explanation.

It may also be a good idea to Private Message the users that discussed the topic.

2 Likes

if you click on my link above, you see the thread #18 on the page, it is what I see here

Have you done a cat of those parameters, to see their current values ?

1 Like

I dont have cpufreq in cpu0 or 1

Changes like this should not be necessary.

What are you trying to achieve?
You're likely hitting the DSA mvebu limitations.

2 Likes

thank you, do you think I can enable the hardware accelerator with cryptodev ?
I think the openssl.cnf has been changed ?
thanks