From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kQY7H3gesWocRiwAWB0awg (envelope-from ) for ; Mon, 21 Sep 2026 08:09:28 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=XZge2iTR; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 77F301E051; Mon, 21 Sep 2026 08:09:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6542B1E01F for ; Mon, 21 Sep 2026 08:09:27 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE00E4BA23FB for ; Mon, 21 Sep 2026 12:09:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE00E4BA23FB Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=XZge2iTR Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id C720B4BA2E22 for ; Mon, 21 Sep 2026 12:08:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C720B4BA2E22 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C720B4BA2E22 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789992538; cv=none; b=SZ+7Ol68S06r5pljm9mZ6vlDbNOEli1awn6WP85ghPBsVYNPbFK5qIghjeS4YIS8tym2VTISETL7yUoIF5YKna7g/yz3UkjC+kxC0FaW4CPWD5cbcwls//wulpPrUHv+0JJOutG4D2Ew0DI3YYa4YyDcbbpSiIrMad/lVC1p6qQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789992538; c=relaxed/simple; bh=whYbDGQqey2flBErpxqiJwNYKQZsz9GJKV6XlNRdLOw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=uROdcGRsycbLoXX5WzaLJ+rWOOCPxr1BadVxMaj8AU0y9xAODnUOYb8rupZq8cYifAGu7ic8G8B2rXNKUU/hnGRkNGFlGVUhHQ0RqkJ7UPkZDTS5vrhWYR5Xb1RaThdnhLUvuxaHpxnElpfMNdHcLImdSJrWxczJr/7LKAk12ZU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=XZge2iTR DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C720B4BA2E22 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id C50D4ED715; Mon, 21 Sep 2026 14:08:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:references :in-reply-to:subject:subject:from:from:received:received; s= 20200306; t=1789992535; bh=whYbDGQqey2flBErpxqiJwNYKQZsz9GJKV6Xl NRdLOw=; b=XZge2iTR6c4pYVr6iHMUhTfGzGNVJXgWYjyjO4WsnxRaCBI2nMS6z 76tRmGQ4wOlNGWJeMXafGMVRKpEvIAWddipf4fTYZFG9qVnphu3klpXG6veushrD 7/2/DztJCDtRDCDiYFwIXzlEktJMmg/E6DZXvvlvPCIPPr+yIkB2L41KIHJLdSuU cOlNR1ptmlCzHP5HjxAekkb1xoMPM1uVm3vgciNNd0psBGVKSyne3T7ojUFZs5Yw nCBPNsFWj4X6QoJ6P+Zh7CzPLVI+RE2GNtr7tCOSdpdD867Yws5pzQZ3Wu+LbjGm SKrclOlfCZmcky8sfI28tgLI5DLD2xUOA== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5dngZ0CYpvjO; Mon, 21 Sep 2026 14:08:55 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50855f04.dip0.t-ipconnect.de [80.133.95.4]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 810F3ED538; Mon, 21 Sep 2026 14:08:55 +0200 (CEST) From: Rainer Orth To: Andrew Burgess Cc: gdb-patches@sourceware.org, Simon Marchi Subject: Re: [PATCH] Reduce gdb.base/many-headers.c iterations on Solaris [PR34555] In-Reply-To: <87o6dqamov.fsf@redhat.com> (Andrew Burgess's message of "Mon, 21 Sep 2026 12:06:08 +0100") References: <87o6dqamov.fsf@redhat.com> Date: Mon, 21 Sep 2026 14:08:55 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi Andrew, > Rainer Orth writes: > >> As detailed in PR corefiles/34555, when reading the core file in the >> gdb.base/many-headers.exp test, gdb consumes excessive amounts of memory >> on Solaris. If left unchecked, e.g. with ulimit -Sv 8388608, the test >> will consume all available swap space. Since Solaris doesn't do lazy >> allocation, this will cause the system to become unusably slow. >> >> To avoid this, this patch reduces the iteration count by a factor of 100. >> >> Tested on sparcv9-sun-solaris2.11, x86_64-pc-solaris2.11, and >> x86_64-pc-linux-gnu. >> >> Ok for trunk and the gdb-18 branch? >> >> >> AFAICT, the issue is purely in gdb's Solaris corefile reader, which >> seems to need a complete rewrite rather than a couple of bugfixes. > > Hi Rainer, > > How would you feel about the patch below being pushed? > > This skips the gdb.base/many-headers.exp test on Solaris. This should > prevent the memory exhaustion issues you are hitting, while not changing > the underlying purpose of the test. I'm perfectly fine with that as I'd already indicated when you first suggested something similar: https://sourceware.org/pipermail/gdb-patches/2026-September/230180.html Thanks for following up on this: I'm currently pretty swamped... Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University