Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2015 15:27:37 +0200
From:      Julien Charbon <jch@freebsd.org>
To:        Adrian Chadd <adrian@FreeBSD.org>, freebsd-net@freebsd.org
Subject:   Re: TCP stack lock contention with short-lived connections
Message-ID:  <555C8BC9.2080304@freebsd.org>
In-Reply-To: <53834368.6070103@verisign.com>
References:  <op.w51mxed6ak5tgc@fri2jcharbon-m1.local> <op.w56mamc0ak5tgc@dul1rjacobso-l3.vcorp.ad.vrsn.com> <len481$sfv$2@ger.gmane.org> <537F39DF.1090900@verisign.com> <537FB51D.2060401@verisign.com> <537FBFA4.1010902@FreeBSD.org> <53834368.6070103@verisign.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--epFRD7QcQ1FxABumOFJwiRdXf3pSI0Al1
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable


 Hi,

On 26/05/14 15:36, Julien Charbon wrote:
> On 23/05/14 23:37, Navdeep Parhar wrote:
>> On 05/23/14 13:52, Julien Charbon wrote:
>>> On 23/05/14 14:06, Julien Charbon wrote:
>>>> On 27/02/14 11:32, Julien Charbon wrote:
>>>>> On 07/11/13 14:55, Julien Charbon wrote:
>>>>>> On Mon, 04 Nov 2013 22:21:04 +0100, Julien Charbon
>>>>>> <jcharbon@verisign.com> wrote:
>>>>>>> I have put technical and how-to-repeat details in below
>>>>>>> PR:
>>>>>>>
>>>>>>> kern/183659: TCP stack lock contention with short-lived
>>>>>>> connections
>>>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183659
>>>>>>>
>>>>>>> We are currently working on this performance improvement
>>>>>>> effort;  it will impact only the TCP locking strategy not
>>>>>>> the TCP stack logic itself.  We will share on freebsd-net
>>>>>>> the patches we made for reviewing and improvement
>>>>>>> propositions;  anyway this change might also require enough
>>>>>>> eyeballs to avoid tricky race conditions introduction in
>>>>>>> TCP stack.
>>>
>>> [...]
>=20
>  Below, just for your information, more details on context of these
> changes:
>=20
>  o The rough consensus at BSDCan was that there is a shared interest fo=
r
> scalability improvement of TCP workloads with potential high rate of
> connections establishment and tear-down.
>=20
>  o Our requirements for this task were:
>   - Achieve more than 100k TCP connections per second without dropping =
a
> single packet in reception
>   - Use a strategy that does not require to change all network stacks i=
n
> a row (TCP, UDP, RAW, etc.)
>   - Be able to progressively introduce better performance, leveraging
> already in place mutex strategy
>   - Keep the TCP stack stable (obviously)

 For people interested about this short-lived TCP connection scalability
effort, you can subscribe to the review of our latest (and biggest so
far) change:

Decompose TCP INP_INFO lock to increase short-lived connections scalabili=
ty
https://reviews.freebsd.org/D2599

 The main goal of this review is ideally to start the rough discussion
before BSDCan (and then discuss details in person at BSDCan), and ease
tests by other people with more exotic configurations (thanks Adrian for
your early tests).  This patch still improves the short-lived TCP
connection rate (setup and teardown) from 60k/sec to 150k/sec.

 My 2 cents.

--
Julien


--epFRD7QcQ1FxABumOFJwiRdXf3pSI0Al1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJVXIvPAAoJEKVlQ5Je6dhx57MIAOvKPS+Y+6HFOIoxobowKu6C
kmwNwEmgwhCPuQK58carrEkXZXgjaYmfnhiHii02qzwanwope2V+UrpfkZ4eBzdQ
TT2U0U6XWbB/iOCWcaQjJKNZlryAUsFZG6U/jNj9xOK/MTF5lfeTq6l6/N6sTJ/R
HZhqLcHwC3eTlEuWfiYrw6X6iKxiTbNMWCaBqT+K5CJY+rk9YGnAYKKBP/IhBRoP
oP8LXo0XCcptmGzIFzAjsE3lxmLZGj/Kuk0GW1EqIhOIuqXKJF45wRSfDYxgcMZG
sOabDj+242O1YQDtL+Cxj9a6UWrHFzV64oTyaA5b1pdM76p28+XdMFy0yIPd1aI=
=CF03
-----END PGP SIGNATURE-----

--epFRD7QcQ1FxABumOFJwiRdXf3pSI0Al1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?555C8BC9.2080304>