Opened 5 years ago

Last modified 4 years ago

#12891 new defect

DNSMASQ should run at higher priority

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: dnsmasq, priority Cc:


When downloading a torrent with many peers/seeds, at max WAN speed (in my case, almost 60mbit) my G300nh is using almost 100% cpu with qos on. Pings are fine, but DNS lookups were lagging.

Edited init.d/dnsmasq to start dnsmasq as "nice -n -19" instead of "service-start"

After that no issues.

I know that ideally this shouldn't happen, and it doesn't when saturating the link with a normal speedtest, but it happens with torrents, like the knoppix torrent that have MANY seeds, aka many connections + speed.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by anonymous

I'm experiencing similar issues when just downloading a single (large) file in Firefox. The router still seems to function (I can browse web pages provided the DNS lookups are already cached) but new DNS lookups fail. Once the download completes, DNS lookups function normally.

I tried the suggested fix which if I understand correctly is to edit /etc/init.d/dnsmasq to change:

From Line 510:

service_start /usr/sbin/dnsmasq -C $CONFIGFILE && {

To Line 510:

nice -n -19 /usr/sbin/dnsmasq -C $CONFIGFILE && {

I restarted dnsmasq after this change but it didn't seem to have an impact. DNS queries still failed during downloads.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.