Opened 7 years ago

Closed 7 years ago

#2277 closed defect (duplicate)

ISC dhcpd uses 20M VIRT/12M RSS.

Reported by: cjb Owned by: dcbw
Priority: normal Milestone: Future Release
Component: distro Version:
Keywords: Cc: cjb, dcbw, carrano
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no

Description

Can we change the compile-time options to get something more sensible out of it?

Change History (14)

comment:1 Changed 7 years ago by jg

  • Milestone changed from Untriaged to Trial-2
  • Priority changed from high to blocker

comment:2 Changed 7 years ago by cjb

  • Cc cjb added
  • Owner changed from cjb to danw

Hi Dan, could you take a look at this if you have time? We'd like to disable as many compile-time options from dhcpd as possible in the hope that it uses less memory when it starts up.

comment:3 Changed 7 years ago by jg

  • Component changed from performance to distro

Dan, if the ram footprint of the ISC dhcpd server still sees large, there are other much smaller dhcpd servers. I don't know which ones are packaged in Fedora, however.

comment:4 Changed 7 years ago by danw

  • Cc dcbw added

dhcpd does not appear to have *any* compile-time options. I guess they just figured that it would only get run on big server-type machines.

dnsmasq claims to be "a lightweight DNS and DHCP server", and I know it's used in things like OpenWRT, so it may be a better fit. I can try hacking up a config file equivalent to our ISC dhcpd one.

dcbw: cc:ing you since you know things about networking and may have comments

comment:5 Changed 7 years ago by jg

Debian shows a package of udhcpd, with solely a dependency on
libc.

very small DHCP server

DHCP is a protocol like BOOTP (actually dhcpd includes much of
the functionality of BOOTPD!). It assigns IP addresses to clients
based on lease times.
This package is primarily geared towards embedded systems. It does however,
strive to be fully functional, and RFC compliant.

comment:6 Changed 7 years ago by dcbw

We'll be using dnsmasq, it uses about 650K RSS. At this time you apparently can't turn off the DNS forwarding capability, but for Trial 2 we'll just ignore that. I haven't quite gotten it to work yet, something in my config is likely wrong.

comment:7 Changed 7 years ago by jg

udhcpd is *really* tiny; like 160kB in size. Dunno if it is packaged for RH, tho.

comment:8 Changed 7 years ago by dcbw

It's not; plus the last release on the project page is "udhcp-0.9.8.tar.gz (43k) 31 Oct, 2002 ". It might actually just work that well, but 5 years??? Seems pretty dead to me.

comment:9 Changed 7 years ago by danw

  • Cc danw added; dcbw removed
  • Owner changed from danw to dcbw

dcbw would appear to be all over this

comment:10 Changed 7 years ago by jg

  • Milestone changed from Trial-2 to Trial-3

comment:11 Changed 7 years ago by jg

  • Priority changed from blocker to high

comment:12 Changed 7 years ago by kimquirk

  • Milestone changed from Trial-3 to V1.1
  • Priority changed from high to normal

I don't see how this is even very high priority. Perhaps someone can argue for that. I'm moving it to normal and pushing out to v1.1.

comment:13 Changed 7 years ago by carrano

  • Cc carrano added

This is related to #6028.

Mbletsas asked to setup dnsmasq on an MPP. I did and it works fine.

It frees 10MB of memory.

Please refer to #6028.

comment:14 Changed 7 years ago by mbletsas

  • Cc dcbw added; danw removed
  • Resolution set to duplicate
  • Status changed from new to closed

Let's move the discussion of this to #6028

M.

Note: See TracTickets for help on using tickets.