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: Indentation and gc Date: Mon, 13 Mar 2023 18:04:43 +0000 Message-ID: <87r0tsy1c4.fsf@localhost> References: <20230310110747.4hytasakomvdyf7i.ref@Ergus> <87a60k657y.fsf@web.de> <838rg4zmg9.fsf@gnu.org> <87ttys4dge.fsf@web.de> <83sfebyepp.fsf@gnu.org> <87ttyru4zt.fsf@web.de> <83fsabyb41.fsf@gnu.org> <87mt4jtpqf.fsf@web.de> <83ilf7wi48.fsf@gnu.org> <878rg3wh2f.fsf@localhost> <83cz5fwggd.fsf@gnu.org> <871qlvwg1s.fsf@localhost> <83a60jwf9l.fsf@gnu.org> <871qluuk3y.fsf@localhost> <831qluuj7e.fsf@gnu.org> <87v8j6t3i9.fsf@localhost> <83v8j6t2ib.fsf@gnu.org> <87zg8gbsch.fsf@localhost> <838rg0u0fd.fsf@gnu.org> <87wn3ky7rz.fsf@localhost> <831qlstwoi.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="20445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arne_bab@web.de, spacibba@aol.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 13 19:04:28 2023 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 1pbmX5-000532-Vw for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Mar 2023 19:04:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbmWA-0001fj-ES; Mon, 13 Mar 2023 14:03:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbmW7-0001fX-5l for emacs-devel@gnu.org; Mon, 13 Mar 2023 14:03:27 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbmW3-0002z1-BU for emacs-devel@gnu.org; Mon, 13 Mar 2023 14:03:25 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0924F24039D for ; Mon, 13 Mar 2023 19:03:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678730601; bh=F222r/NzW5KiqlsjTZ8/pIbEtF+TANFe786ouH11Byo=; h=From:To:Cc:Subject:Date:From; b=UT+1WrgwFVEtDXo5j6MgWDawh2NlbE446JuM0Z5LpnzgJ+UbZDu80tgi8hl7F7Kic ZnApBzcsZr9hWiLVNmtPXNdcTIRWCo4XNQt6s06eeiOQ0nZlip5NxDrKDQu5KjFvrh uydP6+JHVog+5Su6LCYFJQ4aQNiwdVffWqfmvsihcxKCDCqn0gu3gVfXVEzW4BvJtA 78fKiJE6OqHdjCnh/7oWrcCBo47LNsgcqSU7NJGBh6WlLCQAKU1Qrb95YVkzCpW4PK IB3IURhxiug+e+5+PoNyO4a4JrOf8dfFBoshkGtACXYoJ75JDCKUz16TULgu0YKMtg lPvvf6LiyUGJA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pb4Jk65wqz9rxL; Mon, 13 Mar 2023 19:03:18 +0100 (CET) In-Reply-To: <831qlstwoi.fsf@gnu.org> Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304413 Archived-At: Eli Zaretskii writes: >> Feel free to share the ideas on what else we could record there. > > I think we should start with that and add stuff as we go if needed. I am not sure. The package will require users to share the data manually. Asking for such activity more than once will generate less replies than a single ask. So, I'd prefer to carefully discuss first what exactly we want to know to decide about changing the thresholds. >> I mean the following output for "top" bash command >> >> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND >> 31838 yantar92 20 0 1843744 800648 121684 S 0.3 5.0 1:12.48 emacs >> >> VIRT is virtual memory and RES (or %MEM) is actually used. > > Ah, you mean RES. That's the "resident" part of the memory, i.e. what > the OS decided to keep in physical memory at this point; the rest is > swapped out. Basically, RES is not interesting, only the total > virtual memory of the process (VIRT) is, because that's what is > counted towards the total VM of the system. Although the complication > is that VIRT also includes the so-called "reserved" memory, which is > not necessarily in-use yet. This is a bit confusing then. From my experience, RES is often closer to the memory-report results. Moreover, VIRT can exceed Memory + Swap combined. For example, emacs -Q gives PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 28887 yantar92 20 0 187964 76440 46816 S 0.0 0.5 0:00.90 emacs 2234 yantar92 20 0 28.2g 686492 138972 S 0.0 4.3 29:45.66 QtWebEngineProc (also, note VIRT for QtWebEngineProc, while I only have Mem 2.7GiB used + Swap 4.2GiB used). Estimated Emacs Memory Usage 3.2 MiB Overall Object Memory Usage 2.2 MiB Memory Used By Global Variables 1.3 MiB Memory Used By Symbol Plists 370 KiB Reserved (But Unused) Object Memory 66 KiB Total Image Cache Size 21 KiB Total Buffer Memory Usage Object Storage 1.9 MiB Vectors 598 KiB Conses 492 KiB Strings 189 KiB Symbols 6.7 KiB Buffer-Objects 2.8 KiB Intervals 160 B Floats Largest Buffers 11 KiB *scratch* 3.2 KiB *Messages* 2.4 KiB *Echo Area 1* 1.7 KiB *Minibuf-1* 1.3 KiB *Memory Report* 1.2 KiB *Minibuf-0* 170 B *Echo Area 0* Largest Variables 273 KiB load-history 236 KiB obarray 156 KiB definition-prefixes 93 KiB global-map 80 KiB coding-system-alist 71 KiB input-method-alist 64 KiB color-name-rgb-alist 59 KiB language-info-alist 47 KiB face--new-frame-defaults 46 KiB easy-menu-converted-items-table 42 KiB key-translation-map 42 KiB x-colors 40 KiB comp-known-type-specifiers 38 KiB menu-bar-options-menu 34 KiB comp-known-func-cstr-h 31 KiB comp-loaded-comp-units-h 25 KiB comp-eln-to-el-h 22 KiB iso-transl-char-map 21 KiB comp-subr-list 20 KiB auto-mode-alist -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at