<div dir="ltr"><div>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.<br><br></div>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?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 17, 2013 at 1:10 PM, <span dir="ltr"><<a href="mailto:sthaug@nethelp.no" target="_blank">sthaug@nethelp.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> i traced dhcp code and found when server starts, it assign a lease<br>
> structure for every available ip address in range therefore it uses a huge<br>
> amount of memory (i hope i understand correctly). this behavior is not good<br>
> at all for me because it makes my server so slowly.<br>
><br>
> my question is, first of all, do i understand the behavior of server<br>
> correctly? if yes, how can i change it to have better performance? if i<br>
> want to change the code in order to correct it- for example assign a lease<br>
> to each ip when it is assigned to a client-, is it possible or not (better<br>
> to say is it simple or not?:))<br>
<br>
</div>I believe you have understood the behavior.<br>
<br>
How can you change it to have better performance? By restricting your<br>
range to something smaller than a /8. You have been told so repeatedly<br>
on the FreeBSD lists.<br>
<br>
If you want to ignore this good advice you should should probably<br>
expect to rewrite the code yourself - or find a different DHCP server<br>
implementation (free or commercial) that works with a /8. Expect any<br>
commercial solution to expensive...<br>
<br>
Steinar Haug, Nethelp consulting, <a href="mailto:sthaug@nethelp.no">sthaug@nethelp.no</a><br>
</blockquote></div><br></div>