trojan-gfw / openwrt-trojan

trojan and its dependencies for OpenWrt
266 stars 115 forks source link

Why show cpumun 1 on my quad core CPU Router? #14

Closed snowrice closed 4 years ago

snowrice commented 4 years ago

Starting Message: multicore_ready is false cpunum is 1

My router is Rpi2B (4 cores) ,but only support single thread?

GreaterFire commented 4 years ago

Duplicate of #13

wongsyrone commented 4 years ago

Post the output of cat /proc/cpuinfo

wongsyrone commented 4 years ago

Make sure reuse_port is true

https://github.com/trojan-gfw/trojan/blob/v1.14.1/examples/client.json-example#L29

snowrice commented 4 years ago

Post the output of cat /proc/cpuinfo

processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

processor : 2 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

processor : 3 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

Hardware : BCM2835 Revision : 2a01041 Serial : 00000000135336e7

snowrice commented 4 years ago

Make sure reuse_port is true

https://github.com/trojan-gfw/trojan/blob/v1.14.1/examples/client.json-example#L29

After I change "reuse_port": true, I got the following output:

multicore_ready is true /etc/rc.common: return: line 38: Illegal number:

wongsyrone commented 4 years ago

OK, will fix it

wongsyrone commented 4 years ago

Fixed via https://github.com/trojan-gfw/openwrt-trojan/commit/1022c33195855426022aa9db74bbfdd49d89dd37

snowrice commented 4 years ago

Thanks for taking workload to fix my issue. The problem of my RPI2 was fixed.