lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 09 May 2011 14:03:46 -0700
From:	Ben Greear <greearb@...delatech.com>
To:	Alex Bligh <alex@...x.org.uk>
CC:	netdev <netdev@...r.kernel.org>,
	Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: Testing interface removal speedup patches from Eric Dumazet.

On 05/09/2011 01:24 PM, Alex Bligh wrote:
> Ben,
>
> --On 9 May 2011 12:42:39 -0700 Ben Greear <greearb@...delatech.com> wrote:
>
>> 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@...2010-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@...2010-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 <greearb@...delatech.com>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ