On Tue, 15 Aug 2006, Alan Robertson wrote:

> [...]
> By the way, the real reason why it's faster isn't ip versus ifconfig,
> it's that IPaddr tries to create a name which isn't already used, and it
> has to search the name space to find one.

Thanks for the reply.

> IIRC, it does the unfortunate, but unsurprising O(n^2) kind of thing to
> find free ones.  That means creating 256 aliases with IPaddr really
> shouldn't be done except by masochists ;-).

As bad as that?  I thought it was just a linear search, using a while loop
with an incrementing variable (limited to 512) to find the next free
(unallocated, etc.)  "le0:<n>":  function "find_free_interface()".

> IPaddr2 doesn't include that capability - at all.
>
> BUT it does do something else and somewhat similar instead.  You can
> assign fixed names to the aliases you create.  And IPaddr doesn't
> include that capability at all.
>
> So, even when the two try and do roughly the same thing, they go about
> it in completely different ways, with noticeably different outcomes.
>
> I'm not opposed to merging them.  I'm just trying to make sure it's done
> "right" (whatever we decide that means).

Certainly!  So all this background is vital.  Thanks.


-- 

:  David Lee                                I.T. Service          :
:  Senior Systems Programmer                Computer Centre       :
:                                           Durham University     :
:  http://www.dur.ac.uk/t.d.lee/            South Road            :
:                                           Durham DH1 3LE        :
:  Phone: +44 191 334 2752                  U.K.                  :
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to