From patchwork Tue Mar 28 08:55:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cupertino Miranda X-Patchwork-Id: 1762213 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=rjxVm0pE; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Pm3Sc5Z1yz1yYS for ; Tue, 28 Mar 2023 19:56:16 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ACCEE385840E for ; Tue, 28 Mar 2023 08:56:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACCEE385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679993774; bh=mPgdnK4DSpon4LCLzYQCnGGL0sG38Hmad2aJXdYekzo=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rjxVm0pElK+6JyHPsl8Mqw6mWVMynxRyhK6DIQuiiuf6Q+22KNdarF2tymyVrk0r5 qy/ztgGDuGhQ1Dr+lYuQYac/QrE33AOQH1aLqbLtH4NktH2Ymi/rQypursBvi/7jC4 qE9ud3kWXHw8lQTMlEhUlcN9vmJaJRIDdCkZ+nLs= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 1A0753858D39 for ; Tue, 28 Mar 2023 08:55:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A0753858D39 Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32S8jGtd012766 for ; Tue, 28 Mar 2023 08:55:57 GMT Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pkw0eg195-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 28 Mar 2023 08:55:57 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 32S6eCrm027784 for ; Tue, 28 Mar 2023 08:55:56 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3phqd63t77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 28 Mar 2023 08:55:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iuFVTqIV65VkL9I0bQMYmTAFYRcq3+JtlKdnXD0BQFaXyTa/kX2IuRV5JR08oKYQzD0w/njqFyvzSk8AiNDICQNHZl5Zl5UoI5B9dvWiSwsnFFqI8I7l+qtD1roTGAATTRC6xzlrS5TcoaHAB9FmP3v6sXaI1oKr2R0LSh6zGmUpEI21ctpYq9n+L3TLvwHHHprBFNRO64i9QBc+GlNZDg3BOIpg+vXrEMsLx660zGEEbv4XmBVxmcTklSXbn2Jt9MztgI1J0ij+tih5ipv9LoXsaXKQlA1nth5pvvfhl8itH0bveUu5nD7G6FyyBzaBfVNfxSPCkJm7rwpmbBetdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mPgdnK4DSpon4LCLzYQCnGGL0sG38Hmad2aJXdYekzo=; b=OcgEo+GF9IJXwwwO0IqgRVfAZz4zrmUEjL/Thz0Y3dKBURN711w7oqje9sX+E6ZlBOaqqkOfutzmLGl3iFe8JZPuTEuJ7gmCy8moMYYdxwTuRdlWRgGHrybdjDeKuRZndrku9yLSWa8zrGeeCYFrPUpVpwguow/2V0F/fZqX2StX/Ir+C6RwfMP1xI4udaQRo6ekz0Y+beGrDrndV6jLKeU/qP1osVUMTCq+1e2m6E/ulS+td13+QpZGT1fRsR6zWn3arTUVedqRgA68MYR30/me5XnnP+iJ09M/U5WNsCdXF7P/ZJSQXnTMCSPUYdVyb7T1lN6Ma7mF0I4YF79cqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from BN6PR1001MB2340.namprd10.prod.outlook.com (2603:10b6:405:30::36) by MW4PR10MB5702.namprd10.prod.outlook.com (2603:10b6:303:18c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.30; Tue, 28 Mar 2023 08:55:53 +0000 Received: from BN6PR1001MB2340.namprd10.prod.outlook.com ([fe80::a502:c948:c3f6:9728]) by BN6PR1001MB2340.namprd10.prod.outlook.com ([fe80::a502:c948:c3f6:9728%6]) with mapi id 15.20.6178.038; Tue, 28 Mar 2023 08:55:53 +0000 To: libc-alpha@sourceware.org Cc: jose.marchesi@oracle.com, elena.zannoni@oracle.com, Cupertino Miranda Subject: [PATCH v4 1/1] Created tunable to force small pages on stack allocation. Date: Tue, 28 Mar 2023 09:55:38 +0100 Message-Id: <20230328085538.48080-2-cupertino.miranda@oracle.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230328085538.48080-1-cupertino.miranda@oracle.com> References: <20230328085538.48080-1-cupertino.miranda@oracle.com> X-ClientProxiedBy: AM3PR05CA0124.eurprd05.prod.outlook.com (2603:10a6:207:2::26) To BN6PR1001MB2340.namprd10.prod.outlook.com (2603:10b6:405:30::36) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR1001MB2340:EE_|MW4PR10MB5702:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c6470c7-04c4-407e-bd09-08db2f6a3cc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gHuNdvxyUuZ0EJpP6IUrBGLkGqFg/Ro4xkQLxigzDvGMTnU0h/EdeNkmC7bzbTbp/1/5ayHhE/AM6djodYc8Q+AItoSl2OC/TahBczc6KCnvPdyNIuGhSlcWApdsn8RIfD0exjvZHl4/Gqs6siZbS+l7Ozl50LgcEKnqHEgn3kIk/+wQyOV3/xYZmyt8uPSUXUcfU9ZiM1eoyVHS+ZKeO4qJd3YPup4kk/IMIjGuWvvW/ayB4YN4A6QMmuD41l5+4ubq3u6z11Bxhcaj/wWNisd4h5k1/Hamco/Lqn9Ry/HRLznL5mvvQnZCBwOtxn99+BJXWr8JEzF7L2f406jgDscDkQLLYlVMhJ5AVuxDQjdXdDCVGJ8CZrNudcnfbuWd69U8pdurJKYrKqi60OQyJiWtZ25uN8MoVzPOVdXafNRNP/3VcBqlgsstj3q9Dq5DAmJO7j2zuB/kOmVli20+GDIxYDAfTxUYY22hTz47rOccmkZbtZLaSVROGSx2JqJELNvtlWBXTMaiRSMqMyYv3d5Mkzn7ahKSMOyaPLUXmJ+tk9QyfQ4snQqJHvD1j05/ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR1001MB2340.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(376002)(39860400002)(366004)(136003)(346002)(451199021)(316002)(478600001)(8936002)(86362001)(36756003)(5660300002)(2906002)(4326008)(38100700002)(66476007)(44832011)(6916009)(8676002)(66946007)(66556008)(41300700001)(1076003)(107886003)(6666004)(186003)(6506007)(6512007)(2616005)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: J7Dny+TszjGNhqGDAZopJUofEy6EL5o2ytj0ejCBeZKPPaXuF0cW/G1vpin+l1WFPS2du2dhiWYcy54tt9oa/UoZwPak0KX1HHl86WrGjC574L4xBk0399WXKg0Yo+d9+6QEu5sj2viIni8vjxoa3FeEbyEgc8fhsHXbTUNxuS52IVHwK7nwTfC+b1O/3DcBNTuiTzBKdHpu6hMtN5HUb/+jf8PaYXA8GWp5RxA6yziJ2NlLdF0HLVKIiFAzqHzbww9JAaTdMVFUJx76oL3cA96NWYMqY8SugQQke8px1uE6+pfKVn1wwURtCXwMe6qVql1DDNx77BNPcox9+Ua0+7aeMjwkqbmm3UIR9yUgWQdtTAZc5Vbly+HHoQylrsukWVPGtAk5AnTHoeWY4YBMeGg7je398zbNYlHVO+A7ZtYTrAIuPPTaXCcSsmFbUwMkvIv2BnzkHwfqCaMl8gsSwTacwMC1fE7WQe/WXXOvVStvB3Dzwccp7w15mjXH3PcH3Xpf9UVwVlbXOkSgRpBkrtNKMmHnZ7V+EFJoNwblnmPQAHKXfVEFPEShHgcEm97cXiHTqjIUID6F0paTYrRG9U12gDfXHZ7S4DXVi84AyrDOkkOrKjMPlkZQgB2mud9xUFIrChTy/VuIWj/9aVnem0DiZP9Xa/WCFo5CuQFcY6wvn7gvZwzP+64wN2GCiiAemrR/KKrxcKe8gfUHqJnF3iYES6sc0+JCVyjvRXNUqlGXKO0ntsIcwj0aFVv7MEh7aLZsaShy1EgKl4JNYKko3k3LY4Vi/TlUGMWSASeLjDSCarEjYtZzZmDurAlMAopzH2lZazHONGSvutvw2vvjzg5ST8xGodCoW8FM/Ori9n1sIN4G6m9SCk+PN3bgqm/ZgO2106Oe6w43JSp0wiZQM4+IIgBltez6O1XAH4j1I9JS7Y/mQ70GN7B1UCoykJ4vyrZptM8lCjdSx7dY6lDQbT7ARqbAY/H7y0cZ3yUdf7ozgqB9q51K5K7PzMf/lP03LCNpAs907Z9Y+qoVGFKL+Ls0nEgMNAQ1/g9C9+zuPsnu8rsxBfJ1wIsc7rBuNy7G2EmIe/jAupJ4VbTH/INuHodicLw9dM3WqSsNq3U6YA2bMq728LFXp003/iEF+jgnodU6H9UF6vg4l9JINgPKJbYKj/rrRbTyx33tRBIa5Elnpl042ddct+yEj3SUtQ4uGJaGQZQD2vH9oCfvR7ZilpRiciMWWv4Bmht/JMcoPp2XJmP2MrnwiK95oKseHKxg/okJWt7hUcT0gt4hF0LEJbKbhxQuDdciyvuuQkp0qScDm5FeZW/psY+ly8dOxydl+C4xMY2uUD4JavUPn2AK1L+6hlEyaMoRo/K0Tdq8li3WcRpU6A9EhM9MkrXBoz3CYMVUMstoITr9mMbcCeWozASRBy8UDXkX9x8++RSs8ktPMmpuOUuX/GO+Qc+pM5UtpvL6yaiOSAhDYZHjSabKRRjilQgwh5+RZzhLC+Eo7m2d5+H+XCqrt3BD5IqKOfBLr/Z3YlqPuzmOiNPStwwiHVwT6z5jeZRFoUJABfzSwUdP5WyM/sfqFUq/6WqBI3Vq4zmw5O2ub3Li0ZCbzwhl7j0qWuI4XNEEY68TG2FE2ym4d3o6oCT5nutxcyaX11dQ X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: rLyr9J4huq+7+gGs8fHBINPBG5DzU+VwdwimN6cOujx/8jNZKcYxS732nJtGssRSsf44O3vxyhnBIR48nL38TzUPs2tZ581hSZzOo2RYTYN/Yu5wtf7JyDqVeIUIGNhGjLLdqx/dgBAwHgSJZNOYa++/s1DYgVlwT+iZgKQakjuv8XNmR65E3ftv1yEVGOLZ3v9nEJ0jSAKeWXpRjuMhRobU72CTzOMxLrNcCT0qximcky9kD6crQotLJLNhVsuBXCHPcl6XyGFU0KrKQ5GqXVJIzjOc2eqbXJU2nplHGLC07e9KCESwm0Oel7RL8+w8GvtFaoa+keXtSiSKMbZrO1xdxx+NH4AIzjiDY/xEWJ0GkS6v2tgyvHVEaZYKcqaZ8t90as2LA1WPPrcyZ7srTt4MSZ32j4ljszGQSFDZBS8SqsUDDZgjIF/qCgPTqM+9+aKDH/a0NE5ppSTGWqhYLuZns+TtzvRtaG7JF1LRMV0G3pme9nVmch7Q2j4wwwy9g/+vGEf1vANvXPEsxzr7GOWefKyI8WDRTO7OIt/MWITe9HTgj3VyKkUK48Pxn/r6OckW4K4vovYyXDvzxxF1pxbyqfERGxpGj+RtdCkRtE6IGtLEvN6DDXdMM1u7eOeCi4EFrcI0lBlLFkxbLESjzIl92vPjlLK9y03khm8JPN6y5nXOnTOMXQmQZXtzula6IqmPxad2U6IwUjcjFtD9l/oMcd2FAPzpQQx5I5UbKCASZdHgHJj2TySH8/BZ3qV1 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c6470c7-04c4-407e-bd09-08db2f6a3cc4 X-MS-Exchange-CrossTenant-AuthSource: BN6PR1001MB2340.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2023 08:55:53.7497 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H/AILNH1qJuzc2ISxxofESAxNW7tg9GRnVHVM0MibGG2dSIHQBVqrRzrsFgI7zSBcOkyEwH/k1Q+EEs1wVK3yalEfJa9Sbl3TljeyoM5wc8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB5702 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-27_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=909 adultscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303280074 X-Proofpoint-GUID: z_fY6vY7fma1xaE8ZMOQ7nEZG58CRLtd X-Proofpoint-ORIG-GUID: z_fY6vY7fma1xaE8ZMOQ7nEZG58CRLtd X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Cupertino Miranda via Libc-alpha From: Cupertino Miranda Reply-To: Cupertino Miranda Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Created tunable glibc.pthread.stack_hugetlb to control when hugepages can be used for stack allocation. In case THP are enabled and glibc.pthread.stack_hugetlb is set to 0, glibc will madvise the kernel not to use allow hugepages for stack allocations. Changed from v1: - removed the __malloc_thp_mode calls to check if hugetlb is enabled. Changed from v2: - Added entry in manual/tunables.texi - Fixed tunable default to description - Code style corrections. Changes from v3: - Improve tunables.texi. --- manual/tunables.texi | 14 ++++++++++++++ nptl/allocatestack.c | 6 ++++++ nptl/nptl-stack.c | 1 + nptl/nptl-stack.h | 3 +++ nptl/pthread_mutex_conf.c | 8 ++++++++ sysdeps/nptl/dl-tunables.list | 6 ++++++ 6 files changed, 38 insertions(+) diff --git a/manual/tunables.texi b/manual/tunables.texi index 70dd2264c5..182f644851 100644 --- a/manual/tunables.texi +++ b/manual/tunables.texi @@ -459,6 +459,20 @@ registration on behalf of the application. Restartable sequences are a Linux-specific extension. @end deftp +@deftp Tunable glibc.pthread.stack_hugetlb +This tunable allows to configure pthread creation stack allocation never to use +hugetlbs. +This is more of an RSS optimization, for example in scenarios where many +threads get created, keeping RSS to a minimum, but also allowing hugestlbs to +be used for malloc allocations. +This tunable only affects stacks allocated through thread creation process, +i.e. it has no effect on stacks assigned with pthread_attr_setstack. + +The default is @samp{1} and preservs glibc default behaviour. +When set to @samp{0}, it advises the kernel not to use hugetlbs for stack +allocation. +@end deftp + @node Hardware Capability Tunables @section Hardware Capability Tunables @cindex hardware capability tunables diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index c7adbccd6f..f9d8cdfd08 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -369,6 +369,12 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, if (__glibc_unlikely (mem == MAP_FAILED)) return errno; + /* Do madvise in case the tunable glibc.pthread.stack_hugetlb is + set to 0, disabling hugetlb. */ + if (__glibc_unlikely (__nptl_stack_hugetlb == 0) + && __madvise (mem, size, MADV_NOHUGEPAGE) != 0) + return errno; + /* SIZE is guaranteed to be greater than zero. So we can never get a null pointer back from mmap. */ assert (mem != NULL); diff --git a/nptl/nptl-stack.c b/nptl/nptl-stack.c index 5eb7773575..e829711cb5 100644 --- a/nptl/nptl-stack.c +++ b/nptl/nptl-stack.c @@ -21,6 +21,7 @@ #include size_t __nptl_stack_cache_maxsize = 40 * 1024 * 1024; +int32_t __nptl_stack_hugetlb = 1; void __nptl_stack_list_del (list_t *elem) diff --git a/nptl/nptl-stack.h b/nptl/nptl-stack.h index 34f8bbb15e..cf90b27c2b 100644 --- a/nptl/nptl-stack.h +++ b/nptl/nptl-stack.h @@ -27,6 +27,9 @@ /* Maximum size of the cache, in bytes. 40 MiB by default. */ extern size_t __nptl_stack_cache_maxsize attribute_hidden; +/* Should allow stacks to use hugetlb. (1) is default. */ +extern int32_t __nptl_stack_hugetlb; + /* Check whether the stack is still used or not. */ static inline bool __nptl_stack_in_use (struct pthread *pd) diff --git a/nptl/pthread_mutex_conf.c b/nptl/pthread_mutex_conf.c index 329c4cbb8f..60ef9095aa 100644 --- a/nptl/pthread_mutex_conf.c +++ b/nptl/pthread_mutex_conf.c @@ -45,6 +45,12 @@ TUNABLE_CALLBACK (set_stack_cache_size) (tunable_val_t *valp) __nptl_stack_cache_maxsize = valp->numval; } +static void +TUNABLE_CALLBACK (set_stack_hugetlb) (tunable_val_t *valp) +{ + __nptl_stack_hugetlb = (int32_t) valp->numval; +} + void __pthread_tunables_init (void) { @@ -52,5 +58,7 @@ __pthread_tunables_init (void) TUNABLE_CALLBACK (set_mutex_spin_count)); TUNABLE_GET (stack_cache_size, size_t, TUNABLE_CALLBACK (set_stack_cache_size)); + TUNABLE_GET (stack_hugetlb, int32_t, + TUNABLE_CALLBACK (set_stack_hugetlb)); } #endif diff --git a/sysdeps/nptl/dl-tunables.list b/sysdeps/nptl/dl-tunables.list index bd1ddb121d..4cde9500b6 100644 --- a/sysdeps/nptl/dl-tunables.list +++ b/sysdeps/nptl/dl-tunables.list @@ -33,5 +33,11 @@ glibc { maxval: 1 default: 1 } + stack_hugetlb { + type: INT_32 + minval: 0 + maxval: 1 + default: 1 + } } }