Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp673750rdb; Tue, 23 Jan 2024 11:04:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcrhGJy6O2rWu9M92z5HXWD0eElEdugluLAjMnmL3zs0dROVYnD165SduDEIzv+sMhcYrk X-Received: by 2002:a05:620a:4049:b0:783:94d2:46c with SMTP id i9-20020a05620a404900b0078394d2046cmr7651750qko.54.1706036650706; Tue, 23 Jan 2024 11:04:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706036650; cv=pass; d=google.com; s=arc-20160816; b=D/rqN+DkDsTbM3KLD3n+7ZIY2cJ0Y98xRgKp2otOozg0hu7ZkBe8MGH6iAUYCYhX8q XQa1aUqFif9NvUcsC9mnqOIoTYJg3bHTsXFYDeUT3YfaFzQR0iISKpCzZ+79PxTsN/fp KDPDzcFfRZ42DA2CBCHCv5vfRDdGSykilv4AiVFS5V+na7AwbYiA4YEWLXHWMpT1yGyX Z6F1xEsRhFFXk4lgbjECgufXXBZH2UE5UBeEgSeAKVpljs4BrHGLefP0X42YIpf01gxQ d2xKGR8MC2pH+O7/oZCnghYAqkwk1RsD6JFyILzkS5qGJr2/wiXSgcVMbkuIfv1l3ct2 lxKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=VTYRquoHREccZxR1itO9s8RbRgXaZi6R4whUcjVcHgk=; fh=BCP/I0sYcoR+IyzjY8iv/w6k0pmkPMgslWwWSKZ91B4=; b=UQtcDaGB45yU+1znBYkbrXa0ib5FdQg9IvPtUn/E1mDfvitsk6jRa4MsrjCSwYatlK TeskkYrIsbAu05rk2GYv7QC7cg8fDKwBZBe1iM0hKnmxBYQ6HBXcYx+I1V4E1uSFbl1e gKcHLavmBijt7KicxaSL2kj3l1m4XIIQxISUWDbofhLAFTRgst/KkXnaZ36camXpSiyc kojbtnnPzJ6fdFY9ytItUOtxuGfp9iwK9K9Z7ystv6N1/2vMlP5XRzoZOg/Cdn0MYe5P X6RCuJ/0oLYSC5nPZeF8P/KF1hnCPgqn7fqG8W8Gxdt34mFl+mAStTTR3n6cZvbbDvoq EhaQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GRKm9Ker; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v3-20020a05620a0f0300b0078322b9b513si9105288qkl.746.2024.01.23.11.04.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 11:04:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GRKm9Ker; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A7BE1C28F04 for ; Tue, 23 Jan 2024 19:03:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3888486ACC; Tue, 23 Jan 2024 18:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GRKm9Ker" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A70186AC2 for ; Tue, 23 Jan 2024 18:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706036217; cv=none; b=AA9X9iYtPENFaDJbEL0r1X5ldJbx0TucqXrB8UvdZrYFil3NgVsVJCenmX92DKy7HZKV2BxEMxrzXZS9qCgpUUVQOBsGaQjfEpdNGL8aUPl9b5wnwY2dB0sKZ8PQJA09CdrjaOJvHXUYpKk2wTz35DSLdGYkd8kbYBv1LqqL8pA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706036217; c=relaxed/simple; bh=QLm5Vz8qFoYEruw2+K1bab8WvC1tLQXi6xVjT0Rm/5o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K84i0C+l9EXclzl42/gTORzHS6ofI1nmhDtEa31HfweSsPJGG3zeP1I0rUHpe+Leggf7YKbYd7uqbXYy2HClNdRNTIYytEmWB+V89bi9k3LlFYSjHJ/WcRN0e6abF6bL5G8QB+Nx2JXA2egIaE2/S5N6kQ8ueYoLdMuz7uqA6W0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GRKm9Ker; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1d72f71f222so16595125ad.1 for ; Tue, 23 Jan 2024 10:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706036215; x=1706641015; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=VTYRquoHREccZxR1itO9s8RbRgXaZi6R4whUcjVcHgk=; b=GRKm9KerLKiU4QSfDr+rjM/UPYeJ+RT6FbSn/z2oF0PJtML5i1NA/oJFAxzO9LVkfq EDW8/viC7drrvMqsXVrGR2iKmgjdsNFJEAYqIMZsl//tPE4pvswToCT4NCPyzichof5/ R6TwZsDFArSH1H8d4N2QDCzqMnZ6pytrecA68rv61ELkyCDB2SXFG70eMUvtsZj+NwyF udXiIDliUxafYU1AYQbj+Q/H6kEDEJuG6elxKDobgYje7JvM4teqv2kt2WK7OuN75TrH X9IZAgfziP8/N/dWjAs4Danu5a/v1T9KBENg0tFB8+eO4/nLkOG20DbbKDxEtUw2U5ou O8SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706036215; x=1706641015; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VTYRquoHREccZxR1itO9s8RbRgXaZi6R4whUcjVcHgk=; b=gk9kF/aSm9xpANubK5tjAzso6KlWoFnkIx246Ra7DVDls26/AFQe7ElxkF1vc8bnCT Rwed8iELr+2zJlvvTtAA34I+Ly79UvbMY0MelxKprEWTykCYeyRrvBW2e0fzLvCR8FD1 3RZZmraGLH57vyaEqfUqfOsks6NSCj1/jOMaKJG1g9Q/MRB+YNuHF6tl+x/jlNu3EgFR ByYs/WjorXTqRIQlJnmzNrHo+6Bvmo4uF8ZLGgnuo1nqYfzQZlSpicaB55a1acP+9r0G gAw0tPZQWrp3a80YAgYZel7xjC67nzwD8zvC9zScXNWmi7ZIFtlsGAuHwAGkq8oj4jcF kspw== X-Gm-Message-State: AOJu0YwMmSugmk81dWt+QmyVdA6ghHcGgOgAewO2XkUt8uhKo+vDPEPb b5ngAdZD3SAdXeINHVa3PSMc7CXY9DNsKRNmFMvs6mjMuD+BO/M7 X-Received: by 2002:a17:902:e543:b0:1d4:2a95:ec2a with SMTP id n3-20020a170902e54300b001d42a95ec2amr4497836plf.0.1706036215262; Tue, 23 Jan 2024 10:56:55 -0800 (PST) Received: from localhost (dhcp-141-239-144-21.hawaiiantel.net. [141.239.144.21]) by smtp.gmail.com with ESMTPSA id s21-20020a17090330d500b001d6fbaaeb56sm7017528plc.145.2024.01.23.10.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 10:56:54 -0800 (PST) Sender: Tejun Heo Date: Tue, 23 Jan 2024 08:56:53 -1000 From: Tejun Heo To: Marcelo Tosatti Cc: Frederic Weisbecker , Joe Mario , Juri Lelli , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mark power efficient workqueue as unbounded if nohz_full enabled Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hello, Marcelo. On Mon, Jan 22, 2024 at 11:22:10AM -0300, Marcelo Tosatti wrote: > About the performance difference (of running locally VS running > remotely), can you list a few performance sensitive work queues > (where per-CPU execution makes a significant difference). Unfortunately, I have no idea. It goes way back and I'm not sure anyone actually tested the difference in a long time. We'd have to dig through history to gather some context, set up a benchmark which exercises the path heavily and see whether the difference is still there. > Because i suppose it would be safe (from a performance regression > perspective) to move all delayed works to housekeeping CPUs. Yeah, replacing power_efficient with unbound should be safe. > And also, being more extreme, why not an option to mark all workqueues > as unbounded (or perhaps userspace control of bounding, even for > workqueues marked as "per-CPU"). There are correctness issues with per-cpu workqueues - e.g. accessing local atomic counters, cpu states and what not. Also, many per-cpu users already know that the cpu is hot as they're queueing on the local CPU. I'm not against moving more users towards unbound workqueues but that'd have be done case by case unfortunately. Thanks. -- tejun