Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4229140pxy; Mon, 26 Apr 2021 23:08:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBKWjh7TDXJWxq8bVeE5Wxc4mYXhZMKx8MM0pD0f9GdMZh+HCJZcPWkWDT0pr9lipwwYzr X-Received: by 2002:a17:906:b353:: with SMTP id cd19mr21719869ejb.253.1619503714448; Mon, 26 Apr 2021 23:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619503714; cv=none; d=google.com; s=arc-20160816; b=Mxbnvu03BIavwcZAvZrzFNYji0cFzqkqAsrqV4dVP4YwE9/KrwUyTd2lsj+e8pp4pN sd9NT/sScPePTiV0V6BiFDMqZx3TPSL8N18ZgE+XuzVF1c5JOy/Qr1S7dV8eOPJC+kO1 dKtJVQPjUssu9gMf/Lmd3lYWy7jX4zd4hYWrooK4kVFtYamcjCBBkotQxpgLFUQTekbZ xsAK58U1JWzc9EcCyspy+R9N+ljQIwrNjYSaM2qhAlrHIKB/jwSA6PDDtLRZZkaN8eY2 IykOSgrNgj8TnIgn81iqtZFm9/390JxQJNTLaRnZPXACdRP7ybjP7VTYcDiwevGTJ4Ut Frfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=NlGjoGcLCucriAYyJpWHlKa7MWEVHjrMDcLo1F64WuY=; b=t9tR+JIWnETI5KnsUQGNU2yiohyVIPTPesOWkSy4hl2xvl6tUzC+0nD02wY2a1mglu VbUnEH04jHyzL6c6Sz5to0FYDaqH+vXg5SWIrKIF//5jUi/YmRBeuq5fzdZSWNY/BQTf ClYKYB2982Dg3eq5RL+/zBBQfm7XYmuS4gQWKqhcL/hMZNUMBsxpKnx07KOHaMtjIeob iQ5uu6tjkgP5lBx2AZtx2SgOgrY0ML3PuVHObJ8QBRos6diLSgo+ilWyemlFv5H+jP/z Y7yvXuWA94C3xyMnedbBsMQgXleSkHsUYifG/n9f3B8xwSoOBoa7J5juefeFxIEj+EOc xYzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si1605880edq.13.2021.04.26.23.08.09; Mon, 26 Apr 2021 23:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbhD0GF6 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Apr 2021 02:05:58 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3957 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbhD0GF5 (ORCPT ); Tue, 27 Apr 2021 02:05:57 -0400 Received: from dggeml763-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FTrlQ4Zhwz5vms; Tue, 27 Apr 2021 14:02:42 +0800 (CST) Received: from dggpemm000002.china.huawei.com (7.185.36.174) by dggeml763-chm.china.huawei.com (10.1.199.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 27 Apr 2021 14:05:10 +0800 Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggpemm000002.china.huawei.com (7.185.36.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 27 Apr 2021 14:05:09 +0800 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.2176.012; Tue, 27 Apr 2021 14:05:09 +0800 From: "Song Bao Hua (Barry Song)" To: Mike Galbraith , "vincent.guittot@linaro.org" , "mingo@redhat.com" , "peterz@infradead.org" , "dietmar.eggemann@arm.com" , "rostedt@goodmis.org" , "bsegall@google.com" , "mgorman@suse.de" CC: "valentin.schneider@arm.com" , "juri.lelli@redhat.com" , "bristot@redhat.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "xuwei (O)" , "Zengtao (B)" , "guodong.xu@linaro.org" , yangyicong , "Liguozhu (Kenneth)" , "linuxarm@openeuler.org" , wanghuiqiang , "xieyongjia (A)" Subject: RE: [PATCH] sched/fair: don't use waker's cpu if the waker of sync wake-up is interrupt Thread-Topic: [PATCH] sched/fair: don't use waker's cpu if the waker of sync wake-up is interrupt Thread-Index: AQHXOw9dc8i42PiGaEKAYTXwXtRa3KrHPV0AgACFWFD//5SmAIAAhgYg Date: Tue, 27 Apr 2021 06:05:09 +0000 Message-ID: <6c91195a6de9423abc78e8f85efc2780@hisilicon.com> References: <20210427023758.4048-1-song.bao.hua@hisilicon.com> <9a6cadd9b65068b52c95adc44119bd09c6a4f9d7.camel@gmx.de> <3fe7113cc87ac89077b55ca55bda2b99729f13c8.camel@gmx.de> In-Reply-To: <3fe7113cc87ac89077b55ca55bda2b99729f13c8.camel@gmx.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.201.183] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Mike Galbraith [mailto:efault@gmx.de] > Sent: Tuesday, April 27, 2021 5:55 PM > To: Song Bao Hua (Barry Song) ; > vincent.guittot@linaro.org; mingo@redhat.com; peterz@infradead.org; > dietmar.eggemann@arm.com; rostedt@goodmis.org; bsegall@google.com; > mgorman@suse.de > Cc: valentin.schneider@arm.com; juri.lelli@redhat.com; bristot@redhat.com; > linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; xuwei (O) > ; Zengtao (B) ; > guodong.xu@linaro.org; yangyicong ; Liguozhu (Kenneth) > ; linuxarm@openeuler.org; wanghuiqiang > ; xieyongjia (A) > Subject: Re: [PATCH] sched/fair: don't use waker's cpu if the waker of sync > wake-up is interrupt > > On Tue, 2021-04-27 at 04:44 +0000, Song Bao Hua (Barry Song) wrote: > > > > > > I agree sync hint might have been overused by other kernel subsystem. > > But this patch will at least fix a case: sync waker is interrupt, > > in this case, the existing task has nothing to do with waker and wakee, > > so this case should be excluded from wake_affine_idle(). > > I long ago tried filtering interrupt wakeups, and met some surprises. > Wakeup twiddling always managing to end up being a rob Peter to pay > Paul operation despite our best efforts, here's hoping that your pile > of stolen cycles is small enough to escape performance bot notice :) Would you like to share the link you did before to filter interrupt wakeups? The wake up path has hundreds of lines of code, so I don't expect that reading preempt_count will cause visible performance losses to bot. But who knows :-) > > -Mike Thanks Barry