Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp168693rdb; Sun, 28 Jan 2024 19:59:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsU4V1j4rYcFfIXQa2+H8HA1W2O6+sdekpZligak74fjFkp29szA+C3iOc3HnWnQFHeXO6 X-Received: by 2002:a05:6a20:88a:b0:19c:97b8:abb2 with SMTP id k10-20020a056a20088a00b0019c97b8abb2mr3804078pzb.48.1706500774765; Sun, 28 Jan 2024 19:59:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706500774; cv=pass; d=google.com; s=arc-20160816; b=IPCKDowiLZBLjDhGUMKrV4qwRIt20Q0I+1TYMcG/nMDN+c99xSJLTbGBCHr2HvoiEo dSW7MeAYMsC+8p8gQ7zlLRADlZU7xL5X7Mp3jqi/MGxs0uBCgr+fcvtzlDm1ARw7sfp5 K5KT5WHmcxI8XtdMMq2weItCRkPte21tAD15n+11/uErVGVvBqwa5YGIqed4snjaF3CN yVXUlTsCwNMh8ZX0PwL7WIL35bc3A0qs5W36iL1+56OOL8hLYW2LBt8QlyTSnn6SSCRq vipIpJE625qhFG6j6f7jMFJMrUFVBkHRMejUozjFzQgTSCNX7gMSyaHCm8fqSvdRJAmd lXcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=n/U+6Jt6zzN7t+CXKZ0VQY8dQzU9nAL3RP8JSzq+IHo=; fh=AYxwyR3J/kPtM4magQIyzlUdQEW2jx+zDn9RDMQmKe0=; b=cMrR1E5GE91vFr8ojODJpOT08fwZ1X1UXvxGcfMWVHXWN9g4k3aqm2Xoo9jiB+GYAS e9Sla0Wh/g1fhwmYDgfDzCfGFWSkjb6431VZImxQ7so/66Mk0kcIXq9RYsrCkr9tZqLT hOM7KdXUaqoR9R8v69hdt9lZwfrcqJwtb7MJ/t7hvkqUSrUK9WnBp2/6Ix7O3Tmqbd8A Kwwg5Itz7YG7P+BaT+CFICI3As4dF5JDS/PwkXEuY/JGlxQstlQCZqDexGZXOklnWv3u JbVNr6MJQYkc/KRREt9e0uz/IKIPqoH+rOWKRS1lNSKDeLO42bmhKIw9xvZnF8sfpNdh 9zuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=keS0dqRx; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-42147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k185-20020a6384c2000000b005d4859419dfsi4934519pgd.267.2024.01.28.19.59.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 19:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42147-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=@linux.dev header.s=key1 header.b=keS0dqRx; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-42147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42147-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A3D252839B9 for ; Mon, 29 Jan 2024 03:57:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4686F11CAB; Mon, 29 Jan 2024 03:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="keS0dqRx" Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) (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 B0C5A10A0C for ; Mon, 29 Jan 2024 03:57:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706500651; cv=none; b=ST1JLaNj3WrWcbBv1tQk7zrDYBBXKcpZD8lEtZgb1+g7CjtMJlsmjb+/XQSDAGnyJ5bzdTsrXm1GaFqFgttQdI+1sivD2iu+dqyz0GzPHHxJQEYsP1y7b33EGW3xFcFX3VYzOk4GoAJKzrE5u6klkcDFwcOzv6ndl+qHENbVf/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706500651; c=relaxed/simple; bh=R+zR3Df4qnNIL3eTw7MA45glaoiZPZ+jeMBPXhiX3BY=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=Eog7QWHutOyBKhnwRf6yWS5W6E4PI063E0lrj5gRZB/s4nyhXTIbn3hC/vddvHyEkJA2b469c9w8t6QQOnaqwVYiyvivg4mgg76igFAxL2+X0Kol0HslXbezxj2vbJ2t3BEiuOwliZmY0SVw/SZSj+P0I7Lt4Lx3AuYg4ZJA01Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=keS0dqRx; arc=none smtp.client-ip=95.215.58.187 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 Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1706500646; 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=n/U+6Jt6zzN7t+CXKZ0VQY8dQzU9nAL3RP8JSzq+IHo=; b=keS0dqRxPRiAngPQAcoYA4v9E9NxoosVyBsFbPKXyOYV2m8GyqSoDOLfoKbfTOfzlOvlGv uTeZA6bChIQj0LYaEuIZUSLHlYK1cG8a/dIxM/q+6fGKhNe+rNYzrEs1hK1Dpb0pdm+KWE 9xKuf64mOSTs/mZs6LMRu/XpYs1Wnr8= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: Re: [PATCH v5 7/7] hugetlb: parallelize 1G hugetlb initialization X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20240126152411.1238072-8-gang.li@linux.dev> Date: Mon, 29 Jan 2024 11:56:47 +0800 Cc: David Hildenbrand , David Rientjes , Mike Kravetz , Andrew Morton , Tim Chen , Linux-MM , LKML , ligang.bdlg@bytedance.com Content-Transfer-Encoding: 7bit Message-Id: References: <20240126152411.1238072-1-gang.li@linux.dev> <20240126152411.1238072-8-gang.li@linux.dev> To: Gang Li X-Migadu-Flow: FLOW_OUT > On Jan 26, 2024, at 23:24, Gang Li wrote: > > Optimizing the initialization speed of 1G huge pages through > parallelization. > > 1G hugetlbs are allocated from bootmem, a process that is already > very fast and does not currently require optimization. Therefore, > we focus on parallelizing only the initialization phase in > `gather_bootmem_prealloc`. > > Here are some test results: > test case no patch(ms) patched(ms) saved > ------------------- -------------- ------------- -------- > 256c2T(4 node) 1G 4745 2024 57.34% > 128c1T(2 node) 1G 3358 1712 49.02% > 12T 1G 77000 18300 76.23% > > Signed-off-by: Gang Li > Tested-by: David Rientjes Reviewed-by: Muchun Song Thanks.