From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56260 invoked by alias); 29 Oct 2019 20:22:27 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 56242 invoked by uid 89); 29 Oct 2019 20:22:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-15.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative X-Spam-Status: No, score=-15.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: mx0a-0010f301.pphosted.com Received: from mx0a-0010f301.pphosted.com (HELO mx0a-0010f301.pphosted.com) (148.163.149.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 Oct 2019 20:22:18 +0000 Received: from pps.filterd (m0102855.ppops.net [127.0.0.1]) by mx0b-0010f301.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9TKKwXC031073; Tue, 29 Oct 2019 15:22:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rice.edu; h=date : from : subject : to : cc : message-id : in-reply-to : references : mime-version : content-type; s=ricemail; bh=i8PGcB+sRpwfXqmPEKNCZwP18Rvob4Ihblahb6FX08Q=; b=Rr1X/dBNA2bvbzb+vskfKE2NxNR62kP9BBS9S8Oqzq8Xf7cIuIDsaiXR9CZwzTcz/575 h/XywJ6Sf03GMQBwCZGlNNMJgnvZ+vj3mk2a1O0hWyQOsvIG6ioeUZfW2jlDmoAYzXzd 88oehRlKMTGBtt+gGQSmLGA0fv9L9XrP1XUyMTdwgXIlZCmR2NohWw4j7BnxifPmwlM1 VvVdx+FWFOtWwZsDuMONeQnPV7TylZde9sO50tCqKN08lhn5BWbYcQfJsmt2IMpcDIx5 OHooIks0St84aJVqqUn3qJyKSbZq4ZyxlvjfA3xFfglZqEd6mAeT2+dBiPh240SYGGQ5 Qg== Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by mx0b-0010f301.pphosted.com with ESMTP id 2vvkf7bugm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Oct 2019 15:22:03 -0500 Received-X: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id 53394401B1; Tue, 29 Oct 2019 15:22:01 -0500 (CDT) Received-X: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id 521A0401A6; Tue, 29 Oct 2019 15:22:01 -0500 (CDT) X-Virus-Scanned: by amavis-2.7.0 at mh3.mail.rice.edu, auth channel Received-X: from mh3.mail.rice.edu ([127.0.0.1]) by mh3.mail.rice.edu (mh3.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id 9vPLs4tTplEG; Tue, 29 Oct 2019 15:22:01 -0500 (CDT) Received: from cslinux29.cs.rice.edu (cslinux29.cs.rice.edu [168.7.116.104]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jma14) by mh3.mail.rice.edu (Postfix) with ESMTPSA id 269A940188; Tue, 29 Oct 2019 15:22:01 -0500 (CDT) Date: Tue, 29 Oct 2019 20:22:00 -0000 From: Jonathon Anderson Subject: Re: [PATCH 0/2] libdw: Rewrite the memory handler to be more robust To: Mark Wielaard Cc: elfutils-devel@sourceware.org Message-Id: <1572380520.19948.0@rice.edu> In-Reply-To: <20191029201742.GG2775@wildebeest.org> References: <1572375325.2128.1@rice.edu> <20191029201742.GG2775@wildebeest.org> X-Mailer: geary/3.34.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-29_05:2019-10-28,2019-10-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=920 phishscore=0 adultscore=0 spamscore=0 impostorscore=0 bulkscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910290176 Content-Type: text/plain; charset=us-ascii; format=flowed X-SW-Source: 2019-q4/txt/msg00076.txt.bz2 ...Drat, I thought I had it this time. Oh well, sorry to make a mess again. The following changes since commit 6f447ef7f0c5000e88d11312c06df9d5021d4ecd: libdwfl: don't bother freeing frames outside of dwfl_thread_getframes (2019-10-29 17:48:05 +0100) are available in the Git repository at: libdw-mem-pr-v2 for you to fetch changes up to 6813732e29766afbe9c1763a5d397f1f51a633d6: libdw: Rewrite the memory handler to be more robust. (2019-10-29 13:35:33 -0500) ---------------------------------------------------------------- Jonathon Anderson (2): Add configure options for Valgrind annotations. libdw: Rewrite the memory handler to be more robust. ChangeLog | 5 +++++ configure.ac | 30 ++++++++++++++++++++++++++++++ lib/atomics.h | 2 ++ libdw/ChangeLog | 9 +++++++++ libdw/dwarf_begin_elf.c | 7 ++++--- libdw/dwarf_end.c | 24 +++++++++++++----------- libdw/libdwP.h | 67 ++++++++++++++++++++++++++++++++----------------------------------- libdw/libdw_alloc.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 8 files changed, 160 insertions(+), 53 deletions(-) On Tue, Oct 29, 2019 at 21:17, Mark Wielaard wrote: > Hi Jonathon, > > On Tue, Oct 29, 2019 at 01:55:25PM -0500, Jonathon Anderson wrote: >> This is (revived and rebased) version of the libdw memory manager >> that isn't >> affected by the PTHREAD_KEYS_MAX limit. There are some downsides, in >> particular if an application spawns many short-lived threads that >> all touch >> a Dwarf (enough to cause an allocation), there's about ~8N bytes of >> memory >> overhead. > > Thanks. But it looks like your mail client munged the patches a bit > making it a bit tricky to apply. Could you resent them using git > send-email or do you have some public repo I could get them from? > > Thanks, > > Mark