netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Alex Bligh <alex@alex.org.uk>
Cc: netdev <netdev@vger.kernel.org>, Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: Testing interface removal speedup patches from Eric Dumazet.
Date: Mon, 09 May 2011 14:03:46 -0700	[thread overview]
Message-ID: <4DC856B2.6050806@candelatech.com> (raw)
In-Reply-To: <39CEA2B6BDF36C1FA4B1EF64@nimrod.local>

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


      reply	other threads:[~2011-05-09 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09 18:37 Testing interface removal speedup patches from Eric Dumazet Ben Greear
2011-05-09 18:56 ` Alex Bligh
2011-05-09 19:02   ` Ben Greear
2011-05-09 19:12     ` Alex Bligh
2011-05-09 19:42       ` Ben Greear
2011-05-09 20:24         ` Alex Bligh
2011-05-09 21:03           ` Ben Greear [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC856B2.6050806@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=alex@alex.org.uk \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).