Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp61936lqc; Thu, 29 Feb 2024 10:17:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVIFJsTkU+Os5LiiZJ4kvSQcM2KualZIYuYlZm2fbQQuCJlBhkC+uKVlXJF1jv4fhpwgdp6RQl4oPAyd45BXCdvHTM8C03c2CTe/XvkYQ== X-Google-Smtp-Source: AGHT+IHFt0yQI3MfzKiGUn9GAAqO8TyAeavhpqA6YNeS+TnBW+a/t14gY5lBGmr9gCex5PiTRGaX X-Received: by 2002:a05:6808:3a0b:b0:3c1:c912:90a2 with SMTP id gr11-20020a0568083a0b00b003c1c91290a2mr2532225oib.1.1709230635766; Thu, 29 Feb 2024 10:17:15 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j10-20020a056a00234a00b006e05cb39617si1854715pfj.116.2024.02.29.10.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:17:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=TuAnxGh2; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-87264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com 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 C750B282E49 for ; Thu, 29 Feb 2024 18:16:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FEF77A12E; Thu, 29 Feb 2024 18:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="TuAnxGh2" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2057.outbound.protection.outlook.com [40.107.93.57]) (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 A60E43612E; Thu, 29 Feb 2024 18:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.57 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230596; cv=fail; b=J4WA9rvgzER4zpBXsnimSIXZFvHeynVZTYwyTKBVHd88+Z7reByR4QB0MkgzM5hOmywPLo9NsMmZiO0k8jZA/j1eiBj7N+luxAmkHN5I7chc+dsm3QRCzUmMRDboCuGOApy+f440p5BkAIXc0AYpFAHjPHRoq861loOWAH7gnCo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230596; c=relaxed/simple; bh=N5vLpdRP6KkXNaoD8Sf2j5und+8KQ4Fu6kM50k5bxGs=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=BJP2nLZNXMe20ueFJCbURL1REFOn+rgHX2aK3VLee42G1CE2QAvtr2En9S1WRZvAC8xxBJ23ZQ/6s7P53EloQtbJ00/lt/TjExiqbsLY2DBdxOemd0xk6+ENtGPb5jMxtFqoB1cYZzO5QZgFGUSeOQdk1cKbdwg/tzfFTX+d678= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=TuAnxGh2; arc=fail smtp.client-ip=40.107.93.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jSq3uaGaopB3b/XXB+kqu13xPYTUdpQQkK1EyCU7lJJvViaQt0K8Y04/bQJS/FyDgXZ/vh0NoO6lMOOE8N5fhwwTFmSPBCr7v3GgmTJReAhCTY89RtR46LNOTX45fe1rz/HO13k54BlTR3Y/9dEjszLIulh7bpqJfhnbG4t3VioeL7eH6rP0F6uHr0PevzAFJSYu6Nn0uHwsDXdRAtAGLdyK9p4nki/oC7wlTWg112vgH+li9qweaSvuKPEnw1QCohOYW2u45xioObJLrDnUnVknai0KUQJatrMFVZDlqY3CJzG5oFyJ4EfeuMlfieWeNdhWxqJXaA/MGN4FFsIuUw== 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=sEO0KVT3IgM3+d6YYeHW0lcQptgN2LfLd0x+2bYGoj0=; b=N6zuNifLZPywEoR3l9v41COJpAWWfiLpQrtHS9NvXMpKGZgM31iWtNfmyDZ0hw+aIPMMY6T1GMrKwuNPrQqP6MqgF3PcSeZMtt/7KkKkpgVk9tPZLqkEzXhR6o3zq/30ndrplWLnLig51HcvZTVtp+tKN2lSO00aTR7jDUjToRpNBgryvLXfSLMQqKwEezECPvgd2WLf6GsxANPJS0fxUOYgJSup+dhTyXaFfOvy060GpXcPFrLasRtNhxV3x81c7nxCAiKVJgzgBVikIvIv+t6+X9goB3n9V2XCmCyZhHZphD+eDTx57/YO/XUIBlrCp/6ztZpf9RkV3ovDUHVPRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sEO0KVT3IgM3+d6YYeHW0lcQptgN2LfLd0x+2bYGoj0=; b=TuAnxGh2ULqH1AC/Plp4bSi6M0NPTnrbOuzzfopvvd34zPRd0IbW6ovwqNv6bZAhNbOrlittD4UiS4el9KDAR9uQ9dek66HhTq/cWDJCt6gUJUCdySO91q3Py0i8J7x1HQRjOi4Yl8G69DjpgAPIX+TO0KZAneEqfIWpvo1E2SIqHpIeFJ6AP0H8htg9cLynkQwfN51BkNQWQ/o/93MXLZiqdmPjNuwjF4RrscAW5kHxkz1tFX1gnc8I5wrSBBcG/k6y7Pkknxr/yEy7rFpsL6t+c9Qe92Y7+fl7GaCtsXEMOHGERkN9OHfmKsi/OXLV1LDKpUIhauAirGVXnunXog== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB4140.namprd12.prod.outlook.com (2603:10b6:5:221::13) by DM4PR12MB6496.namprd12.prod.outlook.com (2603:10b6:8:bd::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Thu, 29 Feb 2024 18:16:29 +0000 Received: from DM6PR12MB4140.namprd12.prod.outlook.com ([fe80::6848:122d:93ad:24c]) by DM6PR12MB4140.namprd12.prod.outlook.com ([fe80::6848:122d:93ad:24c%6]) with mapi id 15.20.7316.039; Thu, 29 Feb 2024 18:16:29 +0000 Message-ID: Date: Thu, 29 Feb 2024 10:15:23 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fix linux kernel BTF builds: increase max percpu variables by 10x Content-Language: en-US To: Alan Maguire , Jiri Olsa Cc: Arnaldo Carvalho de Melo , Alexei Starovoitov , bpf@vger.kernel.org, LKML , dwarves@vger.kernel.org References: <20240228032142.396719-1-jhubbard@nvidia.com> <856564cf-fba4-4473-bfa9-e9b03115abd1@oracle.com> <983b98db-79c0-4178-b88f-61f39d147cf7@nvidia.com> <34157878-c480-44bb-91d6-9024da329998@oracle.com> From: John Hubbard In-Reply-To: <34157878-c480-44bb-91d6-9024da329998@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR13CA0070.namprd13.prod.outlook.com (2603:10b6:a03:2c4::15) To DM6PR12MB4140.namprd12.prod.outlook.com (2603:10b6:5:221::13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB4140:EE_|DM4PR12MB6496:EE_ X-MS-Office365-Filtering-Correlation-Id: aa29883e-45d9-468a-f510-08dc39528c9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /CsjFyDfoD8hANedOWVf6ibmo90aaXuxOWtZg5ldAg4q5k/uv92aVRUl0XU+I3TqR0+3AH5u/HIw/H+6lq2t8VuQwGDr3m3ay224vpKH3sRm3ZA9ZLPBOvC8NYo+HVvyYXxjQUFUbGeVEdLXJsRvNrcYRJDv9Zmimi9ALVwzqYfBK8HvO1vUCf2gy9321fx0VrKdplrbHZrX9Qd1NX2LgWdZhso3d9P6n+ftMfplj9LPPaoo3pKgHepaZ1h2m/XcP+bLv3VFePHzvYsRxnw0TBXVY65rdyhFoBJbgj7eQZA4Y69dRy2//Z2VAKawjleAU8CBTIBxeZks/1nCxjsdVdx4hEpFy0yDKQLKYUAUfBISEuLhq5FXi/tMafYHeAwF+8Lc4TffmGb7WSGDSL+u1vitxiu2CAlLkOTP3siRgbOU8Aa8x0fbAAALckrMm8cQUn8LC4xyIklXcYbfKGNtnsXVz+FMeKpYtVxYx7BdFERki6rBprqGkUwWTSliyJXmeULRaekNmYMeM5FCAiqx96TQcT/395ElWVKds3lGUty8NLa1T4osqoVeu5sr6jcODr8BDrQtnewdfGcpSxzXb73miLRvgM/16GW6qxKNp89h4D6P9MVZZxQ7gAcrmib0OfsLrOIj1exgYu4MweUpfQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4140.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OXdpU2pYVFQ1YTBkbForSUhHVlp0cHVhcVBrZ0VlQ3NxdFRqSnhJWjBReGxZ?= =?utf-8?B?TWpHdlE0N3drZGtqK0dBZXhqSEV2eUVNVGdCaXlBVXQzOE1oRzRVcUVOVlN1?= =?utf-8?B?RWw5MXAxak5LQXdEWEpWWE43d3dTUHFFYzNVNGFLQkJnWTlMU3dMTUFudHNt?= =?utf-8?B?TTNpVGxQZTJHMmJwb2FBMk5OZm80OUZoTWRtOXJVVW1CNFFkOHQrWnNDQ1VJ?= =?utf-8?B?cnpYZEZQbFlLUWRzZ1JFMUZvd0R0cm93c04ydUdTa2JYMk5uSDNwVkpQd2JK?= =?utf-8?B?QW9INHJxYXpUaXBxV1YxdTA4TUJncnNDNTRCV3lRTXAxcnB6MldycUdGQkht?= =?utf-8?B?Q3NmMjFsTm01UUNkeGZNUk9HMWMxTjBRY1NhbU5mYnRXNTNjNFliVHN3MGhy?= =?utf-8?B?d2Rqc2poOEwxYUd6SDFRVEVwSDFqSHZIWj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08dc39528c9a X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4140.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 18:16:29.0415 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: f+DpI3CDQ/nkskHjg5RkH7oKeNvJspyc+5IIeUNYh/u/egRjLfknPU6P4dru+xTMX4vN4zBtYCQ7KhcsJ1cXPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6496 > ... > Running > > bpftool btf dump file vmlinux |grep "] VAR" > $ bpftool btf dump file vmlinux |grep "] VAR" | wc -l 4852 $ bpftool btf dump file vmlinux |grep "] VAR" | tail -5 [136994] VAR '_alloc_tag_cntr.9' type_id=703, linkage=static [137003] VAR '_alloc_tag_cntr.5' type_id=703, linkage=static [137004] VAR '_alloc_tag_cntr.7' type_id=703, linkage=static [137005] VAR '_alloc_tag_cntr.17' type_id=703, linkage=static [137018] VAR '_alloc_tag_cntr.14' type_id=703, linkage=static > ...should give us a sense of what's going on. I only see 375 per-cpu > variables when I do this so maybe there's something > kernel-config-specific that might explain why you have so many more? Yes, as mentioned earlier, this is specifically due to the .config. The .config is a huge distro configuration that has a lot of modules enabled. thanks, -- John Hubbard NVIDIA