Re: Scalability of interface creation and deletion

Eric Dumazet
2011-05-07T18:44:53Z

Le samedi 07 mai 2011 à 19:38 +0100, Alex Bligh a écrit :
>
> --On 7 May 2011 18:26:29 +0200 Eric Dumazet <eric.dumazet@gmail.com> wrote:
>
> ># time rmmod dummy
> >
> > real 0m0.111s
> > user 0m0.000s
> > sys 0m0.000s
> >
> >
> > This removed my two dummy0/dummy1 devices.
>
> rmmod dummy even with numdummies=100 does only one synchronize_net() and
> is quick (0.8ms).
>

Yes, thanks to batching we added some time ago to speedup module unload.

And because you didnt setup IP addresses on them ;)

for i in `seq 0 99`
do
ifconfig dummy$i 192.168.$i.1 up
done