From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2079.outbound.protection.outlook.com [40.107.247.79]) by sourceware.org (Postfix) with ESMTPS id 640ED3858D33 for ; Wed, 28 Dec 2022 12:36:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 640ED3858D33 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=o4GABBZ/hhutlMUhKzCZQuYaIj2J1rShuqrjQ0lpF+Q=; b=hMThOrZw1EmbJH2LjW0X0DInNgHag0B7XFqCrklekMS57hrtT9Pc5xqyrJYyI11Xp22/9b/F6zhPUclQUvTipZjiszcA//X6XvYAlOwpRX/P96KleK3l2KQC/vj+L1z9RjKIJGxDmMkHtTdxLDV9VfYrkGiXPDSU67jJUSyJdcY= Received: from AS9PR01CA0021.eurprd01.prod.exchangelabs.com (2603:10a6:20b:540::27) by AS4PR08MB8072.eurprd08.prod.outlook.com (2603:10a6:20b:58b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17; Wed, 28 Dec 2022 12:35:59 +0000 Received: from AM7EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:540:cafe::1) by AS9PR01CA0021.outlook.office365.com (2603:10a6:20b:540::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17 via Frontend Transport; Wed, 28 Dec 2022 12:35:59 +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 AM7EUR03FT040.mail.protection.outlook.com (100.127.140.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.17 via Frontend Transport; Wed, 28 Dec 2022 12:35:58 +0000 Received: ("Tessian outbound 6e565e48ed4a:v132"); Wed, 28 Dec 2022 12:35:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e40e8a07a6873f4a X-CR-MTA-TID: 64aa7808 Received: from d4a621b21ec7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 53B233EC-BB67-4A38-8507-B917CF763F65.1; Wed, 28 Dec 2022 12:35:51 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d4a621b21ec7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 28 Dec 2022 12:35:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T79GajMeJpW+wF/988zucMO7KjAqw+iSpUAFIDeP/l+X/wOK+aukOdBJi5+HyKUGmyUNlSvQfagrjuhjwCxDAnGQW17HjRJWwV07xof04/+r1OdtFbb/9Agy4tt9JfYObZZJY4XRKvmQV/DFZimHf8zVDguEBQe0VYErztdGpr7H5GqeDX/z8a714Y4YVGgOT4+GKzzseiCCjFk9yiVv3erGhR3Lp8/hdi8RXkoOffGEqkqQL9b6kgBKb+meQifnoE+vv5dLfezvZzU1f6SntNvJanwMEToHfCKnHxBObfcURVOSsZHO17qaMtuE38XEe3kAtZdZNlsfH70xVqUXkQ== 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=o4GABBZ/hhutlMUhKzCZQuYaIj2J1rShuqrjQ0lpF+Q=; b=H/YDJCDWRVgRlow2hIw15bRexsNGzWaxOsSTMXdjufXyyn2USNc95ebXrnorvvMvJ0mnZje3Fx38bUXkDUFqzFJEfg8atmVA8kngJGepzVu2VeeN5ojmHAKiOepVBk/QyVI7rQWfMcKEel8rKaSt9zPpVtL0x6Ywy1F8PblKYZbw3HoU0YQ4ruLjoPIgLbyWzk7/JkGLExp+Si1PoL7xnSSq+yQcp/2iX0b36dJmouvvNWT5mLIVNFZvy/TH+MQAi9olTJz3mt+iNU/475iHLF+UQUg8hCzr38+RnsTcwIhiA37cL81/hrFVvDYM56UPj4tZHqrT8xvr0L1qasYDTA== 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=o4GABBZ/hhutlMUhKzCZQuYaIj2J1rShuqrjQ0lpF+Q=; b=hMThOrZw1EmbJH2LjW0X0DInNgHag0B7XFqCrklekMS57hrtT9Pc5xqyrJYyI11Xp22/9b/F6zhPUclQUvTipZjiszcA//X6XvYAlOwpRX/P96KleK3l2KQC/vj+L1z9RjKIJGxDmMkHtTdxLDV9VfYrkGiXPDSU67jJUSyJdcY= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AS2PR08MB9618.eurprd08.prod.outlook.com (2603:10a6:20b:609::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17; Wed, 28 Dec 2022 12:35:43 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::eed7:25a3:e4ea:187a]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::eed7:25a3:e4ea:187a%7]) with mapi id 15.20.5944.013; Wed, 28 Dec 2022 12:35:43 +0000 Message-ID: Date: Wed, 28 Dec 2022 12:35:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Two observations using GDB 13 snapshot To: Eli Zaretskii , Tom Tromey Cc: gdb-patches@sourceware.org References: <83h6xugc5v.fsf@gnu.org> <58b64bf8-90b6-d080-c060-d03761501199@arm.com> <83k02neezy.fsf@gnu.org> <835ye7e9jw.fsf@gnu.org> <87h6xrks77.fsf@tromey.com> <83mt7idacj.fsf@gnu.org> <87fsd4elb2.fsf@tromey.com> <83o7rs4qmg.fsf@gnu.org> <87cz84dasj.fsf@tromey.com> <835ydw20bw.fsf@gnu.org> Content-Language: en-US From: Luis Machado In-Reply-To: <835ydw20bw.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0161.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c7::8) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS2PR08MB9618:EE_|AM7EUR03FT040:EE_|AS4PR08MB8072:EE_ X-MS-Office365-Filtering-Correlation-Id: 7561b1a4-9044-4ca4-c552-08dae8d01246 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: 0PD13GOUE6V76EPXlvXZ8Wz/CKa0/pNp+SNXx/Pwkgk3mOHogB2av/A4Fih+HJIEw7aVeb0Io37pMYZqfyxAuONkwqspPyMLqB8+Q4kPeyAawTpZqqmCRSryIxKBlXoEevkVZVLYPNBQTV01uoI/5/lEDHTzFE6kBZG4QGENdsbfaock2G2EWUpD2fWx5TZQkTzT7VTJMHPCy/7pY9ZwQ5JLUvYpdVcBi+zahBcj/zne1Sf/A5dxG61E9jd++mMjXLbWd0eCr3B4JNhgcJw4bOXJfCBheFAIXowugZ3/fg5KvSY7xb7brmD7VoQH+lvMOGvG6DS3EJOYNvOB2vhYFUje6QQFEteGQq/kQdXImVMtZnuOd6Vtf7AHNoBOqUUVKZBJZugUCFBLlmg/AOlHTpgKLCztrXizTx7xeK8pmWcOD7xIwWAU71lbZUMZ5pVkQxzy+f3uks8uYXCb47F3TMMtFRhQRwPWTHeam6Y8RLU/cf4kGOp5g+yLZ8G+Psq34iRMoRJ9lyfcDEmgompYKaJ/3hxUSOMQDWlhfTfu0xHn0gwU42veyhsaky+5/epYGwgVbkttaTdxHVVIAlbOOUl4Cb8DZFyb832SjVPIf9h20m6dv6oi1jIRvfxcx1zjpTKorR9nRL/Dr4MHD6nesvBw6fznQGX9K8VeVdOXUZnmvmOnb6BpyUl8EUwQ7mCIUnvk6AtCOB5UKtVKt1vLvNAe4WmZA0cp4bADjgx2GH4= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(366004)(136003)(39860400002)(346002)(376002)(451199015)(31696002)(38100700002)(86362001)(41300700001)(26005)(186003)(36756003)(6512007)(6486002)(5660300002)(8676002)(4326008)(44832011)(2616005)(66946007)(66476007)(66556008)(2906002)(110136005)(8936002)(316002)(31686004)(6506007)(478600001)(53546011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9618 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: AM7EUR03FT040.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: fc89bdd8-6e33-44a9-e7af-08dae8d008eb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OMfNFcE5bv+FZO3rTFAoRIXNZlnk2DLhQFeIld91lFCvuQAhaI7NoKd223C9FF3FwY72uBIrQs+MUbdaGvUvBhwO8AQZxyBf0Kn2suUcXKGg5w36K2wPuWpVykMAuuf+eO36xsw/ct5K1mVc7gIvq/SnjCrAcudBRKrrrpN1bXK8IuGq9giIP86huSLuiasZwUZFn53TG6+phd6ZvvRne5c8JbS3PtFfO3R1U5DDpSk5PGYxnU8615K7qSrdgEzv4turfhD5bu4WYhtenZdhrZKyotQO1BNs0+kZwD9jtgjUziY6aRWT2VKlUjBUrhIx+hY4HR94q5Wdd1pmh1ip2lcyGiLR7Ybv2NmHz1jhGMy7oxSqujBffLMqoe24RQ3QXlUjA9bipoctUmhJIHji2dRKsTRS5O9pzKAsg5WNWhoDBhRN+Y+IQ9R1lRZc6SFDRgt/XL1ncFoCImLeWH+ieJoGBwqsvV4dWspr4Fs3jdh5XxJBihPCD3a/KJtdxLMDPZ0MEDal5+lywdqUochAPHMERnRcNEwQp//PDDE+8OZadz2tLiwo25WZDbKxPN6wy+IHje2pdNpdS7qyol2iGjM2pu/EQIOC55XAG4r/HnlMqV+HoA9MnvdjFl6HV/k91V68rNaaBG0zjMD5+kBtHo5tMRt/5XIBYFxhRfyAXRYreCWyZrtgKGACepu+j3meJKf9BYTh7SpgDfxkK5H7XN8LLhGJeFzlCw+vlNG/cfM= 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:(13230022)(4636009)(136003)(376002)(346002)(39860400002)(396003)(451199015)(46966006)(36840700001)(40470700004)(26005)(6512007)(186003)(40480700001)(81166007)(356005)(53546011)(478600001)(6506007)(31696002)(86362001)(82310400005)(6486002)(316002)(36756003)(110136005)(41300700001)(31686004)(2906002)(8936002)(47076005)(44832011)(5660300002)(40460700003)(70206006)(70586007)(8676002)(4326008)(2616005)(36860700001)(336012)(82740400003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2022 12:35:58.3034 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7561b1a4-9044-4ca4-c552-08dae8d01246 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: AM7EUR03FT040.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8072 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,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: On 12/27/22 18:00, Eli Zaretskii wrote: >> From: Tom Tromey >> Cc: Tom Tromey , gdb-patches@sourceware.org, >> luis.machado@arm.com >> Date: Tue, 27 Dec 2022 10:19:24 -0700 >> >> Eli> All I'm interested in is to help you and others understand what could >> Eli> be the reason for slow reading of debug info at startup, so that it >> Eli> could be sped up at some point. >> >> Ok. I re-read the thread and I see that at the beginning you didn't >> mention -readnow. So, assuming that the -readnow stuff was a >> distraction... > > Right. When it was brought up, I thought -readnow was indicative of > what I see, but then you said it doesn't use the new DWARF reader > code, so it is not relevant. Sorry I brought -readnow up. I wasn't aware that mode didn't take advantage of the new DWARF reader. So it ended up causing some confusion. > >> The new indexer should not be significantly slower even when >> single-threaded. On my machine, if I "maint set worker-threads 0" and >> then use a -O2 build of gdb, it's about as fast as the system /bin/gdb >> (which uses the old code). >> >> Old: >> >> (gdb) file ./gdb >> [...] >> Command execution time: 2.408843 (cpu), 2.130013 (wall) >> >> New: >> >> (gdb) file ./gdb >> [...] >> Command execution time: 2.858222 (cpu), 2.865426 (wall) >> >> This is only slightly worse. > > My numbers are very different: > > . with GDB-12.1: elapsed: 8.39 sec, CPU: 6.25 sec > . with gdb-13.0.50.20221217-git: elapsed: 135.8 sec, CPU: 130.5 sec > > No significant difference in memory consumption: 453MB for GDB 12.1, > 441MB for GDB 13. > > (Interestingly, when reading symbols from Emacs on the same system, > the times are almost identical: 2.593 for GDB 12 vs 2.671 for GDB 13.) > > Other details which might be important: > > GCC 9.2.0 > Binutils 2.39 > GDB compilation switches: -O2 -gdwarf-4 -g3 > > And one more thing: this is a native 32-bit Windows build of GDB, so > it has DWARF2 info in PE-COFF file, not in ELF. Maybe this could > explain the difference? Or maybe the C++ code is a factor? > > Thanks.