Received: by 10.192.165.156 with SMTP id m28csp241635imm; Tue, 17 Apr 2018 09:21:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+FzTG/+EySCcJ50NzNS6UhGadJgVcqO/MUFFwdu8ne4V+iuDJYhyXlk3c2NFyc0KOma/Ew X-Received: by 2002:a17:902:784c:: with SMTP id e12-v6mr2665208pln.60.1523982112081; Tue, 17 Apr 2018 09:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523982112; cv=none; d=google.com; s=arc-20160816; b=CSvPfp6ZCwl64o+uuejaekBxb2VgAW7FYdFosxwFJLqAv0pQOZH12tzphJuWltjsgK 3W/pAkyoFbob3HxPiJY1o18s1/Vl5u0nnfrGh7ZhiK6KehFYhu7XKhLCuu1Xaii1UiOu YluXNxSf4lZgkE4A8yHN16J40YWVj0JkblnWzhMTPyAj30KbQNE9DubGZKNQB1aMG4tp OSO/P/mDcgIkJ7W6kJDmmzkpDqv5CsLcdpc5RecLcZCEVgiiUW53E9Ogwexrlu0dk83g tb+zogy9I8wHB3O1DLfcY9/+yA7AelZFHWkcE06sKgnBDDwe/KA+l/Jk+MarKLrhIxt3 CDTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=gzCYDZMLZ5O5okDOVvr2JMUsS1GwN+bO1RcZxogwjrE=; b=bqVOQiju6d1HfTUUtCYe2fJFv4PKjk3QmzR1UqO4R3LnLQc0ZrQlq7Ud2pys857v8r pBfH6XiVE8NfAA9IlcvyBjNuz1mbZ8ldViU3w3a/0YgSXOgs4UDlDzgHCQLxx+e/f0XY soQ5cuATuPUuAQexQ0C74MCPEq2gspeo3fO0+6HlgG1/5LteQ2MSyFl8QW2ei3CwAtLj OfWc/PWcwHKSfVpq12haYbiejgcW4EDSU+4VRWbxDK10lt7R43Mmt41OtoA4yHEgLse6 DIutIwLvv8Fqtv8dQVjepi3srnLh0EF6McaPPWOJXdd0QyXpNVj8rgJztrA2wHhrzGLu EncQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=C/epXbD2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si6663558pgr.518.2018.04.17.09.21.37; Tue, 17 Apr 2018 09:21:52 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=C/epXbD2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755973AbeDQQTk (ORCPT + 99 others); Tue, 17 Apr 2018 12:19:40 -0400 Received: from mail-bn3nam01on0108.outbound.protection.outlook.com ([104.47.33.108]:39472 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754386AbeDQQTh (ORCPT ); Tue, 17 Apr 2018 12:19:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gzCYDZMLZ5O5okDOVvr2JMUsS1GwN+bO1RcZxogwjrE=; b=C/epXbD2B6HENy64L/ZV3pR7KDpo0GK+0QwOr1PRUhnXFDcoKigePukSqrIUOTdl6GDiGSKG+NOH69lcZf7otLcM+23nuZbNgOImKpttX2p0vGCPgRUPwE9YXfZY9DXFBVJogy3kApvGFRvU4p4VE0HPVcv40I+sqIKQxbNIyDM= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0933.namprd21.prod.outlook.com (52.132.131.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.5; Tue, 17 Apr 2018 16:19:35 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0715.004; Tue, 17 Apr 2018 16:19:35 +0000 From: Sasha Levin To: Jan Kara CC: Pavel Machek , Steven Rostedt , Linus Torvalds , Petr Mladek , "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Peter Zijlstra , Mathieu Desnoyers , Tetsuo Handa , Byungchul Park , Tejun Heo Subject: Re: [PATCH AUTOSEL for 4.14 015/161] printk: Add console owner and waiter logic to load balance console writes Thread-Topic: [PATCH AUTOSEL for 4.14 015/161] printk: Add console owner and waiter logic to load balance console writes Thread-Index: AQHTz5h7IvK2v80d0k6VVqDoPwJEM6P4GK8AgAnYKwCAAX5DAIAAHfKAgAAFIICAAAchAIAAAugAgAAB5YCAAAMcgIAAAh8AgAAH3gCAAATcgIABMtsAgAAewoCAACg7gIAABqKA Date: Tue, 17 Apr 2018 16:19:35 +0000 Message-ID: <20180417161933.GY2341@sasha-vm> References: <20180416160200.GY2341@sasha-vm> <20180416121224.2138b806@gandalf.local.home> <20180416161911.GA2341@sasha-vm> <20180416123019.4d235374@gandalf.local.home> <20180416163754.GD2341@sasha-vm> <20180416170604.GC11034@amd> <20180416172327.GK2341@sasha-vm> <20180417114144.ov27khlig5thqvyo@quack2.suse.cz> <20180417133149.GR2341@sasha-vm> <20180417155549.6lxmoiwnlwtwdgld@quack2.suse.cz> In-Reply-To: <20180417155549.6lxmoiwnlwtwdgld@quack2.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0933;7:Bkb1eXAtc4yZt2KZVJ3wqSzKDrR3KWH3M6cW+qNoJRCDjOiJ2lpLNTVmBZpMQ9IVt4kKOqsegJhpq7HWV6yZHDGOjMxpOpB7Mflj7cb8ozS+hGE56Mspb1osT81x5TM1jHOuFElLptkjlGmqNCwvlBHIArDSX4B+XeTIh8ib0jNoFrpqE5on/65ipXWtggxpO5jPLh0gixDuYr7sAt2Nv9M3uO9u59Mee7tqCCW6ilGYMraYk7mfZh7mt+m7jBIp;20:DMleutOREHUFb/41Q9HvDuD6qFshOP4C/J0ZhLnXq8hRfdpAkfm42qbotjUYYhMlTEJLz7AZvF6QaS8/sl9crG9OVVTQWu64IOrWtWAKD+kUNYcT/lOVUt1MVhBIlKD4g+AdzdByG54Rmxue9HJlVEoR/6t4SJnwxLUZkdqvw+o= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7193020);SRVR:DM5PR2101MB0933; x-ms-traffictypediagnostic: DM5PR2101MB0933: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231232)(944501359)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0933;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0933; x-forefront-prvs: 0645BEB7AA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(376002)(39860400002)(396003)(39380400002)(346002)(366004)(199004)(189003)(377424004)(81166006)(81156014)(6486002)(8936002)(478600001)(305945005)(2900100001)(486006)(72206003)(26005)(3660700001)(8676002)(10290500003)(186003)(25786009)(86362001)(4326008)(11346002)(446003)(97736004)(7416002)(5660300001)(3280700002)(105586002)(476003)(14454004)(2906002)(33716001)(6512007)(93886005)(6436002)(59450400001)(33896004)(6506007)(102836004)(99286004)(6916009)(86612001)(33656002)(66066001)(7736002)(9686003)(22452003)(68736007)(76176011)(3846002)(5250100002)(316002)(10090500001)(6116002)(6246003)(53936002)(39060400002)(54906003)(106356001)(229853002)(1076002)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0933;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: qGnA4RddCxFmHcd3DYhA8NEQ16biZn/aK+n02lTaa/EyFkh/7dEbxm/WW3nJYRuEfvY0LjQlCAXzXDTg24I2RuOcHl+DmYAMgfkMrq2BMiINmYrO2HQXev3pHQubmaMnY9MhzsgbT+GzgDo3TW/7YxTZChqSTz1x1YbTBh54CV3wmLZ3tOQ0t7EtHXmi16pB spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <691D2CF14B25954AA8F1F65B4D37659A@namprd21.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d3150652-7695-4192-9126-08d5a47f02a1 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3150652-7695-4192-9126-08d5a47f02a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2018 16:19:35.3417 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0933 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 05:55:49PM +0200, Jan Kara wrote: >On Tue 17-04-18 13:31:51, Sasha Levin wrote: >> We may be able to guesstimate the 'regression chance', but there's no >> way we can guess the 'annoyance' once. There are so many different use >> cases that we just can't even guess how many people would get "annoyed" >> by something. > >As a maintainer, I hope I have reasonable idea what are common use cases >for my subsystem. Those I cater to when estimating 'annoyance'. Sure I don= 't >know all of the use cases so people doing unusual stuff hit more bugs and >have to report them to get fixes included in -stable. But for me this is a >preferable tradeoff over the risk of regression so this is the rule I use >when tagging for stable. Now I'm not a -stable maintainer and I fully agre= e >with "those who do the work decide" principle so pick whatever patches you >think are appropriate, I just wanted explain why I don't think more patche= s >in stable are necessarily good. The AUTOSEL story is different for subsystems that don't do -stable, and subsystems that are actually doing the work (like yourself). I'm not trying to override active maintainers, I'm trying to help them make decisions. The AUTOSEL bot will attempt to apply any patch it deems as -stable for on all -stable branches, finding possible dependencies, build them, and run any tests that you might deem necessary. You would be able to start your analysis without "wasting" time on doing a bunch of "manual labor". There's a big difference between subsystems like yours and most of the rest of the kernel. >> Even regression chance is tricky, look at the commits I've linked >> earlier in the thread. Even the most trivial looking commits that end up >> in stable have a chance for regression. > >Sure, you can never be certain and I think people (including me) >underestimate the chance of regressions for "trivial" patches. But you jus= t >estimate a chance, you may be lucky, you may not... > >> >Another point I wanted to make is that if chance a patch causes a >> >regression is about 2% as you said somewhere else in a thread, then by >> >adding 20 patches that "may fix a bug that is annoying for someone" you= 've >> >just increased a chance there's a regression in the release by 34%. And >> >> So I've said that the rejection rate is less than 2%. This includes >> all commits that I have proposed for -stable, but didn't end up being >> included in -stable. >> >> This includes commits that the author/maintainers NACKed, commits that >> didn't do anything on older kernels, commits that were buggy but were >> caught before the kernel was released, commits that failed to build on >> an arch I didn't test it on originally and so on. >> >> After thousands of merged AUTOSEL patches I can count the number of >> times a commit has caused a regression and had to be removed on one >> hand. >> >> >this is not just a math game, this also roughly matches a real experien= ce >> >with maintaining our enterprise kernels. Do 20 "maybe" fixes outweight = such >> >regression chance? And I also note that for a regression to get reporte= d so >> >that it gets included into your 2% estimate of a patch regression rate, >> >someone must be bothered enough by it to triage it and send an email >> >somewhere so that already falls into a category of "serious" stuff to m= e. >> >> It is indeed a numbers game, but the regression rate isn't 2%, it's >> closer to 0.05%. > >Honestly, I think 0.05% is too optimististic :) Quick grepping of 4.14 >stable tree suggests some 13 commits were reverted from stable due to bugs= . >That's some 0.4% and that doesn't count fixes that were applied to >fix other regressions. 0.05% is for commits that were merged in stable but later fixed or reverted because they introduced a regression. By grepping for reverts you also include things such as: - Reverts of commits that were in the corresponding mainline tree - Reverts of commits that didn't introduce regressions >But the actual numbers don't really matter that much, in principle the mor= e >patches you add the higher is the chance of regression. You can't change >that so you better have a good reason to include a patch... You increase the chance of regressions, but you also increase the chance of fixing bugs that affect users. My claim is that the chance to fix bugs increases far more significantly than the chance to introduce regressions.=