Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2439573pxb; Sun, 3 Apr 2022 07:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3H346JAh/NEBN+nMuimmPZPAiTST8diHzFixgyKVTYZo0l6Kna15aILGabbuULiIo7X0z X-Received: by 2002:a17:902:7686:b0:156:47a4:fc8f with SMTP id m6-20020a170902768600b0015647a4fc8fmr19337882pll.98.1648994492130; Sun, 03 Apr 2022 07:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648994492; cv=none; d=google.com; s=arc-20160816; b=fv4xoUIvFeUToG4pZsyLoMuh6icuM03CPjVZvO75vsGx4AXi9NmpxSU5ooN8EAkV9r n8RHAdvSflepNtrmeb0GtzrwjJa8P756z9d1GBe3rI+UNAUxZBU/Y8VboihSGSqC+0tO Vb3I9SLXDaY1pFEFmaRTanFO3q2tzS48tCGdAdthsQ8vgd1RrruTAlCuQePnoBLRXEIG X6HbgnsSH6qEaaPCweq2hKCuskZhfC+JuIuHrwXDAIN1geP5G90J+TvvDy3mXBnkMgeM wFQAOnYoco8Ck4UuKAUma9xhONA44N7bWoID3S6/Rw9Wu15g4+qJyP0OrIS09Df2aB/T ESCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WT1tpbzDbSP9t8G1jkgJMnxYn25i+YOBCOQG5IXPFh8=; b=mbT+mButg42f6JEJL7KXHugSR1BY9+lbhxdxSnUDlGNKrrsLXXYI6ULFxwrNtH6b3q eJO4aSS+yH8I1oMOYCgmWF/iqhRUEJ6uOQIjF28A2eqBaqqSBPiK0K5S2XwkHM+bkSZx /TXAPVBstBOYU1k/auc5QeMUt5Wr8JGu1kUCFCU1Uc6cnbyPCToYjrLZkikHwzTFrlvD 0gJzGy2m/NDdpNW/lUDBMOrGzP7Q7y2mb1MGfkwkoUe31YyZHLUAtdpTqu+SbDdpT5jR 9jJ2JsevPy0xRMzKMcezEak5thfiGkkR1Q9D8Q/+pQH65xEUC5TIZ4kB4+yh9ny5WSy+ lqhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmHGsqgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a655189000000b003816043efc6si7492559pgq.443.2022.04.03.07.01.17; Sun, 03 Apr 2022 07:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmHGsqgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350970AbiDASGP (ORCPT + 99 others); Fri, 1 Apr 2022 14:06:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350958AbiDASGM (ORCPT ); Fri, 1 Apr 2022 14:06:12 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D32A22E9 for ; Fri, 1 Apr 2022 11:04:21 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id 10so2794791qtz.11 for ; Fri, 01 Apr 2022 11:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WT1tpbzDbSP9t8G1jkgJMnxYn25i+YOBCOQG5IXPFh8=; b=GmHGsqgjUA5ThgaQ/EEn1tKYzNrTGE3cXgpyV10qyAlM0IKCS/ggdPzSAXMnVQGjEQ BbFr/PPpxCUUTBrvUAl3WP2WUPSbMMbm0BuzDL7+NXwNy36mA9psXidT+QMnO5JBZaTg qKa8/0ffzYYSQUe4IsK73NreZXTQhJ6bv7IWFZtjDRTYtvfadqvg0hCK+sK+SkgayMiV qXEWImeyaatLv8joK/00U5NDta1pmrKQrb0x74bmTEbyzuuOlDAog03V1yhOBjPMGB6i ipV089G8IzawUaB8O3LZu45FiF9Lkv9rCYxPG5KbBUsHR4vqLfVcQvNkqre38NxPfuCW cqNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WT1tpbzDbSP9t8G1jkgJMnxYn25i+YOBCOQG5IXPFh8=; b=UqdEG4/m+nrjEDYY3hzO9zNGDgeFOwhIaCD3Inei5E5F1GFC6OH3Jf3943ywlvFN97 1aFvKpOIiEtmYMFUviP/dzTsmh3m55KwgRnOPmsOVZRNbdKR6bq2CwSY4Gv8MHQ+hOEr Maw/PiLvnjgrIKjF8ASaDTTE8ZowbqdwymNZ7A6wbltsFyPqHj2HtC069/HRWGIpjVX+ g9o/qP6Ey/B+vXMJ4+y4ymU57+nmYIzxJ9Nzbe7sxSzdK+AJjF6ZZdX/MVykX+K897av pYM1zWy3EjIEuIKfS4ukiP3uND0M3I/xJzsc6k1M9G1bBRTrR6ogepzHPdlh6yAad+nz IFXA== X-Gm-Message-State: AOAM5316HSIDNFWeAJpNlLlGjTUAPUEHF+ejYazyIfeuVc0Gbo3u4LPP 4bhS5pA+Nge+GDGLaIRZrmR51aNRK62UVSEGBCg6BHS9NCJrIg== X-Received: by 2002:a05:622a:155:b0:2e1:cc60:8947 with SMTP id v21-20020a05622a015500b002e1cc608947mr9325218qtw.243.1648836260945; Fri, 01 Apr 2022 11:04:20 -0700 (PDT) MIME-Version: 1.0 References: <20220330094632.GB6999@xsang-OptiPlex-9020> <7aa67fedb4b6dc9126bc59ee993fa18d0e472475.camel@linux.intel.com> In-Reply-To: <7aa67fedb4b6dc9126bc59ee993fa18d0e472475.camel@linux.intel.com> From: Chen Yu Date: Sat, 2 Apr 2022 02:04:09 +0800 Message-ID: Subject: Re: [sched/fair] ddb3b1126f: hackbench.throughput -25.9% regression To: Tim Chen Cc: kernel test robot , 0day robot , Chen Yu , Walter Mack , LKML , lkp@lists.01.org, Huang Ying , feng.tang@intel.com, zhengjun.xing@linux.intel.com, fengwei.yin@intel.com, Peter Zijlstra , Vincent Guittot , Ingo Molnar , Juri Lelli , Mel Gorman , Aubrey Li Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 31, 2022 at 11:42 AM Tim Chen wrote: > > On Wed, 2022-03-30 at 17:46 +0800, kernel test robot wrote: > > > > Greeting, > > > > FYI, we noticed a -25.9% regression of hackbench.throughput due to commit: > > > > Will try to check the regression seen. > Double check that the regression could be reproduced on top of the latest sched/core branch: parent ("sched/fair: Don't rely on ->exec_start for migration") fbc ("sched/fair: Simple runqueue order on migrate") parent fbc 91107 -40.8% 53897 hackbench.throughput and it is consistent with lkp's original report that the context switch count is much higher with patch applied: 9591919 +510.3% 58534937 hackbench.time.involuntary_context_switches 36451523 +281.5% 1.391e+08 hackbench.time.voluntary_context_switches Considering that this patch 'raises' the priority of the migrated task, by giving it the cfs_rq->min_vruntime, it is possible that the migrated task would preempt the current running task more easily. 0.00 +12.2 12.21 perf-profile.calltrace.cycles-pp.enqueue_entity.enqueue_task_fair.ttwu_do_activate.try_to_wake_up.autoremove_wake_function and the patched version has spent more time on enqueue_entity(), which might be caused by setting sched entity hierarchy from leaf to root, which was mentioned in another thread. -- Thanks, Chenyu