Thread (7 messages) flat view 7 messages, 2 authors, 2011-05-09

Re: Testing interface removal speedup patches from Eric Dumazet.

From: Ben Greear <hidden>
Date: 2011-05-09 21:03:57

On 05/09/2011 01:24 PM, Alex Bligh wrote:
Ben,

--On 9 May 2011 12:42:39 -0700 Ben Greear [off-list ref] wrote:
quoted
I use HZ of 1000, btw.

I killed udev, haldaemon..seemed to be just my stuff running.

I don't see any 'ifup' running with these things dead...

If you want to post your script, I can run it on my
machine...
See below - run (on ubuntu) by
service udev stop
unshare -n bash
./ifseq -n 500

The unshare seems sufficient to stop any remaining udev listeners getting
wind of interface creation/deletion.
You were not adding the 'up' flag
on creation...and my script was.  I changed my script to not do
up and it reports similar numbers to yours...

Also, deleting with IPs added is likely to be a lot more work
than deleting w/out, as your script does.

Created 500 veth in 12.954143 seconds (0.025908286 per interface).
Added IP addresses in 28.35679 seconds (0.05671358 per addr).
Deleted 500 veth in 21.503877 seconds. (0.043007754 per interface)

Created 100 veth in 1.06471 seconds (0.0106471 per interface).
Added IP addresses in 2.006418 seconds (0.02006418 per addr).
Deleted 100 veth in 2.983303 seconds. (0.02983303 per interface)


 From your script:

[root@lec2010-ath9k-1 lanforge]# /mnt/b32/greearb/tmp/testifs.bash -n 500
Mon May 9 13:53:31 PDT 2011 creating 500 interfaces
Mon May 9 13:53:44 PDT 2011 done

real	0m12.756s
user	0m0.732s
sys	0m11.943s
Mon May 9 13:53:44 PDT 2011 deleting 500 interfaces
Mon May 9 13:54:02 PDT 2011 done

real	0m18.071s
user	0m1.002s
sys	0m8.376s
[root@lec2010-ath9k-1 lanforge]# /mnt/b32/greearb/tmp/testifs.bash -n 100
Mon May 9 13:54:33 PDT 2011 creating 100 interfaces
Mon May 9 13:54:34 PDT 2011 done

real	0m1.048s
user	0m0.092s
sys	0m0.943s
Mon May 9 13:54:34 PDT 2011 deleting 100 interfaces
Mon May 9 13:54:36 PDT 2011 done

real	0m2.219s
user	0m0.134s
sys	0m0.794s

Thanks,
Ben

-- 
Ben Greear [off-list ref]
Candela Technologies Inc  http://www.candelatech.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help