Davidc502- wrt1200ac wrt1900acx wrt3200acm wrt32x builds

Care to share 5.11 patchset please? I don't have time for development right now :frowning:

nitroshift

@anon68513369 Hi,

Have you shared your latest build? If not can you please share with us since you seem to have made some nice changes to it. I use the wrt3200acm.

Also anyone here using ddns with snapshot? for the life of me I cannot get it to work with duckdns (works fine with DavidC build as well as the official ones). I tried using the script form the website as well as adding directly with the web interface (wget/curl/ca-certifiates/with or without SSL) and I don't seem to be able to make it work.
If it is an issue with duckdns I don't mind using a different one I only need it for smartproxydns to work that's all.

Ty building it as we speak :slight_smile:

Link to 5.11 patches is in a previous post by @mj82, they are not mine.

Hello Kar200,

I don't have a build with duckdns, however I have a build with squid, dnsmasq full with dnssec, dnscrypt-proxy2,adblock and manual packages smartdns, ddns.

I'm building a new version now, with some extra's

Thanks . Duckdns is only the service and it uses ddns. I am still interested please.
Adblock-ddns and that's about it really . I mean I can always add them if it's based on the latest master branch .

Not solved for me :slight_smile:

Try transferring some files that will increase the buffer.

Aaah oké, I can build the package....because my kernel is a special build. With no compability with the trunk/master kernels.
Only ipk without kmod or special libs can be added from the opkg.

I have included ddns in the build

Thanks a lot I will download and install when it becomes available.

I don't keep my hopes up for ddns but let's wait and see.

By the way do you publish your code on GitHub or anywhere else ?

Yhea I tried, using free -m I can see that there is a small buffer:

Mem: 509000 53200 426188 9796 29612 417052

However: cat /proc/meminfo

MemTotal:         509000 kB
MemFree:          425976 kB
MemAvailable:     416844 kB
Buffers:               0 kB
Cached:            29612 kB
SwapCached:            0 kB
Active:             8224 kB
Inactive:          36940 kB
Active(anon):        252 kB
Inactive(anon):    17076 kB
Active(file):       7972 kB
Inactive(file):    19864 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         509000 kB
LowFree:          425976 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         15564 kB
Mapped:            11416 kB
Shmem:              9796 kB
KReclaimable:       3048 kB
Slab:              18804 kB
SReclaimable:       3048 kB
SUnreclaim:        15756 kB
KernelStack:         728 kB
PageTables:          428 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      254500 kB
Committed_AS:      34444 kB
VmallocTotal:     507904 kB
VmallocUsed:        5444 kB
VmallocChunk:          0 kB
Percpu:              232 kB

I can't remember I ever sa a question mark in OpenWRT before.

Best Regards,

My config and all packages are included in de download link.
I still admire and support the open community openwrt!

I'm building right now. Check my post and download link tomorrow.

May I ask what kernel changes you made, low latency kernel etc?

I pulled out all gnutls, mbedtls, wolfssl....put in special openssl.conf, the whole router works with openssl 1.1.1i liberaries. I selected almost all crypto cyphers

The gnutls can be removed from .config without warnings....however it is selected in the standard build profile.
I run make with a gcc 9 compiler
I have selected px5g standalone
And a lots more.

But the main improvement is openssl as the only ssl liberary and tests have shown that openssl is the fastest especially for arm devices with enough memory and multiple tasks and with marvell arm chipsets.

I'll post my .config and profile and of course the images when I'm really satisfied with my build!
You can even have my VM, it's a standard osboxes Ubuntu server 20.04 with build essential and downloaded openssl source, that's about it.

Re: openssl, a lot of performance considerations are baked into the package makefile, NEON, GCC settings. So unless you are modifying that file...

For instance I use -O2 in my build, but as you can see below, it is built with -O3; some output of a benchmark run on a rango.

data output
********  Test openssl  *********
Wed Jan  6 19:03:51 MST 2021

*********************************
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r15421-e0a95d03c1'
DISTRIB_TARGET='mvebu/cortexa9'
DISTRIB_ARCH='arm_cortex-a9_vfpv3'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r15421-e0a95d03c1'
DISTRIB_TAINTS='no-all busybox'
Linux bsaedgy 5.10.5 #0 SMP Sun Jan 3 11:58:11 2021 armv7l GNU/Linux

*********************************
*** openssl engine -t -c -vv ***
(dynamic) Dynamic engine loading support
     [ unavailable ]
     SO_PATH: Specifies the path to the new ENGINE shared library
     NO_VCHECK: Specifies to continue even if version checking fails (boolean)
     ID: Specifies an ENGINE id name for loading
     LIST_ADD: Whether to add a loaded ENGINE to the internal list (0=no,1=yes,2=mandatory)
     DIR_LOAD: Specifies whether to load from 'DIR_ADD' directories (0=no,1=yes,2=mandatory)
     DIR_ADD: Adds a directory from which ENGINEs can be loaded
     LOAD: Load up the ENGINE specified by other settings
(devcrypto) /dev/crypto engine
 [DES-CBC, DES-EDE3-CBC, AES-128-CBC, AES-192-CBC, AES-256-CBC, AES-128-ECB, AES-192-ECB, AES-256-ECB]
     [ available ]
     USE_SOFTDRIVERS: specifies whether to use software (not accelerated) drivers (0=use only accelerated drivers, 1=allow all drivers, 2=use if acceleration can't be determined) [default=2]
     CIPHERS: either ALL, NONE, or a comma-separated list of ciphers to enable [default=ALL]
     DIGESTS: either ALL, NONE, or a comma-separated list of digests to enable [default=NONE]
     DUMP_INFO: dump info about each algorithm to stderr; use 'openssl engine -pre DUMP_INFO devcrypto'

*********************************

*** openssl engine -pre DUMP_INFO devcrypto ***
(devcrypto) /dev/crypto engine
Information about ciphers supported by the /dev/crypto engine:
Cipher DES-CBC, NID=31, /dev/crypto info: id=1, driver=mv-cbc-des (hw accelerated)
Cipher DES-EDE3-CBC, NID=44, /dev/crypto info: id=2, driver=mv-cbc-des3-ede (hw accelerated)
Cipher BF-CBC, NID=91, /dev/crypto info: id=3, CIOCGSESSION (session open call) failed
Cipher CAST5-CBC, NID=108, /dev/crypto info: id=4, CIOCGSESSION (session open call) failed
Cipher AES-128-CBC, NID=419, /dev/crypto info: id=11, driver=mv-cbc-aes (hw accelerated)
Cipher AES-192-CBC, NID=423, /dev/crypto info: id=11, driver=mv-cbc-aes (hw accelerated)
Cipher AES-256-CBC, NID=427, /dev/crypto info: id=11, driver=mv-cbc-aes (hw accelerated)
Cipher RC4, NID=5, /dev/crypto info: id=12, CIOCGSESSION (session open call) failed
Cipher AES-128-CTR, NID=904, /dev/crypto info: id=21, CIOCGSESSION (session open call) failed
Cipher AES-192-CTR, NID=905, /dev/crypto info: id=21, CIOCGSESSION (session open call) failed
Cipher AES-256-CTR, NID=906, /dev/crypto info: id=21, CIOCGSESSION (session open call) failed
Cipher AES-128-ECB, NID=418, /dev/crypto info: id=23, driver=mv-ecb-aes (hw accelerated)
Cipher AES-192-ECB, NID=422, /dev/crypto info: id=23, driver=mv-ecb-aes (hw accelerated)
Cipher AES-256-ECB, NID=426, /dev/crypto info: id=23, driver=mv-ecb-aes (hw accelerated)

Information about digests supported by the /dev/crypto engine:
Digest MD5, NID=4, /dev/crypto info: id=13, driver=mv-md5 (hw accelerated), CIOCCPHASH capable
Digest SHA1, NID=64, /dev/crypto info: id=14, driver=mv-sha1 (hw accelerated), CIOCCPHASH capable
Digest RIPEMD160, NID=117, /dev/crypto info: id=102, driver=unknown. CIOCGSESSION (session open) failed
Digest SHA224, NID=675, /dev/crypto info: id=103, driver=sha224-neon (software), CIOCCPHASH capable
Digest SHA256, NID=672, /dev/crypto info: id=104, driver=mv-sha256 (hw accelerated), CIOCCPHASH capable
Digest SHA384, NID=673, /dev/crypto info: id=105, driver=sha384-neon (software), CIOCCPHASH capable
Digest SHA512, NID=674, /dev/crypto info: id=106, driver=sha512-neon (software), CIOCCPHASH capable

[Success]: DUMP_INFO

*********************************

Running *--> time -v openssl speed -elapsed -evp AES-128-CBC -engine devcrypto <--*

engine "devcrypto" set.
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: 270345 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 278378 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 250929 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 171104 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 8192 size blocks: 38258 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 16384 size blocks: 20253 aes-128-cbc's in 3.00s
OpenSSL 1.1.1i  8 Dec 2020
built on: Sun Jan  3 11:58:11 2021 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-cbc       1441.84k     5938.73k    21412.61k    58403.50k   104469.85k   110608.38k
	Command being timed: "openssl speed -elapsed -evp AES-128-CBC -engine devcrypto"
	User time (seconds): 0.30
	System time (seconds): 5.07
	Percent of CPU this job got: 29%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 18.07s
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 13344
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 157
	Voluntary context switches: 1029393
	Involuntary context switches: 162
	Swaps: 0
	File system inputs: 0
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

*********************************

Running *--> time -v openssl speed -elapsed -evp AES-256-ECB -engine devcrypto <--*

engine "devcrypto" set.
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-256-ecb for 3s on 16 size blocks: 279826 aes-256-ecb's in 3.00s
Doing aes-256-ecb for 3s on 64 size blocks: 270963 aes-256-ecb's in 3.00s
Doing aes-256-ecb for 3s on 256 size blocks: 238987 aes-256-ecb's in 3.00s
Doing aes-256-ecb for 3s on 1024 size blocks: 158848 aes-256-ecb's in 3.00s
Doing aes-256-ecb for 3s on 8192 size blocks: 34734 aes-256-ecb's in 3.00s
Doing aes-256-ecb for 3s on 16384 size blocks: 18408 aes-256-ecb's in 3.00s
OpenSSL 1.1.1i  8 Dec 2020
built on: Sun Jan  3 11:58:11 2021 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-256-ecb       1492.41k     5780.54k    20393.56k    54220.12k    94846.98k   100532.22k
	Command being timed: "openssl speed -elapsed -evp AES-256-ECB -engine devcrypto"
	User time (seconds): 0.37
	System time (seconds): 4.68
	Percent of CPU this job got: 28%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 18.07s
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 13456
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 156
	Voluntary context switches: 1001896
	Involuntary context switches: 192
	Swaps: 0
	File system inputs: 0
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

*********************************

Running *--> time -v openssl speed -elapsed -evp AES-256-GCM -engine devcrypto <--*

engine "devcrypto" set.
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-256-gcm for 3s on 16 size blocks: 6035031 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 64 size blocks: 1752072 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 256 size blocks: 482320 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 1024 size blocks: 133808 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 8192 size blocks: 17136 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 16384 size blocks: 8564 aes-256-gcm's in 3.00s
OpenSSL 1.1.1i  8 Dec 2020
built on: Sun Jan  3 11:58:11 2021 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-256-gcm      32186.83k    37377.54k    41157.97k    45673.13k    46792.70k    46770.86k
	Command being timed: "openssl speed -elapsed -evp AES-256-GCM -engine devcrypto"
	User time (seconds): 17.98
	System time (seconds): 0.02
	Percent of CPU this job got: 99%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 18.07s
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 13168
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 155
	Voluntary context switches: 130
	Involuntary context switches: 1903
	Swaps: 0
	File system inputs: 0
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

*********************************

Running *--> time -v openssl speed -elapsed -evp CHACHA20-POLY1305 -engine devcrypto <--*

engine "devcrypto" set.
You have chosen to measure elapsed time instead of user CPU time.
Doing chacha20-poly1305 for 3s on 16 size blocks: 9775878 chacha20-poly1305's in 3.00s
Doing chacha20-poly1305 for 3s on 64 size blocks: 4381776 chacha20-poly1305's in 3.00s
Doing chacha20-poly1305 for 3s on 256 size blocks: 2094404 chacha20-poly1305's in 3.00s
Doing chacha20-poly1305 for 3s on 1024 size blocks: 582825 chacha20-poly1305's in 3.00s
Doing chacha20-poly1305 for 3s on 8192 size blocks: 75517 chacha20-poly1305's in 3.00s
Doing chacha20-poly1305 for 3s on 16384 size blocks: 37844 chacha20-poly1305's in 3.00s
OpenSSL 1.1.1i  8 Dec 2020
built on: Sun Jan  3 11:58:11 2021 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
chacha20-poly1305    52138.02k    93477.89k   178722.47k   198937.60k   206211.75k   206678.70k
	Command being timed: "openssl speed -elapsed -evp CHACHA20-POLY1305 -engine devcrypto"
	User time (seconds): 18.00
	System time (seconds): 0.00
	Percent of CPU this job got: 99%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 18.07s
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 13104
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 154
	Voluntary context switches: 130
	Involuntary context switches: 1669
	Swaps: 0
	File system inputs: 0
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

*********************************

Running *--> time -v openssl speed -elapsed -evp SHA256 -engine devcrypto <--*

engine "devcrypto" set.
You have chosen to measure elapsed time instead of user CPU time.
Doing sha256 for 3s on 16 size blocks: 1764501 sha256's in 3.00s
Doing sha256 for 3s on 64 size blocks: 1344981 sha256's in 3.00s
Doing sha256 for 3s on 256 size blocks: 784101 sha256's in 3.00s
Doing sha256 for 3s on 1024 size blocks: 292837 sha256's in 3.00s
Doing sha256 for 3s on 8192 size blocks: 41773 sha256's in 3.00s
Doing sha256 for 3s on 16384 size blocks: 21117 sha256's in 3.00s
OpenSSL 1.1.1i  8 Dec 2020
built on: Sun Jan  3 11:58:11 2021 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
sha256            9410.67k    28692.93k    66909.95k    99955.03k   114068.14k   115326.98k
	Command being timed: "openssl speed -elapsed -evp SHA256 -engine devcrypto"
	User time (seconds): 17.98
	System time (seconds): 0.01
	Percent of CPU this job got: 99%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 18.07s
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 13488
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 157
	Voluntary context switches: 64
	Involuntary context switches: 1741
	Swaps: 0
	File system inputs: 0
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

*********************************

Running *--> time -v openssl speed -elapsed -evp MD5 <--*

You have chosen to measure elapsed time instead of user CPU time.
Doing md5 for 3s on 16 size blocks: 2201896 md5's in 3.00s
Doing md5 for 3s on 64 size blocks: 1868173 md5's in 3.00s
Doing md5 for 3s on 256 size blocks: 1259527 md5's in 3.00s
Doing md5 for 3s on 1024 size blocks: 545964 md5's in 3.00s
Doing md5 for 3s on 8192 size blocks: 87223 md5's in 3.00s
Doing md5 for 3s on 16384 size blocks: 44214 md5's in 3.00s
OpenSSL 1.1.1i  8 Dec 2020
built on: Sun Jan  3 11:58:11 2021 UTC
options:bn(64,32) rc4(char) des(long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3 -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
md5              11743.45k    39854.36k   107479.64k   186355.71k   238176.94k   241467.39k
	Command being timed: "openssl speed -elapsed -evp MD5"
	User time (seconds): 17.98
	System time (seconds): 0.02
	Percent of CPU this job got: 99%
	Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 18.07s
	Average shared text size (kbytes): 0
	Average unshared data size (kbytes): 0
	Average stack size (kbytes): 0
	Average total size (kbytes): 0
	Maximum resident set size (kbytes): 13488
	Average resident set size (kbytes): 0
	Major (requiring I/O) page faults: 0
	Minor (reclaiming a frame) page faults: 157
	Voluntary context switches: 64
	Involuntary context switches: 1516
	Swaps: 0
	File system inputs: 0
	File system outputs: 0
	Socket messages sent: 0
	Socket messages received: 0
	Signals delivered: 0
	Page size (bytes): 4096
	Exit status: 0

*********************************

from script

cryptodev
printf '********  Test openssl  *********\n' > /tmp/junk
date >> /tmp/junk
printf '\n*********************************\n' >> /tmp/junk
cat /etc/openwrt_release >> /tmp/junk
uname -a >> /tmp/junk
printf '\n*********************************\n' >> /tmp/junk
printf '*** openssl engine -t -c -vv ***\n' >> /tmp/junk
openssl engine -t -c -vv >> /tmp/junk
printf '\n*********************************\n' >> /tmp/junk
printf '\n*** openssl engine -pre DUMP_INFO devcrypto ***\n' >> /tmp/junk
openssl engine -pre DUMP_INFO devcrypto >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp AES-128-CBC -engine devcrypto <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp AES-128-CBC -engine devcrypto >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp AES-256-ECB -engine devcrypto <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp AES-256-ECB -engine devcrypto >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp AES-256-GCM -engine devcrypto <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp AES-256-GCM -engine devcrypto >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp CHACHA20-POLY1305 -engine devcrypto <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp CHACHA20-POLY1305 -engine devcrypto >> /tmp/junk 2>&1
####
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp SHA256 -engine devcrypto <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp SHA256 -engine devcrypto >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp MD5 <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp MD5 >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
###
# openssl speed -evp chacha20-poly1305 2>/dev/null && openssl speed -evp aes-256-gcm 2>/dev/null | grep '^aes'

or

AF_ALG
printf '********  Test openssl  *********\n' > /tmp/junk
date >> /tmp/junk
printf '\n*********************************\n' >> /tmp/junk
cat /etc/openwrt_release >> /tmp/junk
uname -a >> /tmp/junk
printf '\n*********************************\n' >> /tmp/junk
printf '*** openssl engine -t -c -vv ***\n' >> /tmp/junk
openssl engine -t -c -vv >> /tmp/junk
printf '\n*********************************\n' >> /tmp/junk
printf '*** openssl engine -pre DUMP_INFO afalg ***\n' >> /tmp/junk
openssl engine -pre DUMP_INFO afalg >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp AES-128-CBC -engine afalg <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp AES-128-CBC -engine afalg >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp AES-256-ECB -engine afalg <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp AES-256-ECB -engine afalg >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl -elapsed speed -evp SHA256 -engine afalg <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp SHA256 -engine afalg >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
printf '\nRunning *--> time -v openssl speed -elapsed -evp MD5 <--*\n\n' >> /tmp/junk
time -v openssl speed -elapsed -evp MD5 >> /tmp/junk 2>&1
printf '\n*********************************\n' >> /tmp/junk
#openssl speed -evp chacha20-poly1305 2>/dev/null && openssl speed -evp aes-256-gcm 2>/dev/null | grep '^aes'

if that is your choice of poison.

Thanks for sharing but for some reason the wrt3200acm sysupgrade image does not work for me.

I tried twice but the router bootloops and finally goes back to the other working image.

my wrt32x is too!
i don't know why!

thank you! i from china , i have a wrt32x openwrt-gvel50-build-v42-mvebu-cortexa9-linksys_wrt32x-squashfs-factory image does not work for me.

I tried twice but the router bootloops and finally goes back to the other working image.

Hi all, what's the best way to go to latest openwrt base release?

factory.img or sysupgrade.bin

If you're running stock linksys, factory.img. If you're already running openwrt, sysupgrade.

nitroshift