OpenWrt Forum Archive

Topic: libsodium package

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

IMHO, it's better to disable selection of best onetimeauth implementation in libsodium. Otherwise, dnscrypt-proxy (or other software) will start ~20 seconds even on RT-N66U:

admin@RT-N66U:/tmp/mnt/SDCARD/tmp# time dnscrypt-proxy --help > /dev/null
21.63user 0.37system 0:22.00elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

All those 20 seconds CPU will be loaded up to 100%.

This is not required any more since libsodium 0.5.0.

Alright, thank you for the information!

@ryzhov_al: can you confirm? I was not able to compile dnscrypt-proxy. I never noticed this delay for my application, maybe because was using 0.5.0 before.

mwarning wrote:

@ryzhov_al: can you confirm? I was not able to compile dnscrypt-proxy. I never noticed this delay for my application, maybe because was using 0.5.0 before.

Yes, @clarajcrandell is right, this patch is not needed for new libsodium version.

PS Take a look at pull-request.

(Last edited by ryzhov_al on 23 Jul 2014, 07:07)

Yes, I noticed. Thanks.

Anyway, regarding dnscrypt-proxy - I noticed that there is a wiki entry: http://wiki.openwrt.org/inbox/dnscrypt
It may need some updating regarding dnscrypt-proxy. Well, it depends on how up to date your package is.

A libsodium package is now part of the OpenWrt package feed.

The discussion might have continued from here.