From: David Miller <davem@davemloft.net>
To: nicolas.dichtel@6wind.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] neigh: optimize neigh_parms_release()
Date: Wed, 29 Oct 2014 16:12:11 -0400 (EDT) [thread overview]
Message-ID: <20141029.161211.1100245948317543289.davem@davemloft.net> (raw)
In-Reply-To: <1414607371-4246-1-git-send-email-nicolas.dichtel@6wind.com>
From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Wed, 29 Oct 2014 19:29:31 +0100
> In neigh_parms_release() we loop over all entries to find the entry given in
> argument and being able to remove it from the list. By using a double linked
> list, we can avoid this loop.
>
> Here are some numbers with 30 000 dummy interfaces configured:
>
> Before the patch:
> $ time rmmod dummy
> real 2m0.118s
> user 0m0.000s
> sys 1m50.048s
>
> After the patch:
> $ time rmmod dummy
> real 1m9.970s
> user 0m0.000s
> sys 0m47.976s
>
> Suggested-by: Thierry Herbelot <thierry.herbelot@6wind.com>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Looks great, applied, thanks Nicolas.
prev parent reply other threads:[~2014-10-29 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 18:29 [PATCH net-next] neigh: optimize neigh_parms_release() Nicolas Dichtel
2014-10-29 19:01 ` Eric Dumazet
2014-10-29 20:12 ` David Miller [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=20141029.161211.1100245948317543289.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
/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