From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos O'Donell Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Wed, 25 Nov 2020 14:01:32 -0500 Organization: Red Hat Message-ID: <930a2c1c-b44d-eb25-29f2-63f6d2def7df@redhat.com> References: <83y2j0qb2v.fsf@gnu.org> <831rgppg3w.fsf@gnu.org> <83zh3czbvz.fsf@gnu.org> <83blfovzxz.fsf@gnu.org> <87o8jnu5f2.fsf@mail.trevorbentley.com> <83o8jmu49z.fsf@gnu.org> <522e3cc0-c563-3308-7264-1b09cd5e264b@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12018"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, michael_heerdegen@web.de, Trevor Bentley To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 25 20:02:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ki03Q-0002yF-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 20:02:12 +0100 Original-Received: from localhost ([::1]:55692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ki03P-0008MS-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 14:02:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ki03G-0008M6-9d for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 14:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ki03G-0006Go-27 for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 14:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ki03G-0006J8-02 for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 14:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carlos O'Donell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Nov 2020 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43389 X-GNU-PR-Package: emacs Original-Received: via spool by 43389-submit@debbugs.gnu.org id=B43389.160633090724227 (code B ref 43389); Wed, 25 Nov 2020 19:02:01 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 25 Nov 2020 19:01:47 +0000 Original-Received: from localhost ([127.0.0.1]:36998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ki031-0006Ig-7g for submit@debbugs.gnu.org; Wed, 25 Nov 2020 14:01:47 -0500 Original-Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:60295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ki02z-0006IZ-BZ for 43389@debbugs.gnu.org; Wed, 25 Nov 2020 14:01:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606330905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N1jK98DhEACsiMG51D1xJwGcIgu2uh2Rx/JWgxCooNg=; b=UWm6y66GsRzhQsrImnxDjKFKvi9i/3PwKWB3y69d0sR70hdGHHlnkHjtZBRz2Q65G7osHd fQe+/hXIgpWniTIkVCCDHpsqR56/KQHyRd2jC61o2cwNElB7oSxui4A7k2qye2xLpSNuhC t6iSt1sJP1rTkBZRdE/Rj5e55DW4Z10= Original-Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-502-EtDci-XpNO-zjQqzIy2KAA-1; Wed, 25 Nov 2020 14:01:40 -0500 X-MC-Unique: EtDci-XpNO-zjQqzIy2KAA-1 Original-Received: by mail-qt1-f199.google.com with SMTP id g12so3137315qtc.15 for <43389@debbugs.gnu.org>; Wed, 25 Nov 2020 11:01:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=N1jK98DhEACsiMG51D1xJwGcIgu2uh2Rx/JWgxCooNg=; b=plWpGjZRXCBcz574cUbv8o+KiAlMb1g5Coud6igc3n0G6e1M28V8e8Yg3egkBMvz1B 53v9N3GQV4L0SPtqMz/TKAQykbXNJCuiL8IxMPc9OULWN1rPiI9dvVDZ5CM5ZUPpjXrD Z+FgMa654vd657x/viZtyohS7DboBmKA5foKK3o30Em7af7FEUW90SBk7nT46VbqsZqx d0KCHETqMbOv9iQvp+P4z9WL47zcWEueqkWadiqBd/A8yKH1P/W/ojjuispq2XRP9N8M 57rIVDXISAP6s9wni9Pth9owMnl/5tCb79fuOpGf0P/g3cLolBVgEWhMyVUSFAHjXnzL Dqeg== X-Gm-Message-State: AOAM530cAVK4PtBLuZtFqVPCg7ZQsR6vdab8I3yhEmek+I45a4bULP2t AwbH3DbhVuPzN5s6KnKG5JyUsr0WamjvvcduJBh+jAxL9yuqWdnK6dnP98jgckvmXe42g36plkI hrdGZPsP1qFk5CQA= X-Received: by 2002:a05:620a:1196:: with SMTP id b22mr303349qkk.31.1606330900431; Wed, 25 Nov 2020 11:01:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHLOF71VoBGkV+LBmZ6z8MMLD8ePZhMcd+qXIX9ouFnmGd0KmjVMeU/PJiXogxNaCw1szteA== X-Received: by 2002:a05:620a:1196:: with SMTP id b22mr303326qkk.31.1606330900243; Wed, 25 Nov 2020 11:01:40 -0800 (PST) Original-Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id a42sm195933qtk.64.2020.11.25.11.01.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Nov 2020 11:01:39 -0800 (PST) In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=carlos@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194224 Archived-At: On 11/25/20 1:08 PM, Jean Louis wrote: > * Carlos O'Donell [2020-11-25 20:45]: >> With glibc-malloc-trace-utils you can try to do that with: >> >> LD_PRELOAD=libmtrace.so \ >> MTRACE_CTL_FILE=/home/user/app.mtr \ >> MTRACE_CTL_BACKTRACE=1 \ >> ./app >> >> This will use libgcc's unwinder to get a copy of the malloc caller >> address and then we'll have to decode that based on a >> /proc/self/maps. > > I will also try that in the next session. > > One problem I have here is that since I run this session I have not > get any problem. My uptime is over 2 days, I have not changed my > habbits of work within Emacs and my swap remains under 200 MB and only > 10% memory used by Emacs, normally 80-90% > > Almost by the rule I could not run longer than 1 day until I would get > swap of about 3 GB - 4 GB and not responsive Emacs. > > Can it be that libmtrace.so could prevent something happening what is > normally happening? It could. If there are timing sensitivities to this issue then it might be sufficiently perturbed that it doesn't reproduce. The above backtracing is expensive and increases the performance impact. However, given that we want to know who the caller was and determine the source of the 4.2GiB allocations... we need to try capture that information. -- Cheers, Carlos.