From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2080.outbound.protection.outlook.com [40.107.20.80]) by sourceware.org (Postfix) with ESMTPS id 599833858284 for ; Mon, 19 Dec 2022 14:08:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 599833858284 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=ipcePIrQt625/whz2AGxWr+P3wW0HXoExy5amgw5VWM=; b=KaQHfyPA6oC69FFhCW3cjWL+25191DlTLlWeNk8v7xxx41xVgqRP7gJsuSGN0ZEDDHZ4pXzHzqM/KuZVl7ej77Q681NqQeZnyF3LAr5cWt0ocaSfN6P0YRVQ5wIBltBfA1c/TWJwhzYHQP0ysWONNitE9NGnMPyieS9x6ADa5ZM= Received: from AM7PR03CA0010.eurprd03.prod.outlook.com (2603:10a6:20b:130::20) by AM9PR08MB6289.eurprd08.prod.outlook.com (2603:10a6:20b:2d7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.6; Mon, 19 Dec 2022 14:08:45 +0000 Received: from AM7EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:130:cafe::a3) by AM7PR03CA0010.outlook.office365.com (2603:10a6:20b:130::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.20 via Frontend Transport; Mon, 19 Dec 2022 14:08:39 +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 AM7EUR03FT060.mail.protection.outlook.com (100.127.140.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16 via Frontend Transport; Mon, 19 Dec 2022 14:08:38 +0000 Received: ("Tessian outbound 43b0faad5a68:v132"); Mon, 19 Dec 2022 14:08:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8f4ca451bd6def8f X-CR-MTA-TID: 64aa7808 Received: from b9c10f8322c5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EC49FCC9-7018-4056-B47B-8C0808009736.1; Mon, 19 Dec 2022 14:08:31 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b9c10f8322c5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 19 Dec 2022 14:08:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gcfh/qBF5JcSVSn0Yopq/1Dg7PaC+KyKi87o31SRDnB1YsYm0waehvdo9zoKdbDiIr7pRcm9yIAX52f0eH1IzP0FGFFo/sMw3Pjaust0O2ycBSkVeyDK3EIIQwSrriJKMiJeDj+o9bBBn+VGTMKwkRJPI10BnBtmIQ1fMvJxhEyLz/po67NcdEa2cqUUzFYPPRKfGXlvzkN74JmFeAwMF//FMbrETSGuFgrLdXsFFeEVQOWxXHvUoGKS9En15C0Ywd672IwKglPKZJvmkPbtY0PDvMMBgyaN62uiENjdtS1dUBp29kaTOVpNBhlzYwFnhRsZ/nVXe49ESoMkngPdJQ== 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=ipcePIrQt625/whz2AGxWr+P3wW0HXoExy5amgw5VWM=; b=JgfAnSafPK9M1/3PC5Pd3jE56nuzBDRonNtJ1W5+0ThenSEhtqm5m+5AG3QqH5OqNwXwAaKE88lmZIuog9rE59nJ3EIGxAbXsW/bVhS3IV5OJLY3uDi4JnAHG2RDkuNpj8pcR/7yTlS8ljS86d0bR0x/pIV1Fe1OwN3SIvGrBIcoAjBqPuyZCEmqqL067Hzs5c4hxtp6TzyZckz2vbquvz2k0Cb2JM9ngLHnptODOc4iELcTrWa4PNTd3KecIDIAaD1UDDXTHuHeO6BRENDlUm8sZRe135WgS0slLEu2BhWLxwaph4z7JlZ5rEBUAkvOFQ01Ku1j1R0y55q9A1g6/w== 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=ipcePIrQt625/whz2AGxWr+P3wW0HXoExy5amgw5VWM=; b=KaQHfyPA6oC69FFhCW3cjWL+25191DlTLlWeNk8v7xxx41xVgqRP7gJsuSGN0ZEDDHZ4pXzHzqM/KuZVl7ej77Q681NqQeZnyF3LAr5cWt0ocaSfN6P0YRVQ5wIBltBfA1c/TWJwhzYHQP0ysWONNitE9NGnMPyieS9x6ADa5ZM= 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 AM0PR08MB5347.eurprd08.prod.outlook.com (2603:10a6:208:17f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.6; Mon, 19 Dec 2022 14:08:27 +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.006; Mon, 19 Dec 2022 14:08:27 +0000 Message-ID: Date: Mon, 19 Dec 2022 14:08:27 +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 Content-Language: en-US To: Eli Zaretskii Cc: gdb-patches@sourceware.org References: <83h6xugc5v.fsf@gnu.org> <58b64bf8-90b6-d080-c060-d03761501199@arm.com> <83k02neezy.fsf@gnu.org> From: Luis Machado In-Reply-To: <83k02neezy.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0072.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::36) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AM0PR08MB5347:EE_|AM7EUR03FT060:EE_|AM9PR08MB6289:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f8f1d00-73dd-418b-852a-08dae1ca86d0 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: j62NW9YUqOOOwphmHNb6sKY/1W4/skNSNKJ/RJlPDsN9YqiRr+C3BD6jTUuXdwxXi+t76otggfefFLTZPT6hlNVQ5ZXGbrKJAANANRVsl0opPprdwcrpTXHROcd+hYzBoHfINZruoUidTeAMC/gHofx2XQDSrlY5Zmm4Odc8sIuH3qmzOt2VrVcTRbYQKf1n1YP4fFtn4oCAo0mQrAV7KRe0Gdpd06Z2ggLcVtWZZN6IC/AycLLWClbm5FMTzsauEmEtNzmk1so88a07hSXtUuKtLK2ZhSCk2k4Sr/CwBb4Zh8CXI4By6RwvuYZCaeGUwSFQY3X+MrMQrbvGsVZyqOQPtFORPEMrsf3/vY3sGreSnMriWGj+c6Qg0ougVZ0tfGD1FnobNYQT1LhKcIr1dQkCeaPdEsra9ql25tBfnMF3eYe2J/Mo5ar8wIq60PcOXS2Z8YynfhVZ8G85ON4jmnzbxA7rlECTEc+jj+eu8V00IY1Qs/dl2782uj6FLs7e9CwDYNv2Jyua7+MP2si00va4uOjiYSUeGOt2FuMAEeLtx5zIbWGsoSdejvp/haeF8mJyQRqlaRE/m3fIILsbhtlxD1fGCFY5EBtvZJJ8W0E3y3sMe+gEKOY2Z8HwOuLp6gIZ3OMqem7DzVajvkoPVVQBDX/L66xktjQ5l2NA/KSf6K9Onkjne/IS/rXaFdyA6+L9byn6LZLpPCTree6+dwQibiqSaDHHNNB7DO3f8KGnXV1n072wEY4yXN7Z90G1 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)(376002)(136003)(39860400002)(366004)(396003)(346002)(451199015)(31686004)(6486002)(478600001)(26005)(36756003)(6506007)(186003)(6512007)(5660300002)(38100700002)(53546011)(2616005)(66946007)(2906002)(41300700001)(316002)(6916009)(83380400001)(8676002)(4326008)(66476007)(44832011)(66556008)(8936002)(31696002)(86362001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5347 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: AM7EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 38cce393-fac0-48af-23e4-08dae1ca7f9c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8irE/2NvWiVe8eIXCnWfiFPFatcIkI+COSGeXi6VBYy659dN22JI3VptHWApqX1oGrdQx25bgX8lXd1OK79WzFOawkIBD/ETJh6ZTAZC8R+eK1746RNIET7HD8ykU0AnJvtTMZpb2ZmzK8a8zwiyXx68/ol4ys/2e9KvufQ0mRu4fNmEhBLXkwTYHJ1Vqey4HEofEuyq6hFxOrgjToA/Ov1RLtBNUV3MOKdDhJ72JgXB3hz/DWZAjCLFCc/ZxYnledYf8j//CwvCoo1+0UzFW6NNTWGomwEICySGUPSfJwlOBLO4Dh08ZOwqUcPVvdjKyDLP9vWl9taJB4l6gBissHerGaeUKZwZizYqiA+RAUR2XOMHEbP+6EjgSLSLNcNeXpGQkV+CoJEw576/jT0v6Pomg2a7a+mF/dz6zY0JnpyNw5dCio5sEtyYPE91C1vn7MFnG5oxpqj5mQxIrOSMzIeLkQejPhXOD4/3xULesOyPyEopT/1QYQUuHISIKl2b/pIjDCZvrrSSL8sdf1IaWPiMn/2vbe8A7kQ3iA7H7bJ+DcIpD0nZroh24J6DoPM1it0yOwmbalRf7AKAU2Jir80BZCXvOYkD9Inycwyo4XOKJfGLkqsLBN61va6tuVYhqY375Z1OIA3bqjdEQxU5Q3HvkZJhrN9tLW3YthaBCxwZVoFVtCTKsHjgb6FUD/+e8WZKX55J97xP4PHh20x/fXoX+CmSb+retvDPtJCv3hs= 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)(39860400002)(376002)(396003)(346002)(136003)(451199015)(46966006)(36840700001)(6506007)(6512007)(186003)(31696002)(26005)(83380400001)(36756003)(40480700001)(36860700001)(53546011)(82740400003)(82310400005)(336012)(81166007)(356005)(2616005)(86362001)(47076005)(44832011)(6862004)(2906002)(8936002)(5660300002)(316002)(70206006)(70586007)(4326008)(31686004)(6486002)(8676002)(478600001)(41300700001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2022 14:08:38.7333 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f8f1d00-73dd-418b-852a-08dae1ca86d0 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: AM7EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6289 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/19/22 12:48, Eli Zaretskii wrote: >> Date: Mon, 19 Dec 2022 10:07:27 +0000 >> From: Luis Machado >> >> On 12/17/22 17:42, Eli Zaretskii via Gdb-patches wrote: >>> Using the latest snapshot of GDB 13 (MinGW build on native Windows), I >>> see some strange behavior I've not seen with previous versions: >>> >>> . Very long time to read symbols. E.g., reading symbols of its own >>> binary takes a whopping 2 minutes. GDB 12.1 does the same in >>> under 10 seconds. >> >> There used to be a dwarf performance regression, but from looking at the bug (https://sourceware.org/bugzilla/show_bug.cgi?id=29105), it seems to be fixed. >> >> I'm not sure if it manifests differently on MinGW. > > This build is without std::thread. Maybe it's related? Well, if the worker threads are disabled and things are read by a single thread, that may explain some slowness. But I don't think it would be as slow as you describe. > > Does GDB 13 read DWARF debug info significantly differently than > previous versions? > > Do you see this on GNU/Linux, when debugging GDB with itself, if you > disable multithreaded DWARF reading? For a regular build of GDB 13 (threaded), I see a pretty quick startup (about 3.5 seconds) to start gdb within gdb. With a GDB 13 built with threading disabled, I see about 15 seconds to do the same. Now, I noticed -readnow doesn't seem to use the worker threads for reading symbols, so passing that option slow things down significantly, to the point it takes 2 minutes to read the symbols. I don't know if that's on purpose. > > Thanks.