[LEDE-DEV] dnsmasq: please revert/disable "dhcp-script" feature by default

Dirk Brenken dev at brenken.org
Sun May 28 11:04:08 PDT 2017


Hi,

memory consumption with one dnsmasq process (dhcp-script disabled):

root at blackhole:~# top -b
Mem: 544992K used, 3472412K free, 40140K shrd, 10096K buff, 405728K
cached
CPU:   0% usr   0% sys   0% nic  95% idle   0% io   0% irq   5% sirq
Load average: 0.00 0.00 0.00 2/100 15723
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
14805     1 dnsmasq  S    27976   1%   0% /usr/sbin/dnsmasq -C
/var/etc/dnsmasq.conf.cfg02411c -k -x
/var/run/dnsmasq/dnsmasq.cfg02411c.pid


memory consumption with two dnsmasq processes (dhcp-script enabled):

root at blackhole:~# top -b
Mem: 569968K used, 3447436K free, 40140K shrd, 10096K buff, 405736K
cached
CPU:   0% usr   4% sys   0% nic  95% idle   0% io   0% irq   0% sirq
Load average: 0.00 0.00 0.00 2/102 15835
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
15825     1 dnsmasq  S    27976   1%   0% /usr/sbin/dnsmasq -C
/var/etc/dnsmasq.conf.cfg02411c -k -x
/var/run/dnsmasq/dnsmasq.cfg02411c.pid
15828 15825 root     S    27968   1%   0% /usr/sbin/dnsmasq -C
/var/etc/dnsmasq.conf.cfg02411c -k -x
/var/run/dnsmasq/dnsmasq.cfg02411c.pid

best regards
dirk

Am Sonntag, den 28.05.2017, 19:42 +0200 schrieb Jo-Philipp Wich:
> Hi,
> 
> usually Linux processes use copy-on-write memory semantics for forked processes, are you sure that it indeed uses double the memory or did you just assume after you've seen two process entries?
> 
> ~ Jo
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev



More information about the Lede-dev mailing list