Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp557638rdb; Mon, 29 Jan 2024 10:17:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY9Ahe+pVPUcHOqFNQXEsICSi9u+YH6J9a1CKgMqlwqLQeUoNaDKMUIsvIRnaKbUoiMDLT X-Received: by 2002:a05:6a20:8720:b0:19c:888a:56e4 with SMTP id e32-20020a056a20872000b0019c888a56e4mr4723548pzf.49.1706552248029; Mon, 29 Jan 2024 10:17:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706552248; cv=pass; d=google.com; s=arc-20160816; b=qN88o+xMo4KYY5HQod78OlwS+tmgvqawZZZvKI//Ym+728D0zGnANotovW4+l72bAy vbXP7K+vAE7OYhY5AUauHkRqfoYqZX8zsYFQQ4Jf6hwh4XjfYn9d+NzG9SUgkNG4P8PX g178rxJZcKqLtWokpHhlIHCmW33xcA93kVeS092EeOxaMz4DqcErpA4zm/xACqQQo50d ySFjQLD+3sxAehFMKbVKs6m6gOd9dbl6woI7p556EKO/Y2y2RW+U+/HsZVSoaNVPG2Pq zO4ZKxsXRmvdLWAidd1fO6BdRuu2Kmc20mnYeDAz1aBqPavDSxdhKqH6K93baBRJ9wcW /R7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=kqyU9DXwN8j46E2KrXUrO2lXrMIFjFZ0DrupptOiWZw=; fh=TXYzuIld3ZUQeXPpec9E/mX9DSWP5fA80EZAZ3xe2Wo=; b=j18zfOj+ett1d6EfWNrReYELM6CtaGOBxqmk2Fv84tTQkahAUiQbc9ZBY1HFOlNNAq BMbH7ODxHm4HwZfOMJA+jnq2aSLSocTwm13IJxfYPGYg2Pwq1SHD4u1uC+e29d1ELzUz N0M/YXBuNJm5VfgzBPmJkDdLREiEYK28SAnUJsobsQy/jAdJmz9drdYKsa1DeZXHyoJ7 7YsPjH5UJJ3qS/jjHgT2ug39yai2Eq6czLyT0kZByeYFRTWjuviKkd6LB84Jhs8lkXds FURKtRhpV73Ivq3fYyL4YOnR+4wSTYW9l/k4LrVKW7DbT1u50uwIZaDGQmmSKsMrcRra yeYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZZB6xfZa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43301-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y22-20020a056a00181600b006dde118e70bsi6033446pfa.317.2024.01.29.10.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 10:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43301-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZZB6xfZa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43301-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43301-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EF6BB287D43 for ; Mon, 29 Jan 2024 18:16:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D086A6F09C; Mon, 29 Jan 2024 18:16:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZZB6xfZa" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 8F9C03F9FC for ; Mon, 29 Jan 2024 18:16:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706552183; cv=none; b=nCorAI69gIzxjVUwwGgq/40nshksSQnEaXpNQNId5WELR/UpBCmBkrBCe/u+bnx6AN5tMhYUeyzq8CuODn8G+wLDokqcQRaoDE991u57MKoe/IkP0uf7NAKBLKYcoPi0nepniB823abZYvLQgXOtaL8IX2J7B95nB1Nn9AVwxEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706552183; c=relaxed/simple; bh=4TWZ4WsxRlDcM1yW2EecnzCe9JTpQcCO+ieUAB1Ukg4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ckUodnHPfu6ujdf4blkpS55ZbPTTCk7l5ERoSJEQJ83OsZqLi7ruwGt9ymFYVm+H84o81gIxSSjHvAZ6B1yQYRt5tLd5bctEG50fY6QHhTuFuFWrtAukjvHNxEZ49q1/d5OFBCq4fLEJXVs7dfUjMrt31zeULIXjwcVEDExxDBQ= 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=ZZB6xfZa; arc=none smtp.client-ip=209.85.214.175 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-f175.google.com with SMTP id d9443c01a7336-1d51ba18e1bso29182625ad.0 for ; Mon, 29 Jan 2024 10:16:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706552181; x=1707156981; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=kqyU9DXwN8j46E2KrXUrO2lXrMIFjFZ0DrupptOiWZw=; b=ZZB6xfZaHXtJ8+zb8TWtobIRy1vqLiQYj7/FYF5ey7rzAQg2eu8DZTP8Qi7BBBSQ7f ioAr4SNVjBrC5BMp5rB1xllQh3klvn3l7u1Y2pKYmyAOWeerGopQ4PfQoZdAW+a5PFSR 3gr8hVf1owknpLtUxzsmfl2OhzNr3Izij1W465W1QAnKGbGTlotILRePp6wnDpkLwMCS +/Ffgrhf5YC57WN2Uyw3YgAYmrCh/Eb/CRw8a4eXcDManlW8jfediHfnFhTSr6ANzXYm hWVC+DYIq9w7ZtWJIWYMIYDG59CSj+ThI7rGAjstYroZmGRx8SFpO3cDfBNjKOp9R0mF 7vUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706552181; x=1707156981; h=in-reply-to:content-transfer-encoding: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=kqyU9DXwN8j46E2KrXUrO2lXrMIFjFZ0DrupptOiWZw=; b=gHo0eL2ZaiHCn/0MRujooLKRu97Zo79LM2uxS92q2BxYXxz8ksczJqOSNYhJ4jqGJj RXeQR6LW/SzBjZLIbwQO6eGiyh8vDI2vFHwmNxlJ5G3L2b3KsI3SrgV7OseTCKh/deQ2 Whfp6eht2NdLaUzmJMZ4opaS/1WDRSPCwSqXNr1HAEKysbm2WPnK2REGyDh62zLpSkds Ha/kWzo5brx68qVt2IEl22+F/jDt4kTKtcVUx7SBCqn8g2SRZL5JcD1BThpMkB1+B3vP JCVDYBvy1S78l72/OUjrFaOwJ8FbeN03+RgBSun6dfgFiIftSEeFnvGkVnFFV5xWADc/ IT5A== X-Gm-Message-State: AOJu0Yw2fU0ZL7ycy265Vb7TUWfdVMl3YXtVoblnh+l/9imyYeYBM8lj pWmEGFSY+vjd9XRIi4XT6cW/6Ouu9LddWYhzWdgb/aVfc5AEQASYa9kPe/es X-Received: by 2002:a17:902:7482:b0:1d8:ab46:c18 with SMTP id h2-20020a170902748200b001d8ab460c18mr6045754pll.45.1706552180698; Mon, 29 Jan 2024 10:16:20 -0800 (PST) Received: from localhost (dhcp-141-239-144-21.hawaiiantel.net. [141.239.144.21]) by smtp.gmail.com with ESMTPSA id la13-20020a170902fa0d00b001d8e9750b0csm1747228plb.52.2024.01.29.10.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 10:16:20 -0800 (PST) Sender: Tejun Heo Date: Mon, 29 Jan 2024 08:16:19 -1000 From: Tejun Heo To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Naohiro.Aota@wdc.com, kernel-team@meta.com Subject: Re: [PATCHSET v3 wq/for-6.9] workqueue: Implement system-wide max_active for unbound workqueues Message-ID: References: <20240125170628.2017784-1-tj@kernel.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Jan 30, 2024 at 12:07:33AM +0800, Lai Jiangshan wrote: > Hello, Tejun > > On Fri, Jan 26, 2024 at 1:06 AM Tejun Heo wrote: > > > This patchset includes the following patches: > > > > 0001-workqueue-Move-pwq-max_active-to-wq-max_active.patch > > 0002-workqueue-Factor-out-pwq_is_empty.patch > > 0003-workqueue-Replace-pwq_activate_inactive_work-with-__.patch > > 0004-workqueue-Move-nr_active-handling-into-helpers.patch > > 0005-workqueue-Make-wq_adjust_max_active-round-robin-pwqs.patch > > 0006-workqueue-RCU-protect-wq-dfl_pwq-and-implement-acces.patch > > 0007-workqueue-Move-pwq_dec_nr_in_flight-to-the-end-of-wo.patch > > 0008-workqueue-Introduce-struct-wq_node_nr_active.patch > > 0009-workqueue-Implement-system-wide-nr_active-enforcemen.patch > > 0010-tools-workqueue-wq_dump.py-Add-node_nr-max_active-du.patch > > > > I just left a small piece of comments on patch 8 and patch 9. > After they are resolved, for patch 1-9: > > Reviewed-by: Lai Jiangshan Updated 8 and 9 and applied the series to wq/for-6.9. If there are further issues, let's address with followup patches. Thanks a lot for all the reviews. Hopefully, this should address the max_active issue for the long term. -- tejun