From owner-freebsd-current@freebsd.org Sun May 19 01:58:52 2019 Return-Path: Delivered-To: freebsd-current@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 F318B159EE00 for ; Sun, 19 May 2019 01:58:51 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670085.outbound.protection.outlook.com [40.107.67.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-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 9393171912 for ; Sun, 19 May 2019 01:58:48 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YQXPR0101MB2055.CANPRD01.PROD.OUTLOOK.COM (52.132.77.144) by YQXPR0101MB1717.CANPRD01.PROD.OUTLOOK.COM (52.132.83.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.17; Sun, 19 May 2019 01:58:44 +0000 Received: from YQXPR0101MB2055.CANPRD01.PROD.OUTLOOK.COM ([fe80::b535:e1a6:ba8b:2143]) by YQXPR0101MB2055.CANPRD01.PROD.OUTLOOK.COM ([fe80::b535:e1a6:ba8b:2143%7]) with mapi id 15.20.1900.010; Sun, 19 May 2019 01:58:44 +0000 From: Rick Macklem To: "freebsd-current@FreeBSD.org" Subject: RFC w.r.t. toggling debugging on/off for mountd via a signal Thread-Topic: RFC w.r.t. toggling debugging on/off for mountd via a signal Thread-Index: AQHVDeUhVyS7UNYXMkevHz6RE46Z1Q== Date: Sun, 19 May 2019 01:58:44 +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: 3a95637c-616e-4438-0f61-08d6dbfd863c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:YQXPR0101MB1717; x-ms-traffictypediagnostic: YQXPR0101MB1717: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 00429279BA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(346002)(39850400004)(376002)(396003)(51874003)(199004)(189003)(14454004)(25786009)(2501003)(8936002)(71190400001)(71200400001)(786003)(2351001)(478600001)(7696005)(316002)(52536014)(5660300002)(53936002)(76116006)(64756008)(66556008)(66446008)(66476007)(66946007)(73956011)(74316002)(81166006)(6916009)(256004)(86362001)(9686003)(99286004)(46003)(2906002)(68736007)(55016002)(33656002)(81156014)(5640700003)(305945005)(102836004)(186003)(8676002)(6506007)(486006)(476003)(6436002)(4744005)(74482002); DIR:OUT; SFP:1101; SCL:1; SRVR:YQXPR0101MB1717; H:YQXPR0101MB2055.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: zDG3uMMAycCe5TTzxZci3z0MxG1n3RkyCBMFQ+zFTafDWlKg7oyy7Qw7LSaWaQYP6DL61uBaJcCtPTUg3GMTdCRgXrJYIjyell+2E9N+Rq0i6xp2rM4fOaRrhmU+tlaatnEGiUxJY5RRP0K/OElUznuMjJG7AH7MnI/157vmN6oFtkvwwdBe3fwEzRd1h1KXlFLOkA/Ps3c0wDHgf0E09/h9Hr9BGwn0SNKJMvtQ4UU7ZfhCoWyJhObJ8DZj8J4CLwmZJAwt5XpOe1PQ3eQ7/1zR/D11DK9W7FbVXk7lS8pemIoh80O+FL0rAhkDjd2T691aP8nuaDX1Oqlxf0KneWpUA82t4Xzpqph4r0qYyYO3ZvWj2BEXsYA2cUS9DN57//DCUF5STo0O9w55BtyM/bDeAm6uomGa2cqqOyLHYnc= 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: 3a95637c-616e-4438-0f61-08d6dbfd863c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2019 01:58:44.3516 (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: YQXPR0101MB1717 X-Rspamd-Queue-Id: 9393171912 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.67.85 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-2.38 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,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)[-0.997,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; 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,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com]; NEURAL_HAM_SHORT(-0.09)[-0.088,0]; RCVD_IN_DNSWL_NONE(0.00)[85.67.107.40.list.dnswl.org : 127.0.3.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2019 01:58:52 -0000 Hi, I've been working with Peter Errikson on a patch for mountd that adds a new= option for incremental updating of exports. This seems to be helping a lot w.r.t. = performance on an NFS server with lots (10000+) of exported file systems. I have debug syslog() calls in the code, which I/Peter think would be worth= keeping in the production code in case someone runs into problems with this new opt= ion. As such, I'd like to have the code compiled in by default (not only if DEBU= G is defined, as mountd.c has now). I also was thinking it would be nice if the daemon di= dn't need to be restarted to enable/disable the debugging output, since that breaks N= FS mounting during the restart. So, I was thinking of having the debugging output toggled on/off via SIGUSR= 1. What do you think of this idea? Any other/better ways to do this? Also, would LOG_DAEMON and LOG_DEBUG sound like the correct facility and priority for theses syslog() calls? Thanks in advance for any comments, rick