[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201206270723.11615.hans.schillstrom@ericsson.com>
Date: Wed, 27 Jun 2012 07:23:03 +0200
From: Hans Schillstrom <hans.schillstrom@...csson.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
David Miller <davem@...emloft.net>
CC: "subramanian.vijay@...il.com" <subramanian.vijay@...il.com>,
"dave.taht@...il.com" <dave.taht@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"ncardwell@...gle.com" <ncardwell@...gle.com>,
"therbert@...gle.com" <therbert@...gle.com>,
"brouer@...hat.com" <brouer@...hat.com>
Subject: Re: [PATCH v2 net-next] tcp: avoid tx starvation by SYNACK packets
On Tuesday 26 June 2012 19:02:36 Eric Dumazet wrote:
> On Tue, 2012-06-26 at 07:34 +0200, Hans Schillstrom wrote:
>
> > This patch didn't give much in gain actually.
>
> With a 100Mbps link it does.
I was testing with a patched igb driver with TCP SYN irq:s on one core only,
there was some fault in the prev. setup (RPS was also involved) because now it gives a boost of ~15%
> With a 1Gbps link we are cpu bounded for sure.
True.
>
> > The big cycle consumer during a syn attack is SHA sum right now,
> > so from that perspective it's better to add aes crypto (by using AES-NI)
> > to the syn cookies instead of SHA sum. Even if only newer x86_64 can use it.
>
> My dev machine is able to process ~280.000 SYN (and synack) per second
> (tg3, mono queue), and sha_transform() takes ~10 % of the time according
> to perf.
My test machine is not that fast :-(
I have only 170.000 syn/synack per sec. and sha_transform() takes ~9.6%
have seen peeks of 16% (during 10 sec samples)
>
> With David patch using jhash instead of SHA, I reach ~315.000 SYN per
> second.
I have similar results from ~170k to ~199k synack/sec.
BTW,
cookie_hash() did not show up in the perf results, (< 0.08%)
--
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