core dump when listening to too many interfaces
I need to setup a DHCP server for a cloud infrastructure where we have over 3000 VLAN. While there are no problem creating vlan interface on linux in that number, both isc-dhcp-server and kea-dhcp4 fail in handling that many interfaces.
isc-dhcp-server goes into a loop allocating more and more memory while kea ends up core dumping. Even 1000 interfaces seem to be too much for kea. Here are the last few lines displayedkea-vlan-1000.conf
2019-09-16 17:26:20.122 INFO [kea-dhcp4.dhcp4/30699] DHCP4_CONFIG_NEW_SUBNET a new subnet has been added to configuration: 192.19.34.0/24 with params: valid-lifetime=86400
2019-09-16 17:26:20.122 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_CFGMGR_ADD_SUBNET4 adding subnet 192.19.34.0/24
2019-09-16 17:26:20.122 INFO [kea-dhcp4.dhcp4/30699] DHCP4_CONFIG_NEW_SUBNET a new subnet has been added to configuration: 192.19.35.0/24 with params: valid-lifetime=86400
2019-09-16 17:26:20.122 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_CFGMGR_ADD_SUBNET4 adding subnet 192.19.35.0/24
2019-09-16 17:26:20.123 INFO [kea-dhcp4.dhcp4/30699] DHCP4_CONFIG_NEW_SUBNET a new subnet has been added to configuration: 192.19.36.0/24 with params: valid-lifetime=86400
2019-09-16 17:26:20.123 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_CFGMGR_ADD_SUBNET4 adding subnet 192.19.36.0/24
2019-09-16 17:26:20.123 INFO [kea-dhcp4.dhcp4/30699] DHCP4_CONFIG_NEW_SUBNET a new subnet has been added to configuration: 192.19.37.0/24 with params: valid-lifetime=86400
2019-09-16 17:26:20.123 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_CFGMGR_ADD_SUBNET4 adding subnet 192.19.37.0/24
2019-09-16 17:26:20.124 INFO [kea-dhcp4.dhcp4/30699] DHCP4_CONFIG_NEW_SUBNET a new subnet has been added to configuration: 192.19.38.0/24 with params: valid-lifetime=86400
2019-09-16 17:26:20.124 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_CFGMGR_ADD_SUBNET4 adding subnet 192.19.38.0/24
2019-09-16 17:26:20.124 INFO [kea-dhcp4.dhcp4/30699] DHCP4_CONFIG_COMPLETE DHCPv4 server has completed configuration: added IPv4 subnets: 801; DDNS: disabled
2019-09-16 17:26:32.464 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_TIMERMGR_REGISTER_TIMER registering timer: reclaim-expired-leases, using interval: 10000 ms
2019-09-16 17:26:32.464 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_TIMERMGR_START_TIMER starting timer: reclaim-expired-leases
2019-09-16 17:26:32.464 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_TIMERMGR_REGISTER_TIMER registering timer: flush-reclaimed-leases, using interval: 25000 ms
2019-09-16 17:26:32.464 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_TIMERMGR_START_TIMER starting timer: flush-reclaimed-leases
2019-09-16 17:26:32.464 DEBUG [kea-dhcp4.dhcpsrv/30699] DHCPSRV_TIMERMGR_START_THREAD starting thread for timers
*** stack smashing detected ***: kea-dhcp4 terminated
Aborted (core dumped)