Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2847702pxb; Fri, 5 Nov 2021 05:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtE8ClTT0usOyAfTjkbqtR/LEGoRT3D4y3yxxpldiSNPWlVPI6GnKUZls9A3MWJDU5l9Va X-Received: by 2002:aa7:d4d4:: with SMTP id t20mr15404376edr.374.1636116542555; Fri, 05 Nov 2021 05:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636116542; cv=none; d=google.com; s=arc-20160816; b=BaUapsk3o720TlvBIfRHf8gJ3obw35TnCaNBMQKGSDYPDEHNRCzHqJeEPQNR3OgPP7 d8Xey1Lctv5tcW3qogbuzTdV2fyykP74NHMIINBjRiY/88uFx/Wof82gwvwbb4eDrvgD ebevDBdGU1I/gUiFjaQGB8DrVAkUdw8umQYyC0YSaqEeTMIvStAhIY4Gx5Y4E8zvOeqz Dh4anjE/yoVkAZ5CoD6gRvu7dq3DwfTpw7BBdcXmlryhYdPLCuji+ND2Scc8i12td1q2 gHOHC8zH3Q/YKaJRj3vAy7Iq3hfTUhPef3BEEeEXu70/TDzvUKw+iGsLNyen4ZppbxQ4 unVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vXc9xImRQ/KDkkHk4g+JcSkINfTuLboOHaBtk+xiDzw=; b=XXUpg99OthUQbbVXM8kL8K7IEVrtzA8gntuPVmTy0F6aIwGEzXhQCfUV4ZE4pqwQ2G Yccjo/pstqBlogQPHXf9wLwFBw0GMEjGSDGIeMCBNaRIArGXjd/41U9azv7/krbmkMzz Oi2P386bYFpaJRLsD01kDgCaNSIGoP/cT0LVDxGff0wBJh9fqyoXCY/qJckgt5hPO61i cF4Jpvt24fSP8svjTOdTLI6iy9UZiz/EwUywgGFxj+VFybM02htKKJ/erLP1oZVDVdnL 2GdXXuWckJ9cfr1AGth+j7Tj3DwHCjXgKzfy3vAc3iqRJH81SKHfSYyRHjtz/mphfqmH diyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FQRbEB7n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si6598524ejo.156.2021.11.05.05.48.37; Fri, 05 Nov 2021 05:49:02 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FQRbEB7n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232369AbhKEMcF (ORCPT + 99 others); Fri, 5 Nov 2021 08:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232105AbhKEMcE (ORCPT ); Fri, 5 Nov 2021 08:32:04 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3509C061714; Fri, 5 Nov 2021 05:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vXc9xImRQ/KDkkHk4g+JcSkINfTuLboOHaBtk+xiDzw=; b=FQRbEB7ny3G8U9AwvltZtZhLEX 0kfmOUeihahFCmo/kDIQZ+QMPx5O/MJcNMxAaCbhywbvyJxJwJ92eFpbcS9fMx3XHEJzqwFyz+vq9 OkT9cv8TPQDgMcGVbn8fAE7QWDvOGqAAFsgJpNs9bPWdAFWRypzygVDJmPrf0wdlHckkAd03qXLGl wczk53eRD3hxyxE7KngGJO4D3Wuw9KgO8UUEtHr7CBz3yxcm+Tn5IGjIBitxgynwhwm/hEdBnNW23 ZDCHTvA3rgXZEQr7ChtMIu2O/CdRsqneWNRZwLgmgJ7YTu4YFCueeKM4iShoRpWBx/txq41hKR2Ig ukOxJ2sA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1miyGL-006XrD-Av; Fri, 05 Nov 2021 12:24:29 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AE0EF3000D5; Fri, 5 Nov 2021 13:24:02 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8BC9420D9F97F; Fri, 5 Nov 2021 13:24:02 +0100 (CET) Date: Fri, 5 Nov 2021 13:24:02 +0100 From: Peter Zijlstra To: Barry Song <21cnbao@gmail.com> Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, fw@strlen.de, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, tglx@linutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, guodong.xu@linaro.org, yangyicong@huawei.com, shenyang39@huawei.com, tangchengchang@huawei.com, Barry Song , Libo Chen , Tim Chen Subject: Re: [RFC PATCH] sched&net: avoid over-pulling tasks due to network interrupts Message-ID: References: <20211105105136.12137-1-21cnbao@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211105105136.12137-1-21cnbao@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 06:51:36PM +0800, Barry Song wrote: > From: Barry Song > > In LPC2021, both Libo Chen and Tim Chen have reported the overpull > of network interrupts[1]. For example, while running one database, > ethernet is located in numa0, numa1 might be almost idle due to > interrupts are pulling tasks to numa0 because of wake_up affine. > I have seen the same problem. One way to solve this problem is > moving to a normal wakeup in network rather than using a sync > wakeup which will be more aggressively pulling tasks in scheduler > core. > > On kunpeng920 with 4numa, ethernet is located at numa0, storage > disk is located at numa2. While using sysbench to connect this > mysql machine, I am seeing numa1 is idle though numa0,2 and 3 > are quite busy. > > I am not saying this patch is exactly the right approach, But I'd > like to use this RFC to connect the people of net and scheduler, > and start the discussion in this wider range. Well the normal way would be to use multi-queue crud and/or receive packet steering to get the interrupt/wakeup back to the cpu that data came from.