Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp478989rwd; Mon, 12 Jun 2023 17:13:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pFiDHF9XnuctgDXLngvPC07GOk5X8JbTG+vTlWnBfll7IJKOJBKZhtnbXH1LwNhBTFE6o X-Received: by 2002:a17:907:3e12:b0:96b:1c38:2036 with SMTP id hp18-20020a1709073e1200b0096b1c382036mr11658623ejc.37.1686615209533; Mon, 12 Jun 2023 17:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686615209; cv=none; d=google.com; s=arc-20160816; b=VP1a0NrzvhDiJP5p7hUL81/nOLmkgVrX9Wkf2uXKNHyOSMCnPkD8D6L566cvk3ns4X RSF72T7rp8D31giLPUDahCShv/zkn65zm4aScK2voSrntO/3KcolIReoaiFqvgzzVh1e VbGDQZgGM/aVjvW0yrj3Wjm97OJM7yODTCmRBP2YT4mKo1+DFDHwpJh7FzkPR1TajDIJ 8urHEYz4weq5iq12ZYfCQ9u5v85vOno6tf7+K9Ek6Tb7Qfzh4k/qt8Zrm/VoyRf/o5MW VI1v3YC1DMevABr4eXpyfYXJV7h04zIGriHQ561e0HW/wVpzZ4r/3qSuQPReUxhoO0GW VwXA== 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=23+qpk+O/Ldq4FgWGRIJTzgY9OOm945xbR0BCjqFgYM=; b=kwYgqU0G1KQdTy1wHDqhGEbO2XrTUQfHML6dsFWQZdbcmogJUFskn9C+72tA8mfp2M k5IWPvXjiRXcW7f7xrRNXXkL+fo4rvlD8jPYcosA5uTZtgaHiyVamqy9dHUnrcNczD8u Sh9GUEgh1mcNZ3ZyG6vPZdsn4aMl/2upCgOI3jECLJm+tkfcZqoirJJDunnxo+qxLOsT UCwlRi0skVC3ViA6fybByqxbmySwVrday1gEt/n8ymyuV56RFucob9jnIv6NjMBdPP/r ZqniwvZvtCAPC6MUbSfsML6fMe6sbY3xh2g+qHJgre7GNrc/S22OMNcf5cU01ejT6jo0 vEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KGb26G4L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a1709064ac400b0094f5f27c753si6324454ejt.690.2023.06.12.17.12.56; Mon, 12 Jun 2023 17:13:29 -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=@chromium.org header.s=google header.b=KGb26G4L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233548AbjFLX4M (ORCPT + 99 others); Mon, 12 Jun 2023 19:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjFLX4K (ORCPT ); Mon, 12 Jun 2023 19:56:10 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD127171E for ; Mon, 12 Jun 2023 16:56:09 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-66577752f05so1420130b3a.0 for ; Mon, 12 Jun 2023 16:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686614169; x=1689206169; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=23+qpk+O/Ldq4FgWGRIJTzgY9OOm945xbR0BCjqFgYM=; b=KGb26G4Le3cYL0pqDi4N2/+KwHaLOJ+wC+UDTsP18AxrkhWiI7mZnGaaocmzPi9V9P aPR0mTTCF7wnrqXgHFjh78nzGYIgX64nn2NBrQd+6z3oziTbwVAiKgKKfZCjDMGC3SYZ KJw7FInjFn1yGPu99l5nu5SXHU6QQMrtYJkbE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686614169; x=1689206169; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=23+qpk+O/Ldq4FgWGRIJTzgY9OOm945xbR0BCjqFgYM=; b=UWHDJHq/Zu016JuW2F56Jpsj1ayHO1nGsRGltioVyo48KCB1e656dTmjjhjUP2SCmX Jn2RMtPNL1hZLH5kHm044UmCfPNk2eYUtBOpM+A69n8bqPHFr0xQeH8Tnzk06aaJuZIn VwYj0cVfBxATqfAdMhjBtohpc40rjIP6FkwO3BMTKqt7mspMpxLF18eAgCN5iT/bGAkG mLvQst3ySCUvbtELQAcgFtXxceiQuz7A6JXHDbKD99TgVMzAz4dcbmy5F6ep2GWlPCmZ 8EN7hnRlhCPYcVnezIVsX93X+BHiTna5J8gobtNBTu34EDgzY16O1tubIt42GiCp2GqF 4OPw== X-Gm-Message-State: AC+VfDzrqkewBp5XDKPcai+BRg425CMl0ctRJsdIkqPFqvGXRGzzZ8Mv d/puKX72n0d8CdGSmEuF3JwTHA== X-Received: by 2002:a17:90a:3f16:b0:259:466:940f with SMTP id l22-20020a17090a3f1600b002590466940fmr8502011pjc.22.1686614169232; Mon, 12 Jun 2023 16:56:09 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:5666:8195:ab60:72b3]) by smtp.gmail.com with ESMTPSA id h2-20020a170902704200b001aaffe15f39sm8776925plt.30.2023.06.12.16.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 16:56:08 -0700 (PDT) Date: Mon, 12 Jun 2023 16:56:06 -0700 From: Brian Norris To: Tejun Heo Cc: jiangshanlai@gmail.com, torvalds@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, joshdon@google.com, brho@google.com, nhuck@google.com, agk@redhat.com, snitzer@kernel.org, void@manifault.com, treapking@chromium.org Subject: Re: [PATCHSET v1 wq/for-6.5] workqueue: Improve unbound workqueue execution locality Message-ID: References: <20230519001709.2563-1-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519001709.2563-1-tj@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Hi, On Thu, May 18, 2023 at 02:16:45PM -1000, Tejun Heo wrote: > In terms of patches, 0021-0024 are probably the interesting ones. > > Brian Norris, Nathan Huckleberry and others experiencing wq perf problems > ------------------------------------------------------------------------- > > Can you please test this patchset and see whether the performance problems > are resolved? After the patchset, unbound workqueues default to > soft-affining on cache boundaries, which should hopefully resolve the issues > that you guys have been seeing on recent kernels on heterogeneous CPUs. > > If you want to try different settings, please read: > > https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git/tree/Documentation/core-api/workqueue.rst?h=affinity-scopes-v1&id=e8f3505e69a526cc5fe40a4da5d443b7f9231016#n350 Thanks for the CC; my colleague tried out your patches (ported to 5.15 with some minor difficulty), and aside from some crashes (already noted by others, although we didn't pull the proposed v2 fixes), he didn't notice a significant change in performance on our particular test system and WiFi-throughput workload. I don't think we expected a lot though, per the discussion at: https://lore.kernel.org/all/ZFvpJb9Dh0FCkLQA@google.com/ Brian