Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp83818rdb; Sun, 17 Dec 2023 22:46:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0d2KtAK7TfPV+YeWtvv41KdxuPdMjVp+ysraUB7sKIBItGFo2fOy3kwDbq6iv3nE/2WlL X-Received: by 2002:a05:6870:224f:b0:203:5088:ce4e with SMTP id j15-20020a056870224f00b002035088ce4emr7373840oaf.95.1702881993270; Sun, 17 Dec 2023 22:46:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702881993; cv=none; d=google.com; s=arc-20160816; b=zxoATwd3Vp8h2C82etwOK33ZYluZRYSTrlWYQjauveozuOGgPf7Smbts37P4bLA4un VkT8f3ySCAUlInYUy4FbsSCZyVlE9WgL+q+QQ5EChz6VCJdsuFAP+mW2+veuDOyPoO7j C05ilXQUAOpHFkHoZ3KuYoqraKuvVxveVcDQt0PzBudu/333QK9ALUiezRx2plFIRZgI +tIezUd1/v9V1r+SWeAljNZEVEQ72+bg1jnl1ZPhtAKTer+9yPVpZMZRH1h3TYXyGrhK 8LhFF5wNG0c1xIpL42aeLN9TYnuZKR4Ai1a3TnaAXoxiyxJKs4oaQpkTiDGl0cqlt29E 6kOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=uxhuB4/a6nADycq01sY6OaY4WiAXhkXwIrDoEHhteEk=; fh=F9uVY1j3eaCugPoK2bTIbV595hWYPpAU01HyC1zH4VA=; b=eZWtQCll/XkFhIG5cw1fh6zoTc8hQ40x2nD66Cm0uedvu2gMfYbBKWht1EAODx9z+/ JGapMWf4RHHRQXQlY0v+/IbEIccq1xr0av/phESbid7AFA21+Lgi0nN0QRlTMfEUxsjw Sp9qAZqMURp0po0A9FwVZP64Y9zSQADj42xUz5NEJjW0kpLiFrF6N7SGz/0K0s74ebrl zIDWPzgLIWTSGsvBVjFJSttTDkaj69cZzqLjBU82sA4iaP9LJw+sb6l8kGY7e3/OlqJg ZRNx20FxVFGeffbKDu9vXFuIyvage5Tl9pZv4MHovkD1Z4B3573UK9kLfja2Vff8RUU+ 1OGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uZRgB2TD; spf=pass (google.com: domain of linux-kernel+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cb16-20020a056a02071000b005b8ebb76177si3601369pgb.561.2023.12.17.22.46.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 22:46:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uZRgB2TD; spf=pass (google.com: domain of linux-kernel+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 458C8B21619 for ; Mon, 18 Dec 2023 06:46:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DD7679EE; Mon, 18 Dec 2023 06:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uZRgB2TD" X-Original-To: linux-kernel@vger.kernel.org Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F4E17464 for ; Mon, 18 Dec 2023 06:46:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <642a3472-9570-409a-94e0-64f30966b86f@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702881981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uxhuB4/a6nADycq01sY6OaY4WiAXhkXwIrDoEHhteEk=; b=uZRgB2TDdJy9GaOq3MspG9bqRtWCpDRHoQGSvbufNDItYSbxWJ5ZEeipQI+cvyIYDauDpT Z8KojixWALzaejI6WCbUcTiGBBs3OvrmgpaWQb7FxXOpFO+JCKDcYqQA3cEKO5QO3Eod9P yPTxXIqJ5Cf2dY2dW8CM3Ipxx5nM63k= Date: Mon, 18 Dec 2023 14:46:15 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [RFC PATCH v2 3/5] padata: dispatch works on different nodes Content-Language: en-US To: Tim Chen Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song , Gang Li , Mike Kravetz , David Rientjes , David Hildenbrand , Andrew Morton References: <20231208025240.4744-1-gang.li@linux.dev> <20231208025240.4744-4-gang.li@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Gang Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2023/12/13 07:40, Tim Chen wrote: > >> >> list_for_each_entry(pw, &works, pw_list) >> - queue_work(system_unbound_wq, &pw->pw_work); >> + if (job->numa_aware) >> + queue_work_node((++nid % num_node_state(N_MEMORY)), > > The nid may fall on a NUMA node with only memory but no CPU. In that case you > may still put the work on the unbound queue. You could end up on one CPU node for work > from all memory nodes without CPU. Is this what you want? Or you would > like to spread them between CPU nodes? > > Tim Hi, thank you for your reminder. My intention was to fully utilize all memory bandwidth. For memory nodes without CPUs, I also hope to be able to spread them on different CPUs.