From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: Emacs [scratch/igc 6682d0e6c96] crash on Linux 6.6.41 KDE 6.0.5, wayland Date: Tue, 03 Sep 2024 10:57:06 +0000 Message-ID: <87a5gp2ef5.fsf@protonmail.com> References: <87ikve2el4.fsf@protonmail.com> <2dbfa6b7-19c4-40e1-a094-2995261097ac@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: execvy@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 03 14:54:25 2024 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 1slT3B-0001tE-7S for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Sep 2024 14:54:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slT2g-0007ns-EV; Tue, 03 Sep 2024 08:53:54 -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 1slS6Q-00087A-GM for emacs-devel@gnu.org; Tue, 03 Sep 2024 07:53:42 -0400 Original-Received: from mail-41103.protonmail.ch ([185.70.41.103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slS6O-00008b-Nw for emacs-devel@gnu.org; Tue, 03 Sep 2024 07:53:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725361030; x=1725620230; bh=gpWV2xYQXINGOMi9HfAAWwN7liuHBUSMyDi8MpZges8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=boLP3YjYkvHQJpaqSp+cO1NnYZmoDv7D7fjoHkVKLzxxHEUnSrwNbxjKI+XnheHxJ FEspS/9JES8b0qcmiOjj4HWD2/BQJ0249xuGiKv79OOtdnwqFF3Z9SNzN+vZzhRSxT llEnqT1mCa3cHNd7xp8kxFOdDfB3z0x113GpIjyjf8p47HvdYvRFtSvkNJTPC2/eaO eJMSxO/cIJarKVq1rdmr+moWSyKHKOsBa7zmJ6zRn8+tk+yuiFyd1MvB2onX7R4uIw +VSVs+h0zue3i9sJ9av8sKBLEyuf6iCJKihSR/gsyevbDY+EILqs6l2NO7PDcNxUBp wd638R0OhE/Bw== In-Reply-To: <2dbfa6b7-19c4-40e1-a094-2995261097ac@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 7ee8083d79a02009d8bdba69346926cfe95ab229 Received-SPF: pass client-ip=185.70.41.103; envelope-from=pipcet@protonmail.com; helo=mail-41103.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 03 Sep 2024 08:53:51 -0400 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:323326 Archived-At: writes: > After I change `mps_gen_param_s gens[] =3D { { 128000, 0.8 }, { 5 * 12800= 0, 0.4 } };` > to `mps_gen_param_s gens[] =3D { { 12800000, 0.8 }, { 5 * 12800000, 0.4 }= };`, the Emacs never crash again. That's still a very large size for the initial generation, in particular. May I ask why you decided to do that? I think for interactive use, you want to keep the initial generation reasonably small. > And it's RES mem is 2661M, I think it's good, I'm editing 2000 rust files= in Emacs with rust-analyzer lsp server. 99% of time I don't feel GC's lag. > But, When I hit `Ctrl + right click`, I feel a very long GC lag ( > 10 se= conds). It's reproducible. Are we sure that it's GC causing this? I assume control + right click shows a buffer menu, so it builds a list of all buffers, and you have a lot of them... I've played around a little creating 10,000 buffers and showing the buffer menu, and there does appear to be some lag, but this is true both with and without MPS. I also tried a build with --with-x-toolkit=3Dno, and that seemed to have less lag. > So I profiler-start, then `Ctrl + right click`, then `profiler-stop`, got= : > ``` > 14726 58% Automatic GC > 10528 41% - help-command-error-confusable-suggestions > 10528 41% - debug > 10528 41% - recursive-edit > 391 1% - substitute-command-keys I cannot tell from this whether MPS was called once and took a very long time to run, or was called many times and the problem lies elsewhere. Does the problem happen with the default generation sizes? Pip