Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2150158pxb; Mon, 11 Jan 2021 02:10:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYtS/bj0PVwjoyEJfNaKqTs9IlwMt2CrsJOFL+iF7ygcoCqlo0TfsARIV9aeo257veUssx X-Received: by 2002:a17:906:447:: with SMTP id e7mr10163331eja.172.1610359820936; Mon, 11 Jan 2021 02:10:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610359820; cv=none; d=google.com; s=arc-20160816; b=UDMZWFi540mncm5LaIZL+FpM7g1I9gXGKZ2daA3T/SlxDpcymI9rxGYBV3uYaC5a5r GZMhmO1SXs/Oo7gR2RO/76OfbTcCNWGHEWZ8aACx2vywUiUmrDLgqBaEXcyjXf0bzxhs ehqwGEJIvqde06XgR5hr9uF5DTJQcpztUUtB2nEubpzneetyz8oq0e2spRlKwNbRSIyq bom8foHBY2op7WZr9ZV3FrvuG8lVoHpD+Re+QWlu+iGuIOjnrhQxTBjPyHZLEVg47eq/ qJey1NUrdxzCS5v0Xdd5TOCfVntJAIcaE9cdsJ3hNckHNJvjSf6G92IbU6XK+xFJ1+/z cEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=DMcTklkFECBtCz6WzvXmoCZ2fnunKElUnnX4YPk2mtc=; b=L3Q2pRqe2+8KkQi1xnX37evNI7Xx7+ggNu8brI5UcJW0PaZ1wWEwOopSXXHPRL5SVn Jn1/KSqvuhc8FPDrDRbgaMn2wSs4rlnxQGyPQMOPc2CZSxTUtG8v3TZn7YXBjHV+zIAM rsWBvzqdXVG4X6ti52Ad8Z+dD1jxABiGwRCo3SdUXIaAA16H5MGjpmAJLu7wzT2LDu1g TD5BBVlfioukeBI2e3gwQOyJj3BZ1aA71Fk7ItHChabFVnZ6n9cAMs4eSD287jcjbHjV nKNqXaA+nuc5O1Nati8/x7vn14qhWG1fAyQ+hTJkB7fqa5dSJLZNcLTWmI9ekyo9sMcy fCEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3CXuLpCZ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=eGTpwMNX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si6229270ejq.292.2021.01.11.02.09.56; Mon, 11 Jan 2021 02:10:20 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=3CXuLpCZ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=eGTpwMNX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728900AbhAKKIR (ORCPT + 99 others); Mon, 11 Jan 2021 05:08:17 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:37620 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728610AbhAKKIQ (ORCPT ); Mon, 11 Jan 2021 05:08:16 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1610359654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DMcTklkFECBtCz6WzvXmoCZ2fnunKElUnnX4YPk2mtc=; b=3CXuLpCZNk4OmA9XyWsGjvVk79vYLdDpsutKx3BaMSC2hFnDltlmB5gZNYfbJeDAh2tyYy Wvlo47NtoR5fZofc3oXq9j+reFo7nJfQ07M3FcXVO1cgGvSPu+Gm3Yduc+QeoZIz9q4d+W GbpwycXhnL4TOUi2mV6CDdcilAviMbb985DhVm7PszVbyWOB8BAO1IfkrICk8tkfizc7zv 194bQlUmVZoHlVxeUvqEw0bg5HbftMxpQdpY16ECrIq5yvxE/vfrOzNsttbJp/2VQ4wpOS gtGEQas03NvW7UM9HcKf+OFDDrTIHPaD5xsAxxEtrB1cjGBHZBrfe42scOKAVw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1610359654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DMcTklkFECBtCz6WzvXmoCZ2fnunKElUnnX4YPk2mtc=; b=eGTpwMNXCENdjqkYo2dEnlhw8gaK1t51cFwtPnj3DUHpeTTMH4Ft0aHjmAq1X4hyRLEhr1 s2RiUNViYJVgUfCg== To: Peter Zijlstra , Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Valentin Schneider , Qian Cai , Vincent Donnefort , Dexuan Cui , Lai Jiangshan , Paul McKenney , Vincent Guittot , Steven Rostedt Subject: Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively In-Reply-To: References: <20201226025117.2770-1-jiangshanlai@gmail.com> Date: Mon, 11 Jan 2021 11:07:34 +0100 Message-ID: <87o8hv7pnd.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 08 2021 at 12:46, Peter Zijlstra wrote: > On Sat, Dec 26, 2020 at 10:51:08AM +0800, Lai Jiangshan wrote: >> From: Lai Jiangshan >> >> 06249738a41a ("workqueue: Manually break affinity on hotplug") >> said that scheduler will not force break affinity for us. > > So I've been looking at this the past day or so, and the more I look, > the more I think commit: > > 1cf12e08bc4d ("sched/hotplug: Consolidate task migration on CPU unplug") > > is a real problem and we need to revert it (at least for now). > > Let me attempt a brain dump: > > - the assumption that per-cpu kernel threads are 'well behaved' on > hot-plug has, I think, been proven incorrect, it's far worse than > just bounded workqueue. Therefore, it makes sense to provide the old > semantics. I disagree. Per-cpu kernel threads which are magically stopped during hotplug and then migrated to a random other CPU are just wrong. We really need to fix that and not proliferate the sloppy and ill defined behaviour. Thanks, tglx