On Tue, Mar 15, 2005 at 07:23:06PM +0100, Guus Sliepen wrote:
> On Tue, Mar 15, 2005 at 10:13:12AM -0800, Jean Tourrilhes wrote:
> 
> >     No. If you have 3 interfaces, you will call ifrename 3 times
> > instead of one, and each time ifrename will have to probe all 3
> > interfaces, so it's going to take more time. I personally do care
> > about boot time (which is why ifrename is designed the way it is and
> > why I'm going to do something about hotplug/net.agent).
> 
> Hm I didn't know the probing would take that much time. Well, I'll add a
> S40 script then and upload a new package, closing this bug.

        It's not that much time, I made sure that ifrename is pretty
fast, but every little bit count.

        Dual P2 550, 5 interface, 7 ifrename rules, no renaming :
----------------------------------------------------------
# time ifrename

real    0m0.037s
user    0m0.004s
sys     0m0.005s
# time ifrename eth4

real    0m0.005s
user    0m0.003s
sys     0m0.002s
----------------------------------------------------------

        For comparison :
----------------------------------------------------------
# time ps -C ps ho args
ps -C ps ho args

real    0m0.115s
user    0m0.052s
sys     0m0.032s
# time grep -q '^auto[[:space:]].*\<'"$INTERFACE"'\>' /etc/network/interfaces

real    0m0.012s
user    0m0.001s
sys     0m0.004s
----------------------------------------------------------

> >     Maybe I should allow to ifrename based on IP address ;-)
> 
> I think I heard of people who'd like that, and also to ifrename based on
> access point MAC.

        Interfaces can only be renamed while they are down. The IP
address and AP address may change while the card is up.

>     Guus Sliepen <[EMAIL PROTECTED]>

        Have fun...

        Jean



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to