Received: by 10.192.165.156 with SMTP id m28csp732855imm; Tue, 17 Apr 2018 19:30:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/XDCwdSaOPBfZLjScQeed6qUdsNGbEc0FNgXrnl9LcVi699vaP5YmzrfBS+8iQahpVqYX1 X-Received: by 2002:a17:902:590d:: with SMTP id o13-v6mr263761pli.130.1524018638713; Tue, 17 Apr 2018 19:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524018638; cv=none; d=google.com; s=arc-20160816; b=yb+poALonYx53u3s9pbXRJf0DJMOvxM3d4E7rtqEYYEGdOFB5tYziCaQuKvBZFeEac 1+ieicdDMi07pNP/FsZQixh5/t00vR1Vdxe+lsd2T9qHFmvxb99L9pR0MQEm/vUBaX4w rc/dgt1V6EzwAYCQDxOk4iWj7jLOr2z2RpkAxLoM6NITICQcbvIfaKvQA+HqAgQCNMC2 cNqOlKFSX55YiNGm8pZyoYv/yIZMk+snevHAgXkSJrBWqy+NEvtgXu6mz4r+QfPKoCPK WvhE53V0Au5WE+SR7xXv+bukmAMM2TF2jexe2256IjubO8QcAboSv3DiIrmzyQbfFg/W 9keQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=dILz2Exi3rnQFYrwopsa0R+Qhiysg/iYgBCilLNKGfs=; b=C1dbDalVZU7zxfnGYJ493OgSiYC+TkgUztRS4Nj8OsCIitz1rBeTOuzx8hEsv/TToK fH3aBKRzw3COvZ39KtzNgVJNDCSuCJ1pqnHK/D14uxLKf1fI0aMEgqx6hssNIVX34eq+ JJfHf3ztm9zw+Irj/vYlv3YW5SQDYHp6OOraWGH07xYQbaIE5pFkwUq5eKFlvRV22ma1 zKw1bEsfhhz5xD0MaR39pStV77EuCvu/NpwywiXw/EH8S5L88uB2Bt4B2lPqWE68CNOq s+VSutlM3d1BUvzncMunm3Nav5JdtOKvfUnIRo7FxQ1V22dq8G9vSmc/toNLwIt3Pulb cJwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si169694pgn.420.2018.04.17.19.30.23; Tue, 17 Apr 2018 19:30:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753144AbeDRC3S (ORCPT + 99 others); Tue, 17 Apr 2018 22:29:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:51442 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752840AbeDRC3R (ORCPT ); Tue, 17 Apr 2018 22:29:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0C869AC87; Wed, 18 Apr 2018 02:29:16 +0000 (UTC) From: NeilBrown To: James Simmons , Patrick Farrell Date: Wed, 18 Apr 2018 12:29:08 +1000 Cc: Oleg Drokin , Greg Kroah-Hartman , Linux Kernel Mailing List , Lustre Development List Subject: Re: [lustre-devel] [PATCH 1/6] staging: lustre: move stack-check macros to libcfs_debug.h In-Reply-To: References: <152383910760.23409.2327082725637657049.stgit@noble> <152383935730.23409.6748888065027051683.stgit@noble> <6D3C7935-E7ED-4826-B459-0C4888D6048E@cray.com> Message-ID: <877ep5s0wb.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, Apr 16 2018, James Simmons wrote: >> James, >>=20 >> If I understand correctly, you're saying you want to be able to build wi= thout debug support...? I'm not convinced that building a client without d= ebug support is interesting or useful. In fact, I think it would be harmfu= l, and we shouldn't open up the possibility - this is switchable debug with= very low overhead when not actually "on". It would be really awful to get= a problem on a running system and discover there's no debug support - that= you can't even enable debug without a reinstall. >>=20 >> If I've understood you correctly, then I would want to see proof of a si= gnificant performance cost when debug is built but *off* before agreeing to= even exposing this option. (I know it's a choice they'd have to make, but= if it's not really useful with a side order of potentially harmful, we sho= uldn't even give people the choice.) > > I'm not saying add the option today but this is more for the long game. > While the Intel lustre developers deeply love lustre's debugging=20 > infrastructure I see a future where something better will come along to > replace it. When that day comes we will have a period where both > debugging infrastructurs will exist and some deployers of lustre will > want to turn off the old debugging infrastructure and just use the new. > That is what I have in mind. A switch to flip between options. My position on this is that lustre's debugging infrastructure (in mainline) *will* be changed to use something that the rest of the kernel can and does use. Quite possibly that "something" will first be enhanced so that it is as powerful and useful as what lustre has. I suspect this will partly be pr_debug(), partly WARN_ON(), partly trace points. But I'm not very familiar with tracepoints or with lustre debugging yet so this is far from certain. pr_debug() and tracepoints can be compiled out, but only kernel-wide. There is no reason for lustre to be special there. WARN_ON() and BUG_ON() cannot be compiled out, but BUG_ON() must only be used when proceeding is unarguably worse than crashing the machine. In recent years a lot of BUG_ON()s have been removed or changed to warnings. We need to maintain that attitude. I don't like the idea of have two parallel debuging infrastructures that you can choose between - it encourages confusion and brings no benefits. Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlrWrXQACgkQOeye3VZi gbkn5Q//RimpJj8Twvxzyqnt8GZ840xkrOwfML15FXuIh39DnGWxHOzC6y3hjvxo oemIRum606H/Crz99kF9uVfXkqvD2rkPW0bqRoWJ1UAvfTtfEpbJA6sW4uDBEvQy N3UBvwJxhSML1Hjvq/rWHA3JuYoFJf2hy4S66hgT8m6oOHcNgLJTTbZCHWj77+Bb koZvVwt2MeqARRoYaxjY+MG3BbJaq84/RirZYKkMGTDaVE2tlHwRkQpcDrnG5bIl X+5XLGazYK+lGyrisUBNgOVwIg7UMrDwhOlTNVj9qNwd10FdlCCyR/NWsO9M3C4R 6zLpq6FH7qj8Fmx2mSCUX97uRFpbfIqlVSM88KN+z4XQJMe8Bhhi3u5J8OJPESzM SZ7ZfmHp5C/DZvo7htLpeW6E7+9TgvzRr0zWtI40ljf6XhmKzwXa0KSQpgBoqiXq uYgb/MG5QCUtLUlt456VN8cwD22LEqjqjhnvpnYvY0KKhi4dhg/w/SA53pbi2BMr Zia6axtqyl42aHmbhdIOStUGkSh57ORS38FtyM4grRXbpRpp8rB/4MwWkBOHHod5 lxixvr3b09pzz0WXTWgpo6PeJixM8XF0i27UmWeft0Sml948XbmUoKZ3dxPYPSOS iXdjk7O4Xwsy5Sld1En10yiN6fg1W8av2NE1Q3e3pAjy0hO12PA= =3OUa -----END PGP SIGNATURE----- --=-=-=--