Does this WRT1900AC CPU Speed seem right?

Hi all! Loving this firmware, but I want to make sure that this WRT1900AC is running properly.

I've got the v1 (mamba) and I have suspicions that it is running below normal speeds. I had an old version of DDWRT installed and it would report that the CPU speed was always at 600MHz.
Now, I'm running OpenWrt GCC 7.3.0 r7093-4fdc6ca31b and I do not see anywhere in LuCi that reports the CPU speed.
I can see that it is at least detecting both cores:

root@OpenWrt:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 25.00
Features        : half thumb fastmult vfp edsp vfpv3 tls idiva idivt vfpd32 lpae 
CPU implementer : 0x56
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0x584
CPU revision    : 2

processor       : 1
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 25.00
Features        : half thumb fastmult vfp edsp vfpv3 tls idiva idivt vfpd32 lpae 
CPU implementer : 0x56
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0x584
CPU revision    : 2

Hardware        : Marvell Armada 370/XP (Device Tree)
Revision        : 0000
Serial          : 0000000000000000

So, I'm asking if that CPU info looks right for a WRT1900AC V1.
If it looks correct, great! If not, what can I do?
I WOULD like to take advantage of the built-in fan and overclock this thing as I've overclocked my RT-AC68R to 1400MHz and it screams. :slight_smile:

See files under:

/sys/devices/system/cpu/cpufreq/policy0

but I am scratching my head now. I thought that after the mamba reboot issue being addressed that this device was running at 100%, and if those are accurate they would indicate 50%. Could maybe try changing the governor setting.

Here are the contents of the policy0 files:

root@OpenWrt:/sys/devices/system/cpu/cpufreq/policy0# tail -n +1 ./*
==> ./affected_cpus <==
0 1

==> ./cpuinfo_cur_freq <==
600000

==> ./cpuinfo_max_freq <==
1200000

==> ./cpuinfo_min_freq <==
600000

==> ./cpuinfo_transition_latency <==
1000000

==> ./related_cpus <==
0 1

==> ./scaling_available_frequencies <==
600000 1200000 

==> ./scaling_available_governors <==
ondemand performance 

==> ./scaling_cur_freq <==
600000

==> ./scaling_driver <==
cpufreq-dt

==> ./scaling_governor <==
ondemand

==> ./scaling_max_freq <==
1200000

==> ./scaling_min_freq <==
600000

==> ./scaling_setspeed <==
<unsupported>

Adjusting the scaling_governor to performance did change the scaling_cur_freq to 1200000:

root@OpenWrt:/sys/devices/system/cpu/cpufreq/policy0# tail -n +1 ./*
==> ./affected_cpus <==
0 1

==> ./cpuinfo_cur_freq <==
1200000

==> ./cpuinfo_max_freq <==
1200000

==> ./cpuinfo_min_freq <==
600000

==> ./cpuinfo_transition_latency <==
1000000

==> ./related_cpus <==
0 1

==> ./scaling_available_frequencies <==
600000 1200000 

==> ./scaling_available_governors <==
ondemand performance 

==> ./scaling_cur_freq <==
1200000

==> ./scaling_driver <==
cpufreq-dt

==> ./scaling_governor <==
performance

==> ./scaling_max_freq <==
1200000

==> ./scaling_min_freq <==
600000

==> ./scaling_setspeed <==
<unsupported>

Would this survive a reboot?
Has anyone successfully OC'd one of these chips/chassis?

Now that it might be running at at least 100%, maybe I won't feel the need to OC, ha!

Changes in sysfs don't survive a reboot, they're only runtime knobs.

I assume this is going to run hot, you may want to grab this, and adjust parameters accordingly.

I see. Is there a place to put startup scripts. I could just make a simple echo script to set this at boot, I suppose.
If there is a better way or if this is something that is actually broken, please let me know.

1 Like

/etc/rc.local is kind of a catch-all bucket, not perfect, but often used for things like this.

Thanks for mentioning /etc/rc.local.
I found in LuCi, I can easily add commands to rc.local here:
/cgi-bin/luci/admin/system/startup

@anomeome Thanks! I am learning how to add packages right now so I can configure the fan with your tool.

Wow, thanks for pointing me to that! I needed it, apparently:
image

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor