From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "ISHIKAWA,chiaki" Newsgroups: gmane.emacs.bugs Subject: bug#39413: 26.2; Emacs gets hung Date: Fri, 20 Aug 2021 10:56:35 +0900 Message-ID: References: <85r1ynam0x.fsf@gmail.com> <44e850a0-c8dc-4aec-5706-c52db33697a1@ubin.jp> <119c5df5-080e-c45b-6498-2a2bc0f8273b@yk.rim.or.jp> <83lfme232a.fsf@gnu.org> <0b9cd846-b9f5-8351-5f45-5614bbc644c0@ubin.jp> <87sgfojjmm.fsf@gmail.com> <87fsvhwacb.fsf@gnus.org> <83wnosdwyt.fsf@gnu.org> <277eef17-0241-7245-a801-dc3707c23e5b@yk.rim.or.jp> <838s17dtpa.fsf@gnu.org> <83v9458vwe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36237"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: chiaki.ishikawa@ubin.jp, larsi@gnus.org, 39413@debbugs.gnu.org, npostavs@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 20 03:57:13 2021 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 1mGtmS-0009E7-Tt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Aug 2021 03:57:12 +0200 Original-Received: from localhost ([::1]:55936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGtmQ-0006hp-QT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 21:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGtmI-0006cH-Cl for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 21:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGtmI-0001NT-32 for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 21:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGtmH-0004aU-Ve for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 21:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "ISHIKAWA,chiaki" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Aug 2021 01:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 39413-submit@debbugs.gnu.org id=B39413.162942460617613 (code B ref 39413); Fri, 20 Aug 2021 01:57:01 +0000 Original-Received: (at 39413) by debbugs.gnu.org; 20 Aug 2021 01:56:46 +0000 Original-Received: from localhost ([127.0.0.1]:32783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGtlz-0004Zw-32 for submit@debbugs.gnu.org; Thu, 19 Aug 2021 21:56:46 -0400 Original-Received: from mail101.siriuscloud.jp ([219.118.72.101]:58295 helo=mail01.SiriusCloud.jp) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGtlu-0004Zk-EM for 39413@debbugs.gnu.org; Thu, 19 Aug 2021 21:56:41 -0400 Original-Received: from [192.168.0.77] (M106073032161.v4.enabler.ne.jp [106.73.32.161]) (Authenticated sender: ishikawa@yk.rim.or.jp) by access01.SiriusCloud.jp (Postfix) with ESMTPA id 4GrPrM24lSz35v4rr; Fri, 20 Aug 2021 10:56:35 +0900 (JST) Authentication-Results: access01.SiriusCloud.jp; dkim=none; dkim-atps=neutral In-Reply-To: <83v9458vwe.fsf@gnu.org> 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:212247 Archived-At: On 2021/08/16 20:35, Eli Zaretskii wrote: >> Cc: larsi@gnus.org, npostavs@gmail.com, 39413@debbugs.gnu.org, >> chiaki.ishikawa@ubin.jp >> From: "ISHIKAWA,chiaki" >> Date: Mon, 16 Aug 2021 08:27:01 +0900 >> >> But if you look slightly above, you will notice CPU core #4 is used 100% >> (!). >> That is emacs process. No other process is running that earnestly at >> that moment. > If we believe everything these tools show us, maybe. But those tools > suffer from the same problem Emacs does on a busy system: the tool > itself might not get CPU to update its data, so you actually see a > snapshot of what it saw last time it did get CPU. > >> PS: I found profiler-cpu-* functions, but I don't think it is wise to >> run them during GC since they seem to allocate vector tables. However, >> taking a snapshot of strack trace every now and then during GC seems >> attractive for my investigation to figure out WHERE in GC, the excessive >> time is spent. > Emacs built-in profiling will not help us here, because it cannot > profile below Lisp primitives. > Very tough. I will see what I can do and report back if anything interesting shows up. (The last time I tried to see where the time was spent, GC was busy reclaiming |cons| cells. May not mean much. I can only recall the old paper and in an 16 GB environment (including OS),  we may see some bad behavior. " Address/memory management for a gigantic LISP environment or, GC considered harmful " by Jon L. White https://dl.acm.org/doi/abs/10.1145/800087.802797