From owner-freebsd-net@FreeBSD.ORG Tue Dec 2 12:28:56 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEE757D1 for ; Tue, 2 Dec 2014 12:28:56 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82E07127 for ; Tue, 2 Dec 2014 12:28:56 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id bs8so27809193wib.16 for ; Tue, 02 Dec 2014 04:28:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=6jB8mYFbZs7+zmqiZRuFL/Z8uT4MFzHtJCHLrrouRhY=; b=KkG5tCkR0Ca2c4HlU1TzrqsiiT1xbY2GLS/PVZt+vGrSCWQmwtTL1EWL6JJhJWWxUn rWNsaztOyMrUPUq0yoI4lD9nktfm5w4VNWiGZD6sIvQSZbbx+42xTTNti+FGu6s7e/Ay mutlCABl8+v/76ebvoy7v55P62gcsCIEQIUt/W/zrIqi7o58obfl1Wfq79o9zyKz3GMT IEdOx7rXRux/AdTjgoTeRQJkFZhbBUNh8y2tAMc0nHo+2QkqoqHMluEn6RlIlNFedQ+s SmYG+f10X+7qYe0k0DEJl7rYyrxLf5fQiD0jN5A15SQVTQFBGbW3CdsS5z8QVixZ55KI R03Q== X-Gm-Message-State: ALoCoQkUWK1tAVkA4sj89sYgcExrz4ziNDQkXHI8BgI+ow1LnABck+DocF9m79PFSO6DyZj3yj0b X-Received: by 10.180.90.133 with SMTP id bw5mr4950202wib.50.1417523329100; Tue, 02 Dec 2014 04:28:49 -0800 (PST) Received: from FRI2JCHARBON-M1.local ([217.30.88.7]) by mx.google.com with ESMTPSA id n8sm31737990wjx.0.2014.12.02.04.28.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 04:28:48 -0800 (PST) Message-ID: <547DB078.4020404@freebsd.org> Date: Tue, 02 Dec 2014 13:28:40 +0100 From: Julien Charbon User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: TCP stack lock contention with short-lived connections References: <537F39DF.1090900@verisign.com> <542EA1C9.6080907@freebsd.org> <5457832D.6070709@freebsd.org> In-Reply-To: <5457832D.6070709@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HM5iDcgwu0J8PSRGkV39WWAvEqpVKCGsf" Cc: k simon X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 12:28:57 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HM5iDcgwu0J8PSRGkV39WWAvEqpVKCGsf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, On 03/11/14 14:29, Julien Charbon wrote: > On 03/10/14 15:16, 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 >>>>> wrote: >>>>>> kern/183659: TCP stack lock contention with short-lived connection= s >>>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D183659 >>>>>> >>>>>> We are currently working on this performance improvement effort;= it >>>>>> will impact only the TCP locking strategy not the TCP stack logic >>>>>> itself. > As usual, a follow-up the TCP short-lived connections performance > improvement progress: > [...] > - Second, a race condition fix with a code clean-up: >=20 > Fix a race condition in TCP timewait between tcp_tw_2msl_reuse() and > tcp_tw_2msl_scan() > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D273850 >=20 > It means that the whole set of tcp_tw_2msl_scan()-related changes coul= d > now be MFC-ed in 10-STABLE as the KBI stability can be kept now: >=20 > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D264321 > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D264342 > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D264351 > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D264356 > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D273850 The related 10-STABLE MFC commit is now here: https://svnweb.freebsd.org/base?view=3Drevision&revision=3D275402 And just for interested persons below two TCP short-lived connection improvements changes only in HEAD (No plan for MFC so far): Decrease lock contention in TCP accept https://svnweb.freebsd.org/base?view=3Drevision&revision=3D261242 Decrease lock contention in TCP SYN input: https://svnweb.freebsd.org/base?view=3Drevision&revision=3D271119 -- Julien --HM5iDcgwu0J8PSRGkV39WWAvEqpVKCGsf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUfbB+AAoJEKVlQ5Je6dhxtocH/jHmn1ZyNSZLXe/FpiIOFNcu Ac7mMWMvburpaIIyNji4rskMsYXTiZ0bvZ3JAGZ+B/QurMgTmp7x91VI8mQul59K APUJn/DvsvVB1e/A6kKYXaINmCpiHMHfO/hcKNpHRnzn6s6sDdy6ACRSgQStXAIZ 5IHCgdAsUv2mvjcD1FEmOq7zlGx/P5Ft9hDJDYHNxIGR02xbrFHDoCrpWMWh2OMe WStFFK2WWwGbTfTGLZMH8vOW1P+oTn1y8njSISImmWFAZxN7u0xrQGRo+qbwk7TO 1SpRMoEuE/t4mtWLVQfrPDrX9a7oNBr/p9j/HW3fMPF5LCLvlnnqNMwt0ZV6FwU= =Ar9P -----END PGP SIGNATURE----- --HM5iDcgwu0J8PSRGkV39WWAvEqpVKCGsf--