phillymesh / cjdns-optimizations

Testing gcc flags for CJDNS petformance.
4 stars 1 forks source link

Flags for Raspberry Pi 3 and Stretch #5

Open benhylau opened 6 years ago

benhylau commented 6 years ago

One Raspberry Pi 3, since Raspbian Stretch, setting -mfpu CFLAG breaks cjdns compile unless NO_TEST is set. Performance is poor unless -mfpu is set.

See: https://github.com/tomeshnet/prototype-cjdns-pi/issues/85#issuecomment-327195886

darkdrgn2k commented 6 years ago

Stretch compilation is somewhat broken.

You need to turn off tests and compile with -O2 which helps with performance a bit. The resulting binary performance is about 50% of what it should be.

Using a pre-compiled binary from the orange pi (ie cjdns-neon.deb) returns performance back to expected levels.

The same issue occurs on PI 2 (it has the neon accelerator as well)