Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp259527pxj; Wed, 16 Jun 2021 01:32:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaVXDH1SKAQ7IIbiiWTxqhsLY0tczrNx0To5G/j8Ywn0zR51jR2Qe6jfAmblVHCo36IRtC X-Received: by 2002:aa7:d14d:: with SMTP id r13mr2814760edo.212.1623832334063; Wed, 16 Jun 2021 01:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623832334; cv=none; d=google.com; s=arc-20160816; b=qBm/oXQt4PrRRNyLXkFrIpRZR1EnrcauR2zPUrbzWSjxJi+XLKZyL79kLZuBndnVF6 R3RI5qTXPtIcE4joNGxPcPw6B5vbNBKz8v2lJ7KARkKJmJesEQJv/oBTU7mzoVjGkc/f UZkX9FMhEv4l656P5yL6p4AKLgwKk3To5d9LP1p/fgN8UGISD0euy5RTOoa7aX3KXDiJ WlDCseKjKkKHuwy1pALY6Gbe2lJp1i1qZO3ppHC5XiZANcEAkW8AWcAu6Kz+00Ydabjn gtsnVs3SlGJjQ80jly5cp1tVUwknz+77rT4NdqcEqGXoJKElag/29m7wn25QuX/+frwS +/Tw== 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=v8wzYunwBieuIQynzoH9RoOaxPah69I7Fsd9nOFE6KE=; b=ub46xVrdnVPCP5PgbGdKsi8ugPBvonoq+QHCt3ENJdqJI12VncxG+tDZAndUxUI2Hw V/71uFkslhTQQUAPgASA16YA8MvcVdwbK60DjcDef2juAdkknaaEHZTgZV/9xCxS4ZBi CYYDMDK+apBxt0reWlTNSqu5A2ZHXBeCLSdlm0ogqkhgJcRuuk848E863sfZ9D6bRiS5 ffyxguQSJjBny/C9OCBjZ/pqJ2qwEVhYOngMLlKGDLbNhSvYr7KZxN/1DHlITD8mmPMM FB+UoDN6K3s2wnpTT82eY+if1ypCBywxnOYMwvB4Hx0TQ40eojDcdrSmJ9BLealkaoLy KqEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WgtXclb6; 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 bh4si1810896ejb.680.2021.06.16.01.31.51; Wed, 16 Jun 2021 01:32:14 -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=WgtXclb6; 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 S232193AbhFPIc2 (ORCPT + 99 others); Wed, 16 Jun 2021 04:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232185AbhFPIc1 (ORCPT ); Wed, 16 Jun 2021 04:32:27 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38780C061574 for ; Wed, 16 Jun 2021 01:30:22 -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=v8wzYunwBieuIQynzoH9RoOaxPah69I7Fsd9nOFE6KE=; b=WgtXclb6hQxKiYod4urCr83+rc rCx25hC+FLWdoRx0xB3prlUGCE3b3H5cmR1pWMLJzeaT4twDamYzbrh5wt4U5VzqaW5nKp/kB86WP 1dIGnPPMk3SZKwN3kf7GlHSXy0chKdPkb0oAas+fB9y9iXR5yDsATdW6DE3+okRehQyvRMXSYW5MM sT4W/F11ZkbvT4oQZDCUa52eilXl3m2Q/mdiNUEJ/35YIhI/am7mW2bHkMXQBo8MBPm4LksfvMJQA VJyIF+MhPjkQqjAotW3TwxQDAJxreMBR22df3H+vW/IwMrVePl4R/m9aIt97iRNbxmQXxtIUVe184 53cnZNOw==; 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 1ltQvW-007nz1-HQ; Wed, 16 Jun 2021 08:29:40 +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 B48BA300252; Wed, 16 Jun 2021 10:29:33 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7098420277F84; Wed, 16 Jun 2021 10:29:33 +0200 (CEST) Date: Wed, 16 Jun 2021 10:29:33 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: Yafang Shao , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Mel Gorman , Daniel Bristot de Oliveira , LKML , Valentin Schneider , Thomas Gleixner Subject: Re: [PATCH] sched, fair: try to prevent migration thread from preempting non-cfs task Message-ID: References: <20210615121551.31138-1-laoar.shao@gmail.com> <20210615203534.GA4272@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 09:29:55AM +0200, Vincent Guittot wrote: > On Wed, 16 Jun 2021 at 09:15, Peter Zijlstra wrote: > > The suggestion was adding a cfs_migration thread, specifically for > > active balance (and maybe numa). Just not sure the cost of carrying yet > > another per-cpu kernel thread is worth the benefit. > > Also, this will not completely remove the problem but only further > reduce the race window because the rq is locked and the irq disable in > active_load_balance_cpu_stop(). It removes the problem of active migration interfering with this worklaod, because the FIFO1 task will never run until that is done (assuming he manages to not have his workload at FIFO1).