From owner-freebsd-stable@freebsd.org Mon May 13 00:18:20 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D768D15A6445 for ; Mon, 13 May 2019 00:18:19 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660056.outbound.protection.outlook.com [40.107.66.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7874E901B0 for ; Mon, 13 May 2019 00:18:18 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YQBPR0101MB2260.CANPRD01.PROD.OUTLOOK.COM (52.132.70.13) by YQBPR0101MB0707.CANPRD01.PROD.OUTLOOK.COM (52.132.73.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.22; Mon, 13 May 2019 00:18:16 +0000 Received: from YQBPR0101MB2260.CANPRD01.PROD.OUTLOOK.COM ([fe80::e92e:7851:66e9:3967]) by YQBPR0101MB2260.CANPRD01.PROD.OUTLOOK.COM ([fe80::e92e:7851:66e9:3967%7]) with mapi id 15.20.1878.024; Mon, 13 May 2019 00:18:16 +0000 From: Rick Macklem To: FreeBSD-STABLE Mailing List Subject: Patch to improve mountd performance for reload of exports Thread-Topic: Patch to improve mountd performance for reload of exports Thread-Index: AQHVCSCpzJASEVnoS0qc8B+A1Xp9Eg== Date: Mon, 13 May 2019 00:18:16 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7741c85e-340e-4991-dc4f-08d6d7387ec1 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:YQBPR0101MB0707; x-ms-traffictypediagnostic: YQBPR0101MB0707: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0036736630 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(346002)(376002)(136003)(39850400004)(199004)(189003)(52544003)(14454004)(99286004)(4744005)(7696005)(5660300002)(6916009)(316002)(25786009)(305945005)(786003)(46003)(76116006)(73956011)(186003)(66476007)(66946007)(478600001)(33656002)(64756008)(66556008)(66446008)(8676002)(486006)(102836004)(6506007)(476003)(8936002)(71200400001)(9686003)(74316002)(71190400001)(52536014)(74482002)(5024004)(2906002)(68736007)(55016002)(256004)(53936002)(81156014)(6436002)(86362001)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:YQBPR0101MB0707; H:YQBPR0101MB2260.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: xpGZsYQgeSwhfMnJqDlhxQQNdGUqrWw63I73EPuUhChwF4CTsCt5+UxHuWAOvnzZOfM8JT2OfaQr7M/cID3w6BVX0+2Q152I04DqxEu4as6xR62sx/gUZ9/rqlSKqMD+JIphuSnr9Y+uMtbR/uNCZ9psGYV2Q0J4NPETGviMmvxY4fD8NzIw2ZriNnlCH7lL53RUUAFJmzxQTPOXzMh+M2yoI3rvgTLGWbRViGkNsmoDq28vtAM1eGaFOSuuEVHWM/7LkqtSAq4nbOxSND9dWw+pER9/wxFvce9i0HJfifdwewyksKf8YB3Dm3JFt+p4wvclzLkaEXMWB2ZH258SSA0e3im+8o2RBnZlIqDHs8+5PsJj0xXsJzX5zjhtg13ZWlrM6rB+8wpPvQJheO6FtXMPKaC/5LkesMRsS/ldfKA= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 7741c85e-340e-4991-dc4f-08d6d7387ec1 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2019 00:18:16.3278 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB0707 X-Rspamd-Queue-Id: 7874E901B0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.56 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-4.20 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[uoguelph.ca]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-0.99)[ipnet: 40.64.0.0/10(-2.70), asn: 8075(-2.22), country: US(-0.06)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com]; NEURAL_HAM_SHORT(-0.90)[-0.896,0]; RCVD_IN_DNSWL_NONE(0.00)[56.66.107.40.list.dnswl.org : 127.0.3.0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2019 00:18:20 -0000 Hi, I have created PR#237860 to keep track of a patch I have to try and improve the performance of mountd when reloading exports for an NFS server with a lot of file systems. Peter reported that the nfsd threads would be stalled = for 16sec when exports were reloaded (via SIGHUP) for his file server with 7200= 0+ file systems on it. Peter will be testing this patch, but I would appreciate it if anyone else = can test it as well. It doesn't matter if your NFS file server only exports a few fi= le systems, because I would like to find out if the patch results in any regressions. (The new capability of incrementally updating the exports in the kernel upo= n a reload is only enabled if mountd is started with the new "-I" option the = patch adds.) If anyone can test the patch (it is the attachment in the PR), please let m= e know how it goes. Thanks, rick