Message ID | 20240102131249.76622-6-gang.li@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-14386-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4436272dyb; Tue, 2 Jan 2024 05:14:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFg92kOwybPNUyXxOBJS/MmGVRY9hnp9Wv+4H2aCscVBOaLoAHkoriAjSIfQHvyMSs+dm55 X-Received: by 2002:a05:622a:290:b0:428:c54:79cd with SMTP id z16-20020a05622a029000b004280c5479cdmr9227174qtw.111.1704201279055; Tue, 02 Jan 2024 05:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704201279; cv=none; d=google.com; s=arc-20160816; b=kpao1WjMEer7uQrWq81TijjhsioIPTmFDfWML5DfUol+nAemfnRCEULNC/qzIs6Pk5 0L29l2TadzhZ8JWxPA5aGC0EN0poimFerEstkhFkljtWy+sfgNqTU2Q9pa3kqhDFj76r CSHcb2hvje1uojrY55PTqRVw1kAyTffgDNter4xKEv5MeYzeTIGBKANJVfeUqGcLBltk BNvmAWUCR89n0OJiOjXhSP1tR6qGMztfR4cc8t1d3RYJ0qdAMbjYv9HtixbU95TWeQwq ywTe3cFyrCx36g+jcsgFdo4DlAzrqQfPbIRn2YPv7VBYK4Usml5WY0Wb1VipzWRclXNI xrNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=uwJWRA1Ti2ov5Iev54G7xXAXLlg2CRbAiefTt3ZwHf4=; fh=5n5b5+XOwLgGNDePhvfXysty56rnkWOs9jaHEODdVeE=; b=RdNP9fs036kU/oyMcFk5bbOR0MJ5ta+cBD8fL5RzH32PAgpILaiZeYQl3xMgCI0Mcv g/c25XiQWzUBQ6WhTRsNmdaMHyvOkjJqpOutZFvEf+xhmgnUPFq1jJTT/jeVzVpbrV7p eSImGj/1HyeXtJv6bisSVEt+3skRRX6Udno4svxaOqWV9FDdYelLW0S0gt6ybhwHowHZ DC+YhDPr8t0m561+YLNtyn700+/XSZ6dnW7S9n1RM9Llw/PM11yT9llcqZHFbm21p9Eb cl1NRL96++Z3OJHehv0AusNm91OYUJMcnvpRIz8cx8MxwYuZWoJVVZBLEWThkSqJ8mRF j3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=LLGCqrdb; spf=pass (google.com: domain of linux-kernel+bounces-14386-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14386-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w3-20020a05622a134300b0042812956cfasi6696057qtk.93.2024.01.02.05.14.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14386-ouuuleilei=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=LLGCqrdb; spf=pass (google.com: domain of linux-kernel+bounces-14386-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14386-ouuuleilei=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 D67B11C2207D for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 13:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A22E14A8A; Tue, 2 Jan 2024 13:13:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="LLGCqrdb" X-Original-To: linux-kernel@vger.kernel.org Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 3137312E70 for <linux-kernel@vger.kernel.org>; Tue, 2 Jan 2024 13:13:37 +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 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704201216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uwJWRA1Ti2ov5Iev54G7xXAXLlg2CRbAiefTt3ZwHf4=; b=LLGCqrdbm54bgGR02vZyuR1VdBL4mcjuR/BGT/9+I895KeZ7fyx+zd7BxXb0RBDzZmE25q AMVfKXgVW6wXKRG7kBGALWtRZYvIMnFzhrilIzjsqIv/oXeOP1qJqaKxBRlTDA+uY6LEko g3MUn0pBdC3pivvQ/woTMSibZfbEMZQ= From: Gang Li <gang.li@linux.dev> To: David Hildenbrand <david@redhat.com>, David Rientjes <rientjes@google.com>, Mike Kravetz <mike.kravetz@oracle.com>, Muchun Song <muchun.song@linux.dev>, Andrew Morton <akpm@linux-foundation.org>, Tim Chen <tim.c.chen@linux.intel.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, ligang.bdlg@bytedance.com, Gang Li <gang.li@linux.dev> Subject: [PATCH v3 5/7] hugetlb: have CONFIG_HUGETLBFS select CONFIG_PADATA Date: Tue, 2 Jan 2024 21:12:47 +0800 Message-Id: <20240102131249.76622-6-gang.li@linux.dev> In-Reply-To: <20240102131249.76622-1-gang.li@linux.dev> References: <20240102131249.76622-1-gang.li@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786984560652091505 X-GMAIL-MSGID: 1786984560652091505 |
Series |
hugetlb: parallelize hugetlb page init on boot
|
|
Commit Message
Gang Li
Jan. 2, 2024, 1:12 p.m. UTC
Now hugetlb uses padata_do_multithreaded for parallel initialization,
so select CONFIG_PADATA.
Signed-off-by: Gang Li <gang.li@linux.dev>
---
fs/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, 2024-01-02 at 21:12 +0800, Gang Li wrote: > Now hugetlb uses padata_do_multithreaded for parallel initialization, > so select CONFIG_PADATA. Perhaps rephrase Allow hugetlb use padata_do_multithreaded for parallel initialization. Select CONFIG_PADATA in this case. > > Signed-off-by: Gang Li <gang.li@linux.dev> > --- > fs/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/Kconfig b/fs/Kconfig > index 89fdbefd1075f..a57d6e6c41e6f 100644 > --- a/fs/Kconfig > +++ b/fs/Kconfig > @@ -262,6 +262,7 @@ menuconfig HUGETLBFS > depends on X86 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN > depends on (SYSFS || SYSCTL) > select MEMFD_CREATE > + select PADATA > help > hugetlbfs is a filesystem backing for HugeTLB pages, based on > ramfs. For architectures that support it, say Y here and read
> On Jan 2, 2024, at 21:12, Gang Li <gang.li@linux.dev> wrote: > > Now hugetlb uses padata_do_multithreaded for parallel initialization, > so select CONFIG_PADATA. > > Signed-off-by: Gang Li <gang.li@linux.dev> Reviewed-by: Muchun Song <muchun.song@linux.dev>
diff --git a/fs/Kconfig b/fs/Kconfig index 89fdbefd1075f..a57d6e6c41e6f 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -262,6 +262,7 @@ menuconfig HUGETLBFS depends on X86 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN depends on (SYSFS || SYSCTL) select MEMFD_CREATE + select PADATA help hugetlbfs is a filesystem backing for HugeTLB pages, based on ramfs. For architectures that support it, say Y here and read