Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5404654rwd; Wed, 24 May 2023 00:58:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mqEUgvuWpQOP+6lEWHSg+DmwwNjvpP7vq3GymIw5WijsfxWSN0EyBLWq3p8NYZux4+XUW X-Received: by 2002:a17:90b:388d:b0:24e:1e2e:20ea with SMTP id mu13-20020a17090b388d00b0024e1e2e20eamr14990872pjb.42.1684915086380; Wed, 24 May 2023 00:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684915086; cv=none; d=google.com; s=arc-20160816; b=Cp2WOcPj7tVpMEsfk1sEUKscptCIfL42n5ZrDvBBr1TQERxuTHFXfN5D41zwkYT+iJ M4Us6LdRmIOkunvitXuR0C/vq28qfwmEOwZwZG/Y62zavXO2pqPPHdt/lg2Sycy22kh9 UgZFzqAsUVAklr3xvZXFBqrv4feMXZtuBHPNtjIx9XAyExV9K61B8sc6l2R0F+qec0VO pelWl2evd0uWMRGDmJJGOgCjyJZyf3/gCp7YIAv8lWw3zkDqOz6YATJK0hm+bERKarQP Wk/Qv0K/ZRLp50ibW2ruBVbc4xkaaj0qFxCMw5/k72lOew2+i2DYFniHdouwH7SwfIu4 XCmA== 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=qkbTHa74RqVx5scyvuURKZ3IXXkvsRG06ONrBK7Q0vM=; b=FxN4c8P5jimvJ+2g53bwIGozH+udp4Gmtje/uM+y8hpkh1yjliD8oAEhNATcgjQxYk XkS8nOKUQu36Hd5H9qAjZiLVlbpJzQ80Dxu3TFisM+JYSJHkIgLGrSLk6EqjBcD48y5Z FHPZhGePLkvQpG7KG8xwllOakaZlBO3Q6MNr8JxjxPkiE9dYN+yTOyvpLCWkwyZlQ3tC vUUPRgv2Qt05qpZ7/b5+USO0alHpWaLpw6OM+6IK1hGMUNb5K7XiMW73hqzXLe50YjK+ jblvjE5u3Fk5v4lTW9EW2RwcmBA99X22sdnEN0icaC1VIGSrpL8y8zpZow+vgf9I7piy sBvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SEeenSyO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a17090a8d0e00b00255bc974374si880084pjo.167.2023.05.24.00.57.54; Wed, 24 May 2023 00:58:06 -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=@infradead.org header.s=casper.20170209 header.b=SEeenSyO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239934AbjEXHfV (ORCPT + 99 others); Wed, 24 May 2023 03:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239948AbjEXHfT (ORCPT ); Wed, 24 May 2023 03:35:19 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D1C79E for ; Wed, 24 May 2023 00:35:15 -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=qkbTHa74RqVx5scyvuURKZ3IXXkvsRG06ONrBK7Q0vM=; b=SEeenSyO+zoxIqiysPU5pxE140 yqb6r8HRIiROJ5lXrscO8mPffvWto3MvioiJsWQNKw8clYMCI6df/HodWIi+pgAA/9A3MWG/u/Kg0 s0zBJq8aCcQzV8yiNqudF8vv5v4CL4t5beE7+oisxi29rxJ8kB018XL1l7Xne7RDdP8jNxNXjutZt agebM0jy+xlvBc7+bB87it1Y2/nGdhd2Cc3UuOeOygQto62TiHaga56su+y8Ww4YPnbNted1aIBaT lGKFWS7x7Fc1PsUlgDnefjAUxmWljRsULUBn+47ZY9ugj/gLC1ixkb/H0+a7so3/DFtNj4b25QqhX fScvd7aw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1q1j1O-00AyiB-Jv; Wed, 24 May 2023 07:34:58 +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 (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5D48C300322; Wed, 24 May 2023 09:34:56 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 41EEE212FC822; Wed, 24 May 2023 09:34:56 +0200 (CEST) Date: Wed, 24 May 2023 09:34:56 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: Tejun Heo , jiangshanlai@gmail.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, joshdon@google.com, brho@google.com, briannorris@chromium.org, nhuck@google.com, agk@redhat.com, snitzer@kernel.org, void@manifault.com, gautham.shenoy@amd.com Subject: Re: [PATCHSET v1 wq/for-6.5] workqueue: Improve unbound workqueue execution locality Message-ID: <20230524073456.GO83892@hirez.programming.kicks-ass.net> References: <20230519001709.2563-1-tj@kernel.org> <20230523111818.GH4253@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Tue, May 23, 2023 at 06:12:45PM +0200, Vincent Guittot wrote: > Another possibility to investigate would be that each wakeup of a > worker is mostly unrelated to the previous one and it cares only > waker. so we should use -1 for the prev_cpu Tejun is actually overriding p->wake_cpu in this series to target a specific LLC -- with the explicit purpose to keep the workers near enough. But the problem is that with lots of short tasks we then overload the LLC and are not running long enough for the idle load-balancer to spread things, leading to idle time. And that is specific to this lots of little LLC topologies.