Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2146830rdd; Fri, 12 Jan 2024 00:08:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2EJZDZX4cXo7OhF+72FhcajwvXMCUSkbw2ZiWGQORXtv59J9EVPAwR6kaJevJd5dW/gVF X-Received: by 2002:a05:622a:190d:b0:429:95c0:a4fb with SMTP id w13-20020a05622a190d00b0042995c0a4fbmr1221870qtc.130.1705046913988; Fri, 12 Jan 2024 00:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705046913; cv=none; d=google.com; s=arc-20160816; b=nG/bgFTuxJrIEWoGuPuwEcZT2LZpQZ9ADZpWv3UEmtsCgBDp+d/QW9An5XNnMlixgp JWq+YrwowwU/j1CDc78LGqRJ9vT3GinslDMZ894wB8sfP2XdoUbjA1/U+pqfE5VKEA/f M0dQbnOvPMdD7R6LaUCZqjXTbBFdOkOySmFCnJ//f6zc9H9hCjWEUmOwGwZSJO07DoBh s5ImQNWVULbiyUkGK5ZneY0+QZZJAX+jDVbqa8BXvkS0jK12rUs4HB3jBN6L8J6xh1kK HN5YQmAhL9ltQe/44AJBCpJkmh1Rh0oStsZE6AsrWApVrcNXClGMJVvEPt3w9N+el+q5 x6nw== 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=bHHljA0oQNzdAwnrcBdcmTqIurHhJV7HJIprweZM2NI=; fh=J7T6XgnP17poAv4BAlOZd/EoCkZHgY5VGAvZymS74Ds=; b=xCe7H3+CUCKcxSDBDe+VxSA0p4GpT70yRFoe3ahmTuSiBtlF/GdC+lxXX7MWJDGscB 3OJF1yIsfgBvUfPG6IvZCkpTfbHV+qgxOVFCN8dhPVsaoD+aWW7gxiPK389Vt2bqwkxq 2w44KbnaBTu6rT7j2YCfZjB5rp3+GZfGxVdQJP829aBGoqPL8fyaAztBQXsuXjIGFfqA jgS9o3fm2kwwV4rXGj8uM/SBmhK1S40ELJ6y+1H2ysJX0GhXuqB0i6J2NGHFWfMi6rwJ Ud8W2SSfY+abf7/jY+wzI2UdG56VBjEK9qslfcZUOiw++cLR/eqksUmQW0cVeM08QAeX I0Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=j3rSbpLE; spf=pass (google.com: domain of linux-kernel+bounces-24410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24410-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q5-20020a05622a030500b00425736063fbsi2622760qtw.292.2024.01.12.00.08.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 00:08:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24410-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=@linux.dev header.s=key1 header.b=j3rSbpLE; spf=pass (google.com: domain of linux-kernel+bounces-24410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24410-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B9EB81C218EE for ; Fri, 12 Jan 2024 08:08:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 479825D74B; Fri, 12 Jan 2024 08:08:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="j3rSbpLE" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 7B99532C62 for ; Fri, 12 Jan 2024 08:08: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: <2296235e-b15a-445d-b867-125c6d85a8a6@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705046901; 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=bHHljA0oQNzdAwnrcBdcmTqIurHhJV7HJIprweZM2NI=; b=j3rSbpLE9NGNOEkTBHFouF0sqQj4U/xScJxrT07bH6resfKDDYy7dboO6ZV8Vx5HTTKPfI WRZ8EJOTNRBnOi4DqRNNw3MvwQyQfzHUxG/qfZlx8Auhe2M0c/uQhJmODfzN1o8SinNCWy W9yWQMtlJYpL/Zoykz3sxthJsA8uYa8= Date: Fri, 12 Jan 2024 16:07:54 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v3 4/7] hugetlb: pass *next_nid_to_alloc directly to for_each_node_mask_to_alloc Content-Language: en-US To: Tim Chen , David Hildenbrand , David Rientjes , Mike Kravetz , Muchun Song , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, ligang.bdlg@bytedance.com References: <20240102131249.76622-1-gang.li@linux.dev> <20240102131249.76622-5-gang.li@linux.dev> <66af5bce84c9b6480feaa2ddaff199cd5722fcde.camel@linux.intel.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Gang Li In-Reply-To: <66af5bce84c9b6480feaa2ddaff199cd5722fcde.camel@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2024/1/12 06:21, Tim Chen wrote: > On Tue, 2024-01-02 at 21:12 +0800, Gang Li wrote: >> The parallelization of hugetlb allocation leads to errors when sharing >> h->next_nid_to_alloc across different threads. To address this, it's > > Suggest you say > With parallelization of hugetlb allocation across different threads, > each thread works on a differnet node to allocate pages from, instead > of all allocating from a common node h->next_nid_to_alloc. To address this, it's > >> necessary to assign a separate next_nid_to_alloc for each thread. LGTM, thanks.