From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2049.outbound.protection.outlook.com [40.107.13.49]) by sourceware.org (Postfix) with ESMTPS id F33D83858D32 for ; Tue, 21 Feb 2023 14:52:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F33D83858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iEixIiaQG87WepLU05L4k9UJUzThjIRPQ0mb+YPCHgw=; b=dlZqpd8E3W7HlRSAhEZYqyK1A2yA2D2z9j/U0nZ9WyzG8LY7MYB0JJ+KZa5PFzgumZtvnv0JQ1ZvH/kQ0PkxTGPHVUTttfJUp720PoQTRHmQ3Jpdqv/kOqL2cvj9sC1kZ0zswPOmfg12D3Le8561A9hj2QxaNazi5wdjyfzF0K0= Received: from AS9PR06CA0088.eurprd06.prod.outlook.com (2603:10a6:20b:464::33) by AM8PR08MB5795.eurprd08.prod.outlook.com (2603:10a6:20b:1df::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 14:52:43 +0000 Received: from AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:464:cafe::d) by AS9PR06CA0088.outlook.office365.com (2603:10a6:20b:464::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21 via Frontend Transport; Tue, 21 Feb 2023 14:52:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT064.mail.protection.outlook.com (100.127.140.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.17 via Frontend Transport; Tue, 21 Feb 2023 14:52:43 +0000 Received: ("Tessian outbound 8038f0863a52:v132"); Tue, 21 Feb 2023 14:52:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 02cc3a1a50212849 X-CR-MTA-TID: 64aa7808 Received: from 4f56a7c198c4.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2C9C3E8E-A05C-460A-A442-66A998673A8D.1; Tue, 21 Feb 2023 14:52:36 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4f56a7c198c4.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 21 Feb 2023 14:52:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kixvqbQAqp+AFnfrvVAQ9lnjiCxTwaNpPRZEXjbnV7G1zrd15JG83FjNv0+ga+WP/2vSMMqyb1zyhYBkDjcMQcUyMeYN8jg2UteYIjRrZfF2frJ3zZnYzRp48rVeyeSU7cm+XobTtB25jLp+/RWY8vIwu+25rTCus5wN7QsiaTdALK2AQgq6Z66a+76+PC2U+JXvRecYS10Q+J1hEiRXWywm1hqInw4oW5BgxAIXeIMg0k3U5Vo/1y0po3MKpQ3uwpNAEb4bsS/sz0EuRiyMBbZvO17NCD5KQmvkCHZ9+uzE2oAjLa0dbYuCIh2S9SzVEi5dlmv9JhjMt9cpr007jw== 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=iEixIiaQG87WepLU05L4k9UJUzThjIRPQ0mb+YPCHgw=; b=nan96gu4uQbCc6zHzTCgCaf4yKnQB+sON6KLdSBjFh1dH3xPEjBu0qSDF9YT/G4xnUKzNV8FkLGU/pD2Mx8JxGo4JHqpJVasHABGhwFZZOtL+lm/e6o34HmMZ7Osz6o+vS4oPt2MFAkOJqgpGimOWRr4HQrpmBzCs1baImcmdOpCktHZEsLRhT9L5O/S8fXtLIopEP/NnhpWTtGj7WwN8cx1HmmtMI1dkWikwLyNS3OjpmvoWKe9MlJrCFsX5DZNu6aT3P1J5dmATUIkXr10kAmS5otJtLBFWjWMolbDO0LUBgy3ZU7zQ2Oiojp0yvsqlFh/weNCKST7jnUPTaGY4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iEixIiaQG87WepLU05L4k9UJUzThjIRPQ0mb+YPCHgw=; b=dlZqpd8E3W7HlRSAhEZYqyK1A2yA2D2z9j/U0nZ9WyzG8LY7MYB0JJ+KZa5PFzgumZtvnv0JQ1ZvH/kQ0PkxTGPHVUTttfJUp720PoQTRHmQ3Jpdqv/kOqL2cvj9sC1kZ0zswPOmfg12D3Le8561A9hj2QxaNazi5wdjyfzF0K0= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) by AS8PR08MB9118.eurprd08.prod.outlook.com (2603:10a6:20b:5b6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 14:52:35 +0000 Received: from DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::29ca:64bc:9a10:b072]) by DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::29ca:64bc:9a10:b072%7]) with mapi id 15.20.6111.021; Tue, 21 Feb 2023 14:52:35 +0000 Date: Tue, 21 Feb 2023 14:52:16 +0000 From: Szabolcs Nagy To: Ronny Meeus Cc: libc-help@sourceware.org Subject: Re: Memory increase using glibc - 2.35 Message-ID: References: Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SN6PR04CA0107.namprd04.prod.outlook.com (2603:10b6:805:f2::48) To DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB7179:EE_|AS8PR08MB9118:EE_|AM7EUR03FT064:EE_|AM8PR08MB5795:EE_ X-MS-Office365-Filtering-Correlation-Id: 9bc19cb9-5505-45a0-ef2a-08db141b49e4 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: KDYHv/YV3oUs9XwCreWY35yrGg0Q8oGhpa12078xk72gFNLnGBQNy+U+K7Kkc7OPYEnIh1hq15cw2yh9svHlxN5ggZzEZoxH1+3LoocqqKs4PpC+7W1TxWidGiGyxKB6JVAFz7XfGmiTmpsSgk/5wh7Xq20C161YyudY7Ngq8frqDaWyLfCARJWVraOyQEexiwlUi5DI9rO3ONVoN+lcfYiE+WD9p7Ny5SVDvxs7QBGN8go3fSqZTO2B0kI6Ny1Az0Pe7bE4YnY6cdAXDWqki+1Vy0ekSF9r7PHhiHLj4c8Sy2SftMNS7SXI31BGIN+TKkYCFnszwZfp4+6uJedp7XwYMDNIALNi4rXsX/39J6+jznSSYHc+SVc9KOpBaQOu9mP24vMeAhzn8CugISDOC+x0DTG+49jizJUqN+kLYYogUra00W4gX1wdzWsjU5WHXiUkhX2g4blaPrdh1Y/R+4sml+NejeNRqLgO1FXpR3eNilY2WiuzUTOXo+U8DENdyOoTflB0Ue/nkRpaQvMq3c3rY3IvK+eGP1Sj9cy82LRjyATPabSyrs0luxStqGfS4gW48nOQA2Dmj6WS4y39iiIqp/6oI4po4f9VJKwU0X9nkvzYZdPL/l6bVRNCwg3v X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR08MB7179.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(366004)(136003)(396003)(346002)(39860400002)(451199018)(83380400001)(316002)(86362001)(38100700002)(66476007)(4326008)(5660300002)(8676002)(2906002)(66556008)(6916009)(966005)(6486002)(8936002)(44832011)(36756003)(478600001)(41300700001)(66946007)(2616005)(26005)(6512007)(186003)(6506007)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9118 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 445e96b1-82f0-4620-5b22-08db141b443b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TMaU9xWbPacfBAoj0lu6Q/CuEwYziQsiiqPxQP7+u7lxeLPp3gOk1+vxfsK5TJxUcVxfxap2mBRreh+X3aIBt8T7cjVU0UdO3KJp9EPfLhj34TYUsOY9fS9r4kMbH9JXO46s09Mgr1iR2iHFqpBJYe5IU4FQX9vHrCZSDvLkTcpJOodloqJD8TC5FXyo2mlQqyRe/VJHl17dLUZvDKMyYMG0zD/kQNsIoNoL2MNB5Vy6CpfYkQYDQcq2sJqJuRVRRcndXHD5dsegeXhDCeeaq3h9IRIbm5GW3tiueXvw2uEo7SnZNnO/ed/dBeaL7AGJ9VdITubbVbh2ItQiP0rRWUAJ2tYg8jvSQTjLk7r0EeUKV0uKLZuQ5fIcys5RD0pCsuHkLtUWSK0U6FgvE96N1NuP7jyYqwkZNvZQIMPnWVoy1v8OH5Ty6KBJgqQmCQ2uXHFU6M1aGuM0Ma02nZ9ey1dKacyl8Y0XBZ5oFsViZKN1dME7RL8DoTHhiRzJIwAhaEIZdwrX5MAh4wM7fXBlSa92ar9Xm9YgBBqQBWAN7zRE67gVsJ/38zAuhR5f3ZVnbTISjyu0Fp9U9npx+CTlE4Wm68axnD3BYI22betHqIYR8/U8J50I/PwJhk2MS5wnNeBJ/78Fb3vjyvI4v0NZlunalwvlIo5z0LnnYJ81tZvXcrPlko7l2g8F1nzOkIRt X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(376002)(346002)(396003)(136003)(451199018)(40470700004)(46966006)(36840700001)(36756003)(356005)(86362001)(44832011)(5660300002)(41300700001)(6862004)(8936002)(36860700001)(82740400003)(83380400001)(81166007)(2906002)(478600001)(70586007)(70206006)(8676002)(6486002)(966005)(6512007)(186003)(26005)(40460700003)(82310400005)(336012)(4326008)(40480700001)(2616005)(316002)(6666004)(6506007)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 14:52:43.9001 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9bc19cb9-5505-45a0-ef2a-08db141b49e4 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5795 X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The 02/07/2023 09:21, Ronny Meeus via Libc-help wrote: > we recently did an upstep to glibc-2.35 (from glibc-2.34) and we > observed a substantial memory increase in 1 application. > Our embedded SW is running on Linux 4.1.52 on ARM CPUs and consists of > many applications. > > All apps, except 1, are consuming more or less the same amount of memory. > Note that these apps are executing a malloc_trim periodically (no clue > whether that has something to do with it). > For the problematic application (which is not executing malloc_trim), > the memory consumption increased from 250Mb to 300Mb, with the same > configuration. > > We did already a "pmap" of the both apps and the observation is that > there are a lot more (and bigger in size) anon pages allocated when > running 2.35. > The complete increase of 50Mb can be traced back to the increase of these pages. > > Can this be explained by one of the changes in 2.35? > We are not using any tuneables. the 2.35 development window was between 2021-08-01 and 2022-02-01. there were malloc changes, maybe the huge page support had some sideeffect: https://sourceware.org/git/?p=glibc.git;a=history;f=malloc;hb=refs/tags/glibc-2.35 you may have to bisect this.