dhcp server make my server slow in wide ranges
s m
sam.gh1986 at gmail.com
Sat Aug 17 09:17:42 UTC 2013
thanks Steinar, you' re right. now my problem is not just mask 8. in other
masks and ranges, dhcp server uses a lot of RAM space. this makes my server
slow.
if i want to change isc-dhcp server code, do you think is it applicable? i
mean can i change memory allocation management in the way i want (get
memory when an ip address is assigned to a client)? or is it better to
write my own server?
On Sat, Aug 17, 2013 at 1:10 PM, <sthaug at nethelp.no> wrote:
> > i traced dhcp code and found when server starts, it assign a lease
> > structure for every available ip address in range therefore it uses a
> huge
> > amount of memory (i hope i understand correctly). this behavior is not
> good
> > at all for me because it makes my server so slowly.
> >
> > my question is, first of all, do i understand the behavior of server
> > correctly? if yes, how can i change it to have better performance? if i
> > want to change the code in order to correct it- for example assign a
> lease
> > to each ip when it is assigned to a client-, is it possible or not
> (better
> > to say is it simple or not?:))
>
> I believe you have understood the behavior.
>
> How can you change it to have better performance? By restricting your
> range to something smaller than a /8. You have been told so repeatedly
> on the FreeBSD lists.
>
> If you want to ignore this good advice you should should probably
> expect to rewrite the code yourself - or find a different DHCP server
> implementation (free or commercial) that works with a /8. Expect any
> commercial solution to expensive...
>
> Steinar Haug, Nethelp consulting, sthaug at nethelp.no
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-hackers/attachments/20130817/aba4f7a4/attachment.html>
More information about the dhcp-hackers
mailing list