From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eval EXEC Newsgroups: gmane.emacs.devel Subject: Re: Emacs [scratch/igc 6682d0e6c96] crash on Linux 6.6.41 KDE 6.0.5, wayland Date: Mon, 2 Sep 2024 21:08:59 +0800 Message-ID: <3207c88f-5bc0-4d1a-b72d-684a10ee1d2c@gmail.com> References: <86h6ay8ate.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------mkd08DWQFXAuXGUMKkRRRbGE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31690"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 02 15:39:36 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 1sl7HM-0008A8-Eu for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 15:39:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl7Gp-0002bo-D1; Mon, 02 Sep 2024 09:39:03 -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 1sl6nq-0004Ih-PF for emacs-devel@gnu.org; Mon, 02 Sep 2024 09:09:06 -0400 Original-Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl6np-0004zX-4c; Mon, 02 Sep 2024 09:09:06 -0400 Original-Received: by mail-pg1-x541.google.com with SMTP id 41be03b00d2f7-7cb3db0932cso3153137a12.1; Mon, 02 Sep 2024 06:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725282543; x=1725887343; darn=gnu.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=TWsy+k+ikPauLHD43hsLmyRfQlI3syQaXV/w10/VvQ0=; b=YSeuGDGJyNNW7SefbqsJBORWHU0tQsdmhlVSdlfkLn5LQUx1zw9QeypDNDTMYwbnTN EFV9lG5WHwR3NnFe8o0pU+PtWkrqycOZf/dyCECfSOScRvdjfuNoMd3z6MR2DmDC+Qcx Z6b+60SdpASfUB3BPRZQB+/97GSSfIe+bl+zAV/b+nFcghdH7/L7kwec8KFnUeIcIg4b KHnXjdSVmGteb0DrwTVHBzrN4B/iPsO3sVbd3WoaPpxzEJaalZTos6UzBh1ijiBb9ers O788JAjH42Xni89uQZ+r2Ki327PR6FZ8vhf/7K7YwkEMA+nsU+hzIcGy9EyUUubkAwbg kN6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725282543; x=1725887343; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=TWsy+k+ikPauLHD43hsLmyRfQlI3syQaXV/w10/VvQ0=; b=elFaLqv4bLkgbxjza4tTcuRKrqS664skmP66U+T9B80xloXWlmW0wJSHjTjOHynWpr zT5vg1ov7lM9vZ/EA0XGFsRK32LTWkfXoqKbw0V2k9Kjt5iR/P8Eh55aXENEG6fWS8Lx CaSnyv/Le7gH2vFK5iKsSZ9+a7Uquds5qgGZ6VK1kN4loMK7gtsUPsVvvU8bWVvyllPe OvFhIdeYuJny+DBTPKHwVtH7Hd3vLfc3sOUBrtZvmcoMrfn9Ew0AOL6nwDLlBOZjuMT+ OeaVh6m2fjeSGHrHVjJy0eQyB04ts0eIJcy+SRqvXK+Q7Oj7f8puhnojS5FUwREeuy68 M/UA== X-Gm-Message-State: AOJu0YxixooSA8wjt8xEzw3r8VHNOSHItvl+xyw3FPuGGxPVDLewyzXc BDrmgJd4RVc4skdz/GfdqEj7cJhY55+oMekd3ZU4Sr56nVHUbDr3b5bZ/ClI2aQ= X-Google-Smtp-Source: AGHT+IHxtCpAkJxhqLg9XPC2I97qH6t8rrfqfOxug5kRqZacmVIlgWUQ0Z4FeiKJgXbWETLiwqCjqA== X-Received: by 2002:a17:903:32d0:b0:205:36dc:c3d9 with SMTP id d9443c01a7336-20536dcc7femr108206075ad.33.1725282542579; Mon, 02 Sep 2024 06:09:02 -0700 (PDT) Original-Received: from [28.0.0.1] (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-205528931ffsm31917985ad.45.2024.09.02.06.09.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Sep 2024 06:09:02 -0700 (PDT) Content-Language: en-US In-Reply-To: <86h6ay8ate.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::541; envelope-from=execvy@gmail.com; helo=mail-pg1-x541.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: Mon, 02 Sep 2024 09:39:01 -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:323290 Archived-At: This is a multi-part message in MIME format. --------------mkd08DWQFXAuXGUMKkRRRbGE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit My total memory is 48GB*2 memory: ``` ❯ free -h                total        used        free      shared buff/cache   available Mem:            93Gi       6.8Gi        75Gi       2.8Gi 12Gi        83Gi Swap:           95Gi       1.5Gi        94Gi ``` Thank you, I should decrease `mps_gen_param_s` to use less memory. On 9/2/24 21:06, Eli Zaretskii wrote: >> From: Eval Exec >> Date: Mon, 2 Sep 2024 20:24:25 +0800 >> >> Hello, >> I'm helping to test scratch/igc branch on my local environment: >> ``` >> ❯ uname -a >> Linux Matrix 6.6.41 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jul 18 11:21:27 >> UTC 2024 x86_64 GNU/Linux >> ``` >> >> I get the source code of scratch/igc, commit hash: 6682d0e6c96 . >> And I append a new commit: >> ``` >> diff --git a/src/igc.c b/src/igc.c >> index f069a2becc9..4d792da75c8 100644 >> --- a/src/igc.c >> +++ b/src/igc.c >> @@ -4459,7 +4459,7 @@ make_arena (struct igc *gc) >> MPS_ARGS_END (args); >> IGC_CHECK_RES (res); >> >> - mps_gen_param_s gens[] = { { 128000, 0.8 }, { 5 * 128000, 0.4 } }; >> + mps_gen_param_s gens[] = { { 128000000, 0.8 }, { 5 * 128000000, 0.4 } }; >> res = mps_chain_create (&gc->chain, gc->arena, ARRAYELTS (gens), gens); >> IGC_CHECK_RES (res); >> } > AFAIU, the above requests MPS to create a generation chain whose > capacity is 128GB. How much memory do you have on that system? --------------mkd08DWQFXAuXGUMKkRRRbGE Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

My total memory is 48GB*2 memory:

```

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:            93Gi       6.8Gi        75Gi       2.8Gi        12Gi        83Gi
Swap:           95Gi       1.5Gi        94Gi

```


Thank you, I should decrease `mps_gen_param_s` to use less memory.


On 9/2/24 21:06, Eli Zaretskii wrote:
From: Eval Exec <execvy@gmail.com>
Date: Mon, 2 Sep 2024 20:24:25 +0800

Hello,
I'm helping to test scratch/igc branch on my local environment:
```
❯ uname -a
Linux Matrix 6.6.41 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jul 18 11:21:27
UTC 2024 x86_64 GNU/Linux
```

I get the source code of scratch/igc, commit hash: 6682d0e6c96 .
And I append a new commit:
```
diff --git a/src/igc.c b/src/igc.c
index f069a2becc9..4d792da75c8 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -4459,7 +4459,7 @@ make_arena (struct igc *gc)
   MPS_ARGS_END (args);
   IGC_CHECK_RES (res);

-  mps_gen_param_s gens[] = { { 128000, 0.8 }, { 5 * 128000, 0.4 } };
+  mps_gen_param_s gens[] = { { 128000000, 0.8 }, { 5 * 128000000, 0.4 } };
   res = mps_chain_create (&gc->chain, gc->arena, ARRAYELTS (gens), gens);
   IGC_CHECK_RES (res);
 }
AFAIU, the above requests MPS to create a generation chain whose
capacity is 128GB.  How much memory do you have on that system?
--------------mkd08DWQFXAuXGUMKkRRRbGE--