Load times for Large Subnets
Larry Apolonio
isc-dhcp at rh73.com
Tue Oct 9 22:09:33 UTC 2007
David W. Hankins wrote:
>On Tue, Oct 09, 2007 at 02:22:49PM -0700, Larry Apolonio wrote:
>
>
>>Oct 9 14:20:57 dhcp-amd kernel: dhcpd[10365]: segfault at
>>0000000000000000 rip 0000000000481427 rsp 00007fff15f5c9d0 error 4
>>
>>
>
>Fabulous. :(
>
>This is a case of the test software being written specifically for my
>test harness environment.
>
>Index: omapip/hash.c
>===================================================================
>RCS file: /proj/cvs/prod/DHCP/omapip/hash.c,v
>retrieving revision 1.17
>diff -u -r1.17 hash.c
>--- omapip/hash.c 13 Jul 2007 06:43:42 -0000 1.17
>+++ omapip/hash.c 9 Oct 2007 21:47:28 -0000
>@@ -348,6 +348,9 @@
> unsigned i;
> struct hash_bucket *bp;
>
>+ if (table == NULL)
>+ return (unsigned char *) "(unused)";
>+
> if (table->hash_count == 0)
> return (unsigned char *) "Invalid hash table.";
>
>
>
Bummer it still did a segfault
hash_report(struct hash_table *table)
{
static unsigned char retbuf[sizeof("Contents/Size (%): "
"2147483647/2147483647 "
"(2147483647%). "
"Min/max:
2147483647/2147483647")];
unsigned curlen, pct, contents=0, minlen=UINT_MAX, maxlen=0;
unsigned i;
struct hash_bucket *bp;
if (table->hash_count == 0)
return (char *) "Invalid hash table.";
if (table == NULL)
return (unsigned char *) "(unused)";
Here's the result
Oct 9 15:05:24 dhcp-amd dhcpd: Wrote 200000 leases to leases file.
Oct 9 15:05:24 dhcp-amd dhcpd: Host HW hash: Contents/Size (%):
6/22501 (0%). Min/max: 0/2
Oct 9 15:05:24 dhcp-amd kernel: dhcpd[14003]: segfault at
0000000000000000 rip 00000000004813bb rsp 00007fffe090c380 error 4
Oct 9 15:05:24 dhcp-amd dhcpd: dhcpd startup failed
Does this mean the leases file and or the config file is not loaded?
Larry A
More information about the dhcp-users
mailing list