[Dnsmasq-discuss] Dnsmasq on high load

Simon Kelley simon at thekelleys.org.uk
Tue Mar 10 17:31:33 GMT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/03/15 15:15, Анатолий Мулярский wrote:
> As I know, the error message means EAGAIN error. But what the
> reason?

There's a recent change to dnsmasq, which limits it to waiting for one
second for the EAGAIN error to go away.

See retry_send() in src/util.c

 /* Linux kernels can return EAGAIN in perpetuity when calling
     sendmsg() and the relevant interface has gone. Here we loop
     retrying in EAGAIN for 1 second max, to avoid this hanging
     dnsmasq. */

You might try tweaking the code below that to make it wait longer, or
not have a timeout.

The reason for the EAGAIN is likely that the send queue on the socket
if full.


Cheers,

Simon.

> I'll try to use log-facility=LOCAL0 but I doubt whether it helps. 
> How else can I get more debug information?
> 
> 2015-03-10 16:57 GMT+02:00, Анатолий Мулярский <tm1tvk at gmail.com>:
>> 3.10.28-AN5 #1 SMP Fri Jan 31 10:10:49 EET 2014 x86_64 Intel(R) 
>> Core(TM) i5-4670 CPU @ 3.40GHz GenuineIntel GNU/Linux
>> 
>> cat /proc/sys/net/ipv4/neigh/default/gc_thresh1 4096 cat
>> /proc/sys/net/ipv4/neigh/default/gc_thresh2 16384 cat
>> /proc/sys/net/ipv4/neigh/default/gc_thresh3 32768
>> 
>> And the router has some protection by arptables.
>> 
>> 
>> 2015-03-10 12:16 GMT+02:00, Jim Alles <kb3tbx at gmail.com>:
>>> Hello, What hardware platform and OS are you using?
>>> 
>>> Also consider ​ adjusting​ ARP ​ neighbor table size due to the
>>> number of hosts​ : 
>>> http://forum.ipfire.org/viewtopic.php?t=9293
>>> 
>> 
>> -- Best regards Anatoly Muliarski
>> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlT/KnUACgkQKPyGmiibgrdr0QCfRdywATHdmWvwIOwUllVoAWtM
dGsAoJGb+eBiwITPNtltNK5INtaQYU23
=Y6cD
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list