Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp42813rdb; Tue, 16 Jan 2024 14:24:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtTJn5VhU5gxaRVL0YJaHuOBuv4jqljYh3RUrLSFtoWw6LdSlJMBxJUM2iq4jZ25czqRQW X-Received: by 2002:a05:6e02:1bce:b0:361:72f1:b541 with SMTP id x14-20020a056e021bce00b0036172f1b541mr2792843ilv.50.1705443890672; Tue, 16 Jan 2024 14:24:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705443890; cv=pass; d=google.com; s=arc-20160816; b=DMq9OxIo7Ci/q07yESw+GhHQqeAUkg8XWnxmS9ZWclvnburbJb6+uSc5qBxFmIFvDl pPyFTVSoVP6A6kssDz15b5Qc27HCBkTVjwBDEjh281J6nh+AY3MCK0Z7KMIsOarnt1wX 6q5aeuoREcKZdZs06I7DK5vYUGBZlO0/vNgV/18DAT4TDjZ31JUHlKsmYPRnAaebPlqb r/l+6pLZ+LhBUK1i+Fb2KeRX1PNr8wfPQ50XPf300Om4lYEmkjLW4gCliSTqQj6UoOEG 3ux/JXPdJl+RR3ZQ4mIqhRcLGH8TxwfxUnyhe0wR9tDvuZUc7Iyo2QdGVe5NMPezzRXI sAOQ== 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=+8/1MkLrY46twcleZVXWMzSMWv+lZYgmR+jwLYasltk=; fh=chu+PLoz6T5LU7EbVCSWfhWIFrpGH2amg0yo1UDPaGs=; b=GfErHyesh9Dw234M3DzeTWqY8qWBr4tIyRaInp5AYelfzbPC13ZW/Hxe5dqWbZYFIw lTBq5Dg+xeilCR8N0IlBnh69zDOt+nM+xjQL1xMwrA4lCZz+W4wjwqHsuCdYMeh1m9i9 g/rHywWzinHelsisDpzTUWZeIUi6ev2U9QpCSCi4avh5YnWKPljmLPjzf46n7o7mhRYe lMYkJQ5HqL6fmKmOU3TOrpU+vlQD3MYV2kaunZD51ufCfInp5TijFmm970O96lslY4O9 LmcHkATrDozIh+a5Y9oBR4ipkivM3xCT59j3vwqx7E5YecQKqNIOPozGufVMkjOZB04i E/ow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UVdXIDPt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28280-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28280-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 bz22-20020a056a02061600b005cdf89f64ffsi12981424pgb.482.2024.01.16.14.24.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:24:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28280-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=UVdXIDPt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28280-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28280-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 0A49928E36C for ; Tue, 16 Jan 2024 22:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2182428E3A; Tue, 16 Jan 2024 21:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UVdXIDPt" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 D885E1F939 for ; Tue, 16 Jan 2024 21:04:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705439097; cv=none; b=ZsOkCeugQ1/iP6jC9Tauz3OedVlOUdEbW4WPGtJFhsapdCmZuyIX7XO5SeQ8g2sw6LRG8r53+hVZqbpkxZJCTKIw8tCDYW09kuenDK/89576lL65VVixC1LjiwXFSmc+CVJ7wJEbX0ZU1ptUcYlqbOX7ujQ4MApNy8L1OS7eRm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705439097; c=relaxed/simple; bh=bN0R2ktw3y3yOUxOO+GkQNyVTZGVa6wVUz74DbWPQwI=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:Sender: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RAldKU/laqW2R8zEberQyLzEBjNTiQd+DBImcfYxcnT+d5d10f6rvvUpPiR6MGoZPmG8vol10X0XX0wNlIJaOSrwbxKRebYH1/dUPGFjoyTw7s5y2GUrj1oAhLd59Dp8luvBOeJge2u2PaKQ242actzP4fGvhKvCia5C9T3SeZ4= 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=UVdXIDPt; arc=none smtp.client-ip=209.85.214.182 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-f182.google.com with SMTP id d9443c01a7336-1d5f56912daso4832275ad.2 for ; Tue, 16 Jan 2024 13:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705439095; x=1706043895; 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=+8/1MkLrY46twcleZVXWMzSMWv+lZYgmR+jwLYasltk=; b=UVdXIDPt178d09NLHJzKu4xn8Xb3ssdqwj8Sq5JDVf2wtJpiu4gMmZpjDgsIE36iI+ dH69xSnW9VJ2NepF5z5hwh26+Z3N34a1ZrTX+HfGRzrD+DBH4/K/TIZvR4V2zjkChxEY kIeuEKPHWLFEK9Z+TJ0GE10ET897bC3IJoER9dP3tE/tBspxMzI+pAiy4WOxAKXPgQUV hmtAT2BWOYey4OqLnToRYNqC/bNhujfAlV3UEkazyt6UpBgwxVUTjfulRNdgcFE8EOoE Yu5Pt2oU4PmPauQl7jizgfKLrJeaoA6/p3D9bCvIdfKIUsOGOWUOeQZy3hiVbTEQbFEe roUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705439095; x=1706043895; 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=+8/1MkLrY46twcleZVXWMzSMWv+lZYgmR+jwLYasltk=; b=c9SlrrcLDISV/tE1SlaDLVT5+vou3ilL007VlyDLCoJy9tySKnJOZAntsvGoSI3rAL sCSw30mAcjDKXXXsBcRMGQD6l9GgIBxKC2VenSNIZD5aja/ZEMRyehwjGpmO46zPH6BX zTPSwM1U+mHSBWd51szLsqTdzqZQLkO3NsXbusy6CnsLFT2738OvT66ZLDhSwslFhJEY MMPdRaSp93tKiVnExLBG+L+2WOWxojnem/1Vd+/k3zhx9CNQfz8Oo7S5/b66FUzjP9xV 9mZ6dm7tGqNFJjAg/kw/lQNfe4glorFF5mEntg4VX/hH9kDKCNrX7rxdQdfXpUEgmGin e/Yg== X-Gm-Message-State: AOJu0Yws9yTheQZJMcVgXugVlnivCuq4Bkne5RQoykjdYsfyH+z0qSUP nQX6Vk7WTvnKm/bCiY5MNg8IcnPI8Mg= X-Received: by 2002:a17:903:1450:b0:1d0:6ffe:a1a with SMTP id lq16-20020a170903145000b001d06ffe0a1amr9959703plb.120.1705439095044; Tue, 16 Jan 2024 13:04:55 -0800 (PST) Received: from localhost (dhcp-72-235-13-140.hawaiiantel.net. [72.235.13.140]) by smtp.gmail.com with ESMTPSA id ja20-20020a170902efd400b001d5e7348692sm1676062plb.277.2024.01.16.13.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 13:04:54 -0800 (PST) Sender: Tejun Heo Date: Tue, 16 Jan 2024 11:04:53 -1000 From: Tejun Heo To: Naohiro Aota Cc: "jiangshanlai@gmail.com" , "linux-kernel@vger.kernel.org" , "kernel-team@meta.com" Subject: Re: Re: [PATCHSET wq/for-6.8] workqueue: Implement system-wide max_active for unbound workqueues Message-ID: References: <20231220072529.1036099-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=us-ascii Content-Disposition: inline In-Reply-To: Hello, On Mon, Jan 15, 2024 at 05:46:07AM +0000, Naohiro Aota wrote: > CPU: Intel(R) Xeon(R) Platinum 8260 CPU, 96 cores > NUMA nodes: 2 > RAM: 1024 GB > > However, for another benchmark experiment I'm doing, I booted the machine > with "numa=off mem=16G" kernel command-line. I admit this is an unusual > setup... So, does that end up using only memory from one node while making the kernel unaware of NUMA topology? > On that machine, I create a fresh btrfs with "mkfs.btrfs -d raid0 -m raid0 > " with 6 SSD devices. And, I run the following command on the FS. > > fio --group_reporting --eta=always --eta-interval=30s --eta-newline=30s \ > --rw=write --fallocate=none \ > --direct=1 --ioengine=libaio --iodepth=32 \ > --filesize=100G \ > --blocksize=64k \ > --time_based --runtime=300s \ > --end_fsync=1 \ > --directory=${MNT} \ > --name=writer --numjobs=32 > > tools/workqueue/wq_dump.py output is pasted at the > bottom. "btrfs-endio-write" is the workqueue, which had many workers on the > unpatched kernel. If so, I'm not sure how meaningful the result is. e.g. The perf would depend heavily on random factors like which threads end up on which node and so on. Sure, if we're slow because we're creating huge number of concurrent workers, that's still a problem but comparing relatively small perf delta might not be all that meaningful. How much is the result variance in that setup? > FYI, without the kernel command-line (i.e, numa=on and all RAM available as > usual), as shown below, your patch series (v1) improved the performance > significantly. It is even better than the reverted case. > > - misc-next, numa=on > WRITE: bw=1121MiB/s (1175MB/s), 1121MiB/s-1121MiB/s (1175MB/s-1175MB/s), io=332GiB (356GB), run=303030-303030msec > - misc-next+wq patches, numa=on > WRITE: bw=2185MiB/s (2291MB/s), 2185MiB/s-2185MiB/s (2291MB/s-2291MB/s), io=667GiB (717GB), run=312806-312806msec > - misc-next+wq reverted, numa=on > WRITE: bw=1557MiB/s (1633MB/s), 1557MiB/s-1557MiB/s (1633MB/s-1633MB/s), io=659GiB (708GB), run=433426-433426msec That looks pretty good, right? Thanks. -- tejun