[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121126091824.GB25197@breakpoint.cc>
Date: Mon, 26 Nov 2012 10:18:24 +0100
From: Florian Westphal <fw@...len.de>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Florian Westphal <fw@...len.de>, netdev@...r.kernel.org,
Pablo Neira Ayuso <pablo@...filter.org>,
Thomas Graf <tgraf@...g.ch>, Cong Wang <amwang@...hat.com>,
Patrick McHardy <kaber@...sh.net>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Herbert Xu <herbert@...dor.hengli.com.au>
Subject: Re: [RFC net-next PATCH V1 9/9] net: frag remove readers-writer
lock (hack)
Jesper Dangaard Brouer <brouer@...hat.com> wrote:
> After all the other patches, the rw_lock is now the contention point.
>
> This is a quick hack, that remove the readers-writer lock, by
> disabling/breaking hash rebuilding. Just to see how big the
> performance gain would be.
>
> 2x10G size(4416) result: 6481+6764 = 13245 Mbit/s (gen: 7652+8077 Mbit/s)
>
> 4x10G size(4416) result:(5610+6283+5735+5238)=22866 Mbit/s
> (gen: 6530+7860+5967+5238 =25595 Mbit/s)
>
> And the results show, that its a big win. With 4x10G size(4416)
> before: 17923 Mbit/s -> now: 22866 Mbit/s increase 4943 Mbit/s.
> With 2x10G size(4416) before 10689 Mbit/s -> 13245 Mbit/s
> increase 2556 Mbit/s.
>
> I'll work on a real solution for removing the rw_lock while still
> supporting hash rebuilding. Suggestions and ideas are welcome.
<devils advocate>
Why not kill it altogether, and just set new secret_interval
without moving frag queues to new location?
The only consequence is that all fragments queued at the time of
changing secret_interval will be lost, and free'd by evictor/timer.
Default secret rebuild interval is 10 minutes, should we care about
small packet loss every 10 minutes?
</devils advocate>
--
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