From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Memory usage report Date: Fri, 18 Sep 2020 22:30:11 +0800 Message-ID: <87ft7f40p8.fsf@localhost> References: <87lfh8kyot.fsf@gnus.org> <83k0ws5hzt.fsf@gnu.org> <87h7rwkxtk.fsf@gnus.org> <83imcb61p7.fsf@gnu.org> <871rizl5mf.fsf@gnus.org> <83r1qz48h3.fsf@gnu.org> <871rizjogr.fsf@gnus.org> <83pn6j45rr.fsf@gnu.org> <87wo0ri6kz.fsf@gnus.org> <83o8m34433.fsf@gnu.org> <87imcb43e3.fsf@localhost> <83k0wr4222.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 18 16:34:52 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kJHTQ-0002U9-JN for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Sep 2020 16:34:52 +0200 Original-Received: from localhost ([::1]:44490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJHTP-0003Lx-L7 for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Sep 2020 10:34:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJHQ2-0000Zh-R6 for emacs-devel@gnu.org; Fri, 18 Sep 2020 10:31:22 -0400 Original-Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:52300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJHPy-0002Sm-HI; Fri, 18 Sep 2020 10:31:21 -0400 Original-Received: by mail-pj1-x1033.google.com with SMTP id bw23so427905pjb.2; Fri, 18 Sep 2020 07:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=46JIwwowZvGWLBSP/Bnx/TY2+qU/oXKgZI9DPL7KuGE=; b=ukSpodjAqE1QOjMTbiTaMpLp60lnHJWaC2majW9BCHFw1szkKy7121Zlt3UCHNMNCM zRcrginp1bvkVkf7XxyGPwy5okfvMdgpjWF2Aplk7h4et0Rf5XYWojo9AE4RGQX5d0h5 FX6WHPhdLX5RhRmdgdA7UyviAPHs0yFkpBQeTK8XvHzgaLxcXTMshw2XOm/3uIHo/G3Y XC4fctJwcZmOiZhP+WvPtgwLiuS3MosGfYYTqqq2MRdr4+I4nmjdxq/Rao8AI0sVeQxW 5iZZTtFxtHeKU2XUQKwv0J7Jsia0Wo2dLutWAtYZpgcYGWxSHtV8KC2eoFvGyzkZx68l +pxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=46JIwwowZvGWLBSP/Bnx/TY2+qU/oXKgZI9DPL7KuGE=; b=MquREFV40e9kFm8L4F7KiODTyqyCpbwKHYk5PHeTjUf10UbiBCmhV3i10lUrgquU6g s7a5IbzKWTQocJDHwkLoTEr9EylS5Ei/EZAI2BS18gITg0fh3sh1n8q8+Qm/JSzfnRLK RH6zNra/hozvhuH2umqED/3LlM4sdzB6quEbCbbkk/QO+DRUBMgPDW35De1t/kU9g3v4 XezXH7f4MSs1xK+2yNkVPi/8sszvm7otmPqEoc8hynkJk7x+Wobs89UjqtfcouW22rUn R7/Rfl/gXl6ZB8vBMLPMDEvVjmDgC8i1AqTdd6wQXlKg9RrwPHMvHBJH8XlXeqhyO1MG /J7g== X-Gm-Message-State: AOAM533Hc8au/IRUN6btoPbXP4PkNzxfeWlwlgKQPN6VEV8U31InMY1F bCZepaAJ44tuqxLWrFj2cmgBHxpKP/NW9FGA X-Google-Smtp-Source: ABdhPJwLcDWicfZUoV3eu1vn2ABKbLCOc+sao0pdK/UCajHmqrpEGX/1QYf7AZlI7VJz+8ChnVeVZg== X-Received: by 2002:a17:90a:e68f:: with SMTP id s15mr12719864pjy.79.1600439474224; Fri, 18 Sep 2020 07:31:14 -0700 (PDT) Original-Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id c24sm3640962pfd.24.2020.09.18.07.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 07:31:13 -0700 (PDT) In-Reply-To: <83k0wr4222.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1033.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256091 Archived-At: > Well, Lars basically said the same, but neither of you explain _why_ > would something like that be useful. Do tell, please. I have noticed that loading my org files increases my emacs memory from 3% (out of 8Gb) to around 7%. Later, the memory grows to around 13-20% (with most of memory reported by garbage-collect). I have no idea what causes it, but I suspect org eating the memory. Seeing how much memory is used by buffer-local variables in org buffers would help. Similarly, total memory consumption in variables from individual packages would be helpful to pinpoint why the memory usage is high. Best, Ihor Eli Zaretskii writes: >> From: Ihor Radchenko >> Date: Fri, 18 Sep 2020 21:32:04 +0800 >> Cc: emacs-devel@gnu.org >> >> > I guess I don't understand the utility of knowing, e.g., which Lisp >> > string in the current session is the longest one. What would you do >> > with such information? >> >> Knowing a buffer with largest total memory occupied by buffer-local >> variables might be useful. > > Well, Lars basically said the same, but neither of you explain _why_ > would something like that be useful. Do tell, please.