Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4569C61DA4 for ; Mon, 6 Mar 2023 11:15:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbjCFLPz (ORCPT ); Mon, 6 Mar 2023 06:15:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbjCFLPZ (ORCPT ); Mon, 6 Mar 2023 06:15:25 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B6823332; Mon, 6 Mar 2023 03:15:09 -0800 (PST) Received: from dggpeml500018.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4PVb3L4dssz1gwjt; Mon, 6 Mar 2023 18:51:10 +0800 (CST) Received: from [10.67.111.186] (10.67.111.186) by dggpeml500018.china.huawei.com (7.185.36.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 6 Mar 2023 18:51:15 +0800 Message-ID: Date: Mon, 6 Mar 2023 18:51:15 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: Re: Patch "sched/fair: sanitize vruntime of entity being placed" has been added to the 4.14-stable tree To: Greg KH CC: , Sasha Levin , , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider References: <20230305040248.1787312-1-sashal@kernel.org> <1f8388a8-39cf-080c-4a6d-36b3059544a5@huawei.com> From: Zhang Qiao In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.186] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500018.china.huawei.com (7.185.36.186) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 在 2023/3/6 18:05, Greg KH 写道: > On Mon, Mar 06, 2023 at 05:28:41PM +0800, Zhang Qiao wrote: >> >> >> 在 2023/3/6 17:19, Greg KH 写道: >>> On Mon, Mar 06, 2023 at 04:31:57PM +0800, Zhang Qiao wrote: >>>> >>>> >>>> 在 2023/3/5 12:02, Sasha Levin 写道: >>>>> This is a note to let you know that I've just added the patch titled >>>>> >>>>> sched/fair: sanitize vruntime of entity being placed >>>>> >>>>> to the 4.14-stable tree which can be found at: >>>>> http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary >>>>> >>>>> The filename of the patch is: >>>>> sched-fair-sanitize-vruntime-of-entity-being-placed.patch >>>>> and it can be found in the queue-4.14 subdirectory. >>>>> >>>>> If you, or anyone else, feels it should not be added to the stable tree, >>>>> please let know about it. >>>>> >>>>> >>>>> >>>>> commit 38247e1de3305a6ef644404ac818bc6129440eae >>>> >>>> Hi, >>>> This patch has significant impact on the hackbench.throughput [1]. >>>> Please don't backport this patch. >>>> >>>> [1] https://lore.kernel.org/lkml/202302211553.9738f304-yujie.liu@intel.com/T/#u >>> >>> This link says it made hackbench.throughput faster, not slower, so why >>> would we NOT want it? >> >> Please see this section. In some cases, this patch reset task's vruntime by mistake and >> will lead to wrong results. >> >> >> On Tue, Feb 21, 2023 at 03:34:16PM +0800, kernel test robot wrote: >>> >>> FYI, In addition to that, the commit also has significant impact on the following tests: >>> >>> +------------------+--------------------------------------------------+ >>> | testcase: change | hackbench: hackbench.throughput -8.1% regression | >>> | test machine | 104 threads 2 sockets (Skylake) with 192G memory | >>> | test parameters | cpufreq_governor=performance | >>> | | ipc=socket | >>> | | iterations=4 | >>> | | mode=process | >>> | | nr_threads=100% | >>> +------------------+--------------------------------------------------+ >>> >>> Details are as below: > > So one benchmark did better, by a lot, and one did less, by a little? > Which one matters "more"> > > So Linus's tree now has a regression? Or not? I'm confused. We are Yes, Linus's tree also has a regression, and i have sent a patch[1] for fix this regression. [1]: https://lore.kernel.org/lkml/79850642-ebac-5c23-d32d-b28737dcb91e@huawei.com/ thanks. Zhang qiao. > just matching what is in Linus's tree, if it's wrong here, in a stable > tree, it should be wrong there too. If not, please explain why not? > > thanks, > > greg k-h > . >