Received: (at 72278) by debbugs.gnu.org; 25 Jul 2024 09:13:48 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 05:13:48 2024 Received: from localhost ([127.0.0.1]:35526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWuXk-0002LW-EH for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 05:13:48 -0400 Received: from mail-ed1-f47.google.com ([209.85.208.47]:44281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1sWuXi-0002LO-B1 for 72278 <at> debbugs.gnu.org; Thu, 25 Jul 2024 05:13:47 -0400 Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5a3458bf989so826841a12.0 for <72278 <at> debbugs.gnu.org>; Thu, 25 Jul 2024 02:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721898758; x=1722503558; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=INZaJHLv+mmqXtGnoEDaFFk6tBRJMI+X9DDRHlt8i+I=; b=O/srd0rBFvN0Ez2A3iVciJa/oOcfRQl6Kxg5e8gSaTD6x4tAiSKkzxYIjxSMwXw+Ob 4fy8aQFc8/ir4y5PBbs27ySSfTsThL2sBKS6NpkJY1qMauGYdrqwD5F3vHEmE/Cvdav6 gS/zmaXCKh6XuxoNgbSrBJ30l3+0J/gmTyx+e10bvkPg9hvwdoNLIyww2JhTktu1hB/8 NGv29rSrpAKh92zpTYlqXOJMFWI7FBmjOyPZSt3fWUB50qK3XoaVsUcEoYOW8LRznAxr OxjzCeQBcuBl9xk0XI5dxqQpCNNAZt8FEFP26cJwNZ5W9lVfZfxJqHLlFHEnKdFj00hp W8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721898758; x=1722503558; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=INZaJHLv+mmqXtGnoEDaFFk6tBRJMI+X9DDRHlt8i+I=; b=eUJkGeGyG5VKp9AANHzzo3T7xSR7dCVBZZju9X5FRi7CAUuDkuvuRCyPUXEWD7RwVo K/Tr1tTR8iolyYUtaEHQW8YSzC3T8z3t+rpHQjV7EIT3OaCcazWZkfP7aUs6rRjvfnoh 9qcwBp+XSli6CkHTQFwbitQjJu1rO4wSD74tVkTOz8Gpj3rvtDnP1OOkC4sOZUp3TBMs BPMcrgw9XL0AgfmK3rAgwtpFqXhjhN/Cf+rT/GolAVxczm8kDXLI4EEZy4vsYQTe7ZaM 7B+cMxRxM6XeCizBpDr65FeiVQROtOVhE9NsyWk9cwAjdKKsk+Gyjt9JQbRk2oE0Xafj 6YzQ== X-Gm-Message-State: AOJu0Yy91qVyRtdb2a7maVitoNyc04BjoFrV3YBcaY4JtEQlB3gQdWj0 d174/psQZnrKMEZMpK4yHEYdp8+wJQ++MyGpPmXiN9oMdM9bR0S4AbmlkK6zTE8QfJwapCfDTR1 BRruN1XWUgC4U+YF0T/BOuVYtyTk= X-Google-Smtp-Source: AGHT+IH+9r7aVm64c+1FVQoTXazh1iS8wZyBx1zBJ7l9XaqdXSB3H9MZ6/g84IGcLi6XtRt6K4Hcwt84j7KPq/Uk1wg= X-Received: by 2002:a50:cd93:0:b0:5a1:a469:4d9b with SMTP id 4fb4d7f45d1cf-5ac2a7b70c0mr1301236a12.13.1721898757744; Thu, 25 Jul 2024 02:12:37 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 25 Jul 2024 09:12:37 +0000 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <87msm6mskq.fsf@HIDDEN> References: <87v80un1rz.fsf@HIDDEN> <CADwFkmmUd1YJr2NtxFuBSgNi3SgOiA_s0FY5C6N3R+3VCEjwVw@HIDDEN> <87msm6mskq.fsf@HIDDEN> MIME-Version: 1.0 Date: Thu, 25 Jul 2024 09:12:37 +0000 Message-ID: <CADwFkm=eHkecVH3QPt+L4wUgGP78+N8wzpe6FiKrr9q3EeCzJg@HIDDEN> Subject: Re: bug#72278: 29.4; Proced reports incorrect results with 16KB page size To: Rahguzar <rahguzar@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72278 Cc: 72278 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Rahguzar <rahguzar@HIDDEN> writes: > From discussion with Eli at the help-gnu-emacs thread I think there is > some hard coded assumption about 4KB page size in sysdep.c. E.g. here at > line 3741 > > pmem = 4.0 * 100 * rss / procfs_get_total_memory (); Makes sense to me. AFAIK, the page size can be different for different processes, so I guess we'd need to find the page size per process in something like /proc/<pid>/status? Is that the right way to do it? I'm not on a GNU/Linux machine right now so I can't check.
bug-gnu-emacs@HIDDEN
:bug#72278
; Package emacs
.
Full text available.Received: (at 72278-done) by debbugs.gnu.org; 25 Jul 2024 06:38:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 02:38:50 2024 Received: from localhost ([127.0.0.1]:35200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWs7m-0003q2-3N for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 02:38:50 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:33926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1sWs7k-0003pi-9x for 72278-done <at> debbugs.gnu.org; Thu, 25 Jul 2024 02:38:49 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id C84843C0140A0; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id NLYdemiFGlZd; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 59C8A3C00E400; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 59C8A3C00E400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1721889515; bh=BxP93MN+km71+Tr1JxGPIKFFqz737AuUst3MOtcyZWc=; h=Message-ID:Date:MIME-Version:To:From; b=LD+7GNprvjA6ByhKrxq2jb5BjxxqqEgW18dHfxcXPZ0PRsmBkGxtsEPOdQuFl1Jr8 +cUDJr1YyxnByANDxiswWGmHIr+JrDYiBWVPrMyxOnSr/+KZio+iKLlpa0hRQH+itm BZKgO9Cif0P6MWJcglhO29egN2AKBooJD4cDyyGfgOTH6xt8nrhUkWDxZua6Kjk4Bn ZMCtnPIzmKLhajMidILlhHeM65HbvDbS+mIhl0VTCQDFRHGO0VCfwazES2eWnblbXi beOXUbWy/HP5LNRqE6p/F7g85uJvZwoqK5L0VKodTORNPQn6matdOk4QufhWwUgFp5 K9CCk/L/0SxWQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id KY7LlXynpLaY; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 3998C3C0140A0; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------W5uUXeSMfic91hZo3OtrdQUe" Message-ID: <88d8077a-b01b-4428-8388-6944581bdfe7@HIDDEN> Date: Wed, 24 Jul 2024 23:38:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#72278: 29.4; Proced reports incorrect results with 16KB page size To: Eli Zaretskii <eliz@HIDDEN> References: <87v80un1rz.fsf@HIDDEN> <86zfq65acb.fsf@HIDDEN> Content-Language: en-US From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department In-Reply-To: <86zfq65acb.fsf@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72278-done Cc: Rahguzar <rahguzar@HIDDEN>, 72278-done <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------W5uUXeSMfic91hZo3OtrdQUe Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-07-24 22:06, Eli Zaretskii wrote: > Paul, it sounds like we need to multiply by getpagesize() instead of > by a fixed value of 4? Yes, that sounds right. I installed the attached patch into Emacs master on Savannah, and am boldly closing the bug as fixed. We can reopen it if I'm wrong. Thanks, Rahguzar, for reporting the bug. --------------W5uUXeSMfic91hZo3OtrdQUe Content-Type: text/x-patch; charset=UTF-8; name="0001-Fix-process-attributes-rss-and-pmem-on-GNU-Linux.patch" Content-Disposition: attachment; filename*0="0001-Fix-process-attributes-rss-and-pmem-on-GNU-Linux.patch" Content-Transfer-Encoding: base64 RnJvbSA0MmNkZmU3ZjYwZWY3YWUzYmNjYjViMWU0MzM0OWMzYTZiNTRhYzRhIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBXZWQsIDI0IEp1bCAyMDI0IDIzOjMyOjI0IC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gRml4IHByb2Nlc3MtYXR0cmlidXRlcyByc3MgYW5kIHBtZW0gb24gR05VL0xpbnV4Ck1J TUUtVmVyc2lvbjogMS4wCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD1VVEYt OApDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA4Yml0CgpQcm9ibGVtIHJlcG9ydGVkIGJ5 IFJhaGd1emFyIDxodHRwczovL2J1Z3MuZ251Lm9yZy83MjI3OD4uCiogc3JjL3N5c2RlcC5j IChzeXN0ZW1fcHJvY2Vzc19hdHRyaWJ1dGVzKToKW0dOVV9MSU5VWCB8fCBDWUdXSU4gfHwg X19BTkRST0lEX19dOiBXaGVuIGNvbXB1dGluZyByc3MgYW5kIHBtZW0sCmRvbuKAmXQgYXNz dW1lIHBhZ2VzaXplIGlzIDQwOTY7IGl0IGNvdWxkIGJlIGdyZWF0ZXIuCi0tLQogc3JjL3N5 c2RlcC5jIHwgMTAgKysrKysrKystLQogMSBmaWxlIGNoYW5nZWQsIDggaW5zZXJ0aW9ucygr KSwgMiBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9zcmMvc3lzZGVwLmMgYi9zcmMvc3lz ZGVwLmMKaW5kZXggZDkxNmE2OTUxNTUuLjM5NTVkNzk2Y2E1IDEwMDY0NAotLS0gYS9zcmMv c3lzZGVwLmMKKysrIGIvc3JjL3N5c2RlcC5jCkBAIC0zNTQ4LDYgKzM1NDgsNyBAQCBwcm9j ZnNfdHR5bmFtZSAoaW50IHJkZXYpCiB9CiAjIGVuZGlmCS8qIEdOVV9MSU5VWCB8fCBfX0FO RFJPSURfXyAqLwogCisvKiBUb3RhbCB1c2FibGUgUkFNIGluIEtpQi4gICovCiBzdGF0aWMg dWludG1heF90CiBwcm9jZnNfZ2V0X3RvdGFsX21lbW9yeSAodm9pZCkKIHsKQEAgLTM3Mzcs OCArMzczOCwxMyBAQCBzeXN0ZW1fcHJvY2Vzc19hdHRyaWJ1dGVzIChMaXNwX09iamVjdCBw aWQpCiAJICBhdHRycyA9IEZjb25zIChGY29ucyAoUW5pY2UsIG1ha2VfZml4bnVtIChuaWNl bmVzcykpLCBhdHRycyk7CiAJICBhdHRycyA9IEZjb25zIChGY29ucyAoUXRoY291bnQsIElO VF9UT19JTlRFR0VSICh0aGNvdW50KSksIGF0dHJzKTsKIAkgIGF0dHJzID0gRmNvbnMgKEZj b25zIChRdnNpemUsIElOVF9UT19JTlRFR0VSICh2c2l6ZSAvIDEwMjQpKSwgYXR0cnMpOwot CSAgYXR0cnMgPSBGY29ucyAoRmNvbnMgKFFyc3MsIElOVF9UT19JTlRFR0VSICg0ICogcnNz KSksIGF0dHJzKTsKLQkgIHBtZW0gPSA0LjAgKiAxMDAgKiByc3MgLyBwcm9jZnNfZ2V0X3Rv dGFsX21lbW9yeSAoKTsKKworCSAgLyogUlNTIGluIEtpQi4gICovCisJICB1aW50bWF4X3Qg cnNzayA9IHJzczsKKwkgIHJzc2sgKj0gZ2V0cGFnZXNpemUgKCkgPj4gMTA7CisKKwkgIGF0 dHJzID0gRmNvbnMgKEZjb25zIChRcnNzLCBJTlRfVE9fSU5URUdFUiAocnNzaykpLCBhdHRy cyk7CisJICBwbWVtID0gMTAwLjAgKiByc3NrIC8gcHJvY2ZzX2dldF90b3RhbF9tZW1vcnkg KCk7CiAJICBpZiAocG1lbSA+IDEwMCkKIAkgICAgcG1lbSA9IDEwMDsKIAkgIGF0dHJzID0g RmNvbnMgKEZjb25zIChRcG1lbSwgbWFrZV9mbG9hdCAocG1lbSkpLCBhdHRycyk7Ci0tIAoy LjQzLjAKCg== --------------W5uUXeSMfic91hZo3OtrdQUe--
Rahguzar <rahguzar@HIDDEN>
:Paul Eggert <eggert@HIDDEN>
:Received: (at 72278) by debbugs.gnu.org; 25 Jul 2024 05:07:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 01:07:03 2024 Received: from localhost ([127.0.0.1]:35082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWqgw-0001Ip-TE for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 01:07:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1sWqgu-0001Hy-Kg for 72278 <at> debbugs.gnu.org; Thu, 25 Jul 2024 01:07:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1sWqgg-0006Gc-Ke; Thu, 25 Jul 2024 01:06:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1SdptZRhj89pTbzxX08Z5hXwPQ8ajXO69z8raObC/r8=; b=Frd6zykyVkTX l+wz4I1RpoWoBLYDPPNaxmUoYoEK3OWkikFkybdT3FpYlIewEwEpoIh+Urb3r1UcTbJkQXrSNdR6U JReh3vhnzQNRlcW6Wn9+zlwIBxr+Os6NtV/UWwFoWt+cFNcPifpl64WMGaWF32vjKRogf5Oigqo2D 3FpuMI6rfvrpuQ59CRwPWeN07I5hJii6Q0LptzgQFbGmPuSybYL8NkscU5x7Te86RGWyzbjOIrZEQ VImqhYdz6ve1K797cYOJZyWS2EtW8VQM24FN5Y/qbE1Hawdc/1SsoDj2nKX3746Hoht8vFmpQ9AHq QRLudfgw+657QtBjA+YjXg==; Date: Thu, 25 Jul 2024 08:06:44 +0300 Message-Id: <86zfq65acb.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Rahguzar <rahguzar@HIDDEN>, Paul Eggert <eggert@HIDDEN> In-Reply-To: <87v80un1rz.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#72278: 29.4; Proced reports incorrect results with 16KB page size References: <87v80un1rz.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72278 Cc: 72278 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 24 Jul 2024 19:22:08 +0200 > From: Rahguzar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > I am using GNU/Linux on an Apple M2 processor using the Asahi Linux > project [1]. They provide a kernel with 16KB page size [2]. This causes proced > to show incorrect values for percentage memory (other memory related > attributes might also be affected). E.g. comparing with top I see that > value reported by proced is a quarter of that related by top. > > [1] https://asahilinux.org > [2] https://discussion.fedoraproject.org/t/switch-to-the-kernel-16k-variant/87711 Paul, it sounds like we need to multiply by getpagesize() instead of by a fixed value of 4? Some implementations of system_process_attributes already do that, although not the one which reads "/proc" on Linux.
bug-gnu-emacs@HIDDEN
:bug#72278
; Package emacs
.
Full text available.Received: (at 72278) by debbugs.gnu.org; 24 Jul 2024 20:41:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 24 16:41:11 2024 Received: from localhost ([127.0.0.1]:34582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWinO-0005Gk-NZ for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 16:41:11 -0400 Received: from sender-pp-o91.zoho.eu ([136.143.169.91]:37242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rahguzar@HIDDEN>) id 1sWinJ-0005GV-4z for 72278 <at> debbugs.gnu.org; Wed, 24 Jul 2024 16:41:08 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1721853657; cv=none; d=zohomail.eu; s=zohoarc; b=WFmUm1A0eAvZpxe52a6oPV7QUPjO8kNfWbzhf2EZ+K38WL5okBTu5azlww6HMDQdY+P18Pmse4OVGqsy/U2AfE+2M9puxzgq1PaarSt++Fw9wK3xCmyHoxkkRzVOaC45nwkEtvd1RxSM779lt9REC4hfxDSKWV3oZLe2inSbS38= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1721853657; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=SLgPiFhqi6FLE178XPSzIltJ11orh27a/DZhMcspy6w=; b=DIFzGqZ1ZkUUZSwD0QmWn4/732tQzjZNMMewXJVj8qI7XTCnzKmKebgKUebrSBbNqbX8W+8WoxOPKbgxp22TDLLUTeWY9/9Q3kmGtAOfoKt0i5KjlqiXYOJof27AgOkXTY4dx96TAPavXsMP+DvsALc84GtmNdc8LwPPTy8G2co= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@HIDDEN; dmarc=pass header.from=<rahguzar@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1721853657; s=zoho; d=zohomail.eu; i=rahguzar@HIDDEN; h=From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=SLgPiFhqi6FLE178XPSzIltJ11orh27a/DZhMcspy6w=; b=Ra5aMAVmEYRwv+YVnJ3WSb363TuphVBV+STRo1pcVWQLrtJ6nUl/1kjyt53aSUez wcjV4xlSS02csPskl4VfunOWvKmS1TJlNURpTzPGvpehNUGU289RCyhX2QySQPkZf+/ IBU29ZYvYCPiuU0BGMbD2o18KL78Gw0dBP+NIdCk= Received: by mx.zoho.eu with SMTPS id 1721853654259658.4112672224819; Wed, 24 Jul 2024 22:40:54 +0200 (CEST) From: Rahguzar <rahguzar@HIDDEN> To: Stefan Kangas <stefankangas@HIDDEN> Subject: Re: bug#72278: 29.4; Proced reports incorrect results with 16KB page size In-Reply-To: <CADwFkmmUd1YJr2NtxFuBSgNi3SgOiA_s0FY5C6N3R+3VCEjwVw@HIDDEN> (Stefan Kangas's message of "Wed, 24 Jul 2024 12:29:25 -0700") References: <87v80un1rz.fsf@HIDDEN> <CADwFkmmUd1YJr2NtxFuBSgNi3SgOiA_s0FY5C6N3R+3VCEjwVw@HIDDEN> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Wed, 24 Jul 2024 22:40:53 +0200 Message-ID: <87msm6mskq.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72278 Cc: 72278 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Stefan, Stefan Kangas <stefankangas@HIDDEN> writes: > Rahguzar via "Bug reports for GNU Emacs, the Swiss army knife of text > editors" <bug-gnu-emacs@HIDDEN> writes: > >> Dear Emacs Maintainers, >> >> I am using GNU/Linux on an Apple M2 processor using the Asahi Linux >> project [1]. They provide a kernel with 16KB page size [2]. This causes proced >> to show incorrect values for percentage memory (other memory related >> attributes might also be affected). E.g. comparing with top I see that >> value reported by proced is a quarter of that related by top. >> >> [1] https://asahilinux.org >> [2] https://discussion.fedoraproject.org/t/switch-to-the-kernel-16k-variant/87711 > > 1. What is the output of running this command? > > grep MemTotal /proc/meminfo > > Does that value seem right? Does that file make sense in general? The value and the file generally look correct to me. > 2. Copy this to a buffer somewhere, put point after the last > parenthesis, and press `C-u C-x C-e': > > (pp (mapcar #'process-attributes > (seq-take (list-system-processes) 5))) > > Please post the result back here. > > Could you also tell us which values in the resulting list are wrong > (a.k.a. "different from top")? The processes that end up in that list have memory footprint so small that top ends up showing percentage memory as 0. I modified the snippet to obtain 5 processes started by firefox: (((args . "/usr/lib64/firefox/firefox") (pmem . 3.018895533065192) (rss . 727876) (vsize . 17513856) (thcount . 105) (nice . 0) (pri . 20) (pcpu . 1.0718871382569872) (etime 12 34487 450000 0) (start 26260 56544 260000 0) (ctime 0 8651 310000 0) (cstime 0 393 900000 0) (cutime 0 8257 410000 0) (time 0 8799 330000 0) (stime 0 2500 340000 0) (utime 0 6298 990000 0) (cmajflt . 83) (cminflt . 10288762) (majflt . 1571) (minflt . 20999882) (tpgid . -1) (ttname . "") (sess . 1239) (pgrp . 1239) (ppid . 1) (state . "S") (comm . "firefox") (group . "azeem") (egid . 1000) (user . "azeem") (euid . 1000)) ((args . "/usr/lib64/firefox/firefox -contentproc -parentBuildID 20240712194222 -prefsLen 42067 -prefMapSize 262227 -appDir /usr/lib64/firefox/browser {6dc0e492-94e8-413e-83e0-ac2b970bde23} 1241 socket") (pmem . 0.05839737689600688) (rss . 14080) (vsize . 576016) (thcount . 6) (nice . 0) (pri . 20) (pcpu . 5.359847034838214e-05) (etime 12 34486 950000 0) (start 26260 56544 770000 0) (ctime 0 0 0 0) (cstime 0 0 0 0) (cutime 0 0 0 0) (time 0 0 440000 0) (stime 0 0 180000 0) (utime 0 0 260000 0) (cmajflt . 0) (cminflt . 0) (majflt . 9) (minflt . 1669) (tpgid . -1) (ttname . "") (sess . 1239) (pgrp . 1239) (ppid . 1241) (state . "S") (comm . "Socket Process") (group . "azeem") (egid . 1000) (user . "azeem") (euid . 1000)) ((args . "/usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 42067 -prefMapSize 262227 -jsInitLen 234780 -parentBuildID 20240712194222 -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appDir /usr/lib64/firefox/browser {2280679f-70cf-4f2d-887a-33665cc52830} 1241 tab") (pmem . 0.9880603908509892) (rss . 238228) (vsize . 22750640) (thcount . 27) (nice . 0) (pri . 20) (pcpu . 0.13563582493620777) (etime 12 34486 810000 0) (start 26260 56544 920000 0) (ctime 0 0 0 0) (cstime 0 0 0 0) (cutime 0 0 0 0) (time 0 1113 460000 0) (stime 0 75 970000 0) (utime 0 1037 490000 0) (cmajflt . 0) (cminflt . 0) (majflt . 0) (minflt . 1710810) (tpgid . -1) (ttname . "") (sess . 1239) (pgrp . 1239) (ppid . 1241) (state . "R") (comm . "WebExtensions") (group . "azeem") (egid . 1000) (user . "azeem") (euid . 1000)) ((args . "/usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 43016 -prefMapSize 262227 -jsInitLen 234780 -parentBuildID 20240712194222 -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appDir /usr/lib64/firefox/browser {c7fd5dcc-7f18-4677-8cd3-ff49efab3e75} 1241 tab") (pmem . 0.10299173743477577) (rss . 24832) (vsize . 4366000) (thcount . 28) (nice . 0) (pri . 20) (pcpu . 0.0032487989036966473) (etime 12 34486 770000 0) (start 26260 56544 960000 0) (ctime 0 0 0 0) (cstime 0 0 0 0) (cutime 0 0 0 0) (time 0 26 670000 0) (stime 0 6 580000 0) (utime 0 20 90000 0) (cmajflt . 0) (cminflt . 0) (majflt . 0) (minflt . 2708) (tpgid . -1) (ttname . "") (sess . 1239) (pgrp . 1239) (ppid . 1241) (state . "S") (comm . "Privileged Cont") (group . "azeem") (egid . 1000) (user . "azeem") (euid . 1000)) ((args . "/usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 29688 -prefMapSize 262227 -jsInitLen 234780 -parentBuildID 20240712194222 -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appDir /usr/lib64/firefox/browser {77722f8d-f95f-4796-9765-00d7017c5796} 1241 tab") (pmem . 1.0487306202000508) (rss . 252856) (vsize . 6381408) (thcount . 31) (nice . 0) (pri . 20) (pcpu . 0.48562684148940605) (etime 12 34486 380000 0) (start 26260 56545 350000 0) (ctime 0 0 0 0) (cstime 0 0 0 0) (cutime 0 0 0 0) (time 0 3986 600000 0) (stime 0 651 720000 0) (utime 0 3334 880000 0) (cmajflt . 0) (cminflt . 0) (majflt . 5) (minflt . 1335797) (tpgid . -1) (ttname . "") (sess . 1239) (pgrp . 1239) (ppid . 1241) (state . "S") (comm . "Isolated Web Co") (group . "azeem") (egid . 1000) (user . "azeem") (euid . 1000))) The percentage memory values in top for these processes are 12.1 0.2 4.0 0.4 and 4.2 so 4 times those returned by proced. > Thanks in advance. From discussion with Eli at the help-gnu-emacs thread I think there is some hard coded assumption about 4KB page size in sysdep.c. E.g. here at line 3741 pmem = 4.0 * 100 * rss / procfs_get_total_memory (); Thanks, Rahguzar
bug-gnu-emacs@HIDDEN
:bug#72278
; Package emacs
.
Full text available.Received: (at 72278) by debbugs.gnu.org; 24 Jul 2024 19:30:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 24 15:30:42 2024 Received: from localhost ([127.0.0.1]:34511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWhhB-0000kN-Kx for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 15:30:42 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:42386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1sWhh9-0000k9-55 for 72278 <at> debbugs.gnu.org; Wed, 24 Jul 2024 15:30:40 -0400 Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-595856e2336so327679a12.1 for <72278 <at> debbugs.gnu.org>; Wed, 24 Jul 2024 12:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721849367; x=1722454167; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=NkzhJGWSl6b6W/TWvXKbQZfuM9o4yZHHVtWnwUlTVp8=; b=h4hLfZxUIC9gbPqqgJ2tqT7aU1xxDHR0UdSm4modn/fAj9z4YhIurtV2CWQLzwtoyT ORUQCqY4zMZnV0FppUUARC9hXjiJ60SBQHN2IsTRFiQ3OPFpEf0pw2EW8sfTE37pYAGY l1hSuJIavzKTzARuau+GEKJCMDBnkar/zCUIt6E9tQku8dz7eS+ttWLlkS9rJJY9W4jo v5a95wRUX3QPiDtiZhwluuJD4m4kum4SW5FkJZXsnjVyVmmEmx8uCTCFRVuJGEYFrq9a vtHoXg0slRqqDTvCaIaDsjCiD0VUTyJ0Tyqj2HRgmTGWu+HgKgb+ULq16XZW48xX+7B9 xZIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721849367; x=1722454167; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NkzhJGWSl6b6W/TWvXKbQZfuM9o4yZHHVtWnwUlTVp8=; b=cbKCOM7uzrQ1hm1Uus9ghfqncQ9aHaHtEjQVhRI7qXC1VAmitkAAfba2jdBHgeZRug +LYM/D4JV3smDTILABx/uo8+ZJ9/meEGStrjeHQbYgpQN6lcqTvoNW4TGHyDfMz8ZAl2 IZpdsO0jfmZ8saGZs5541XFJ3KrybM6MWNYkTPhTHhFca/W0NfWxX9/yHPzhG8ebuHT6 GL2MbA7BH785nKAeG9ff45bwHhalmw+RlVH2eD/s7DoFIo575zcCEzMyJ51aP6AHelOz J+zc8agSJgbkEbIez8q8UG7srkERiLCB7w6QHUSRypHYHY5F1ygTL3N5ZeziuN2ogIOZ lQpA== X-Forwarded-Encrypted: i=1; AJvYcCUa8VAdomSgjZLPMWx/YTytOm8ckRVxtiLkfYFC/NXPgLqDco+3l0T0Wkq/bUv1tMp2Nl4WMzpAAgdxrf11o9spfWsRO0w= X-Gm-Message-State: AOJu0YxfC7PV/zjT7LwqiY4XcYEgi0e8u5u9bxZO5yVKhhUjI63NW1aR iX93+b3Y/zAgy96ca9CoQhaj3R75x86j3xrsh5ab9Xd5WT1ZiPPWobwixufCOA1iC65CTVHOB9s Pj+lMDR/EqMnS7VaWhSnufbrucpM= X-Google-Smtp-Source: AGHT+IEt5jrAB9szQO+Ria1HZL7pyQg+w4vIdwIg0HiCDixyfjR7QZGntwuDWYTOB3mHC1JDW0P/fi7bluLx81DD6nU= X-Received: by 2002:a50:d502:0:b0:585:5697:b882 with SMTP id 4fb4d7f45d1cf-5ab19dcc409mr3073518a12.3.1721849366738; Wed, 24 Jul 2024 12:29:26 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Jul 2024 12:29:25 -0700 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <87v80un1rz.fsf@HIDDEN> References: <87v80un1rz.fsf@HIDDEN> MIME-Version: 1.0 Date: Wed, 24 Jul 2024 12:29:25 -0700 Message-ID: <CADwFkmmUd1YJr2NtxFuBSgNi3SgOiA_s0FY5C6N3R+3VCEjwVw@HIDDEN> Subject: Re: bug#72278: 29.4; Proced reports incorrect results with 16KB page size To: Rahguzar <rahguzar@HIDDEN>, 72278 <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72278 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Rahguzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes: > Dear Emacs Maintainers, > > I am using GNU/Linux on an Apple M2 processor using the Asahi Linux > project [1]. They provide a kernel with 16KB page size [2]. This causes proced > to show incorrect values for percentage memory (other memory related > attributes might also be affected). E.g. comparing with top I see that > value reported by proced is a quarter of that related by top. > > [1] https://asahilinux.org > [2] https://discussion.fedoraproject.org/t/switch-to-the-kernel-16k-variant/87711 1. What is the output of running this command? grep MemTotal /proc/meminfo Does that value seem right? Does that file make sense in general? 2. Copy this to a buffer somewhere, put point after the last parenthesis, and press `C-u C-x C-e': (pp (mapcar #'process-attributes (seq-take (list-system-processes) 5))) Please post the result back here. Could you also tell us which values in the resulting list are wrong (a.k.a. "different from top")? Thanks in advance.
bug-gnu-emacs@HIDDEN
:bug#72278
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 24 Jul 2024 17:22:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 24 13:22:46 2024 Received: from localhost ([127.0.0.1]:34407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWfhN-0005qe-Qg for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 13:22:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:41372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rahguzar@HIDDEN>) id 1sWfhK-0005qV-Kq for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 13:22:44 -0400 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 <rahguzar@HIDDEN>) id 1sWfhD-0002fQ-Iu for bug-gnu-emacs@HIDDEN; Wed, 24 Jul 2024 13:22:35 -0400 Received: from sender-pp-o91.zoho.eu ([136.143.169.91]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <rahguzar@HIDDEN>) id 1sWfh9-00037U-VK for bug-gnu-emacs@HIDDEN; Wed, 24 Jul 2024 13:22:35 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1721841748; cv=none; d=zohomail.eu; s=zohoarc; b=RzR0u9AN2nmfrmYXLiFoCATy9hTZH8YOQtdeul2yUM8MCTySrTij5vzfDgZ7OzTCyb9WxWT6RlooPfeC78UpJs/seCEbWbDX5d2FF1niFvF8u2P8H36+6qSfqarkNJ9cJAq8DVQKZ65cYjjctBr4ZXFow5Xy8jG5StuXpKGFddM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1721841748; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=8PEEbAVre9+oBpnunNOZZOOIIyvMY64XjyCQnsCprE0=; b=hscwNk2cBMdOAdqSHOC1vjf3wtXDALJFO825ktS9tYxd2kGuafb8ro1HvqH9BTDyS5O1+IX3F33r2rln9G6FX6ea+8ueFjttWr+9RHE5M3u33SCidocYO19BCarN7Ta66yjTyqWiUUJOvKCC94ft3wo7rjiMY60uTLkdAfpeGAI= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@HIDDEN; dmarc=pass header.from=<rahguzar@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1721841748; s=zoho; d=zohomail.eu; i=rahguzar@HIDDEN; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=8PEEbAVre9+oBpnunNOZZOOIIyvMY64XjyCQnsCprE0=; b=bA7DGRl4hMKO4GqwzsIPbQxorm762MwdchnuhYaQaxWqY0h9T4Cd9LBNOYDzdeVV GvsgKZrCxExqcSQLPBeZ3HulLbqpfAXRzBcNbSBKykP+v+hBBJQb1SMm9fzm7LfdK8r CwXms52O2MDIX8GYbaM9ea8s0pfQbra/pK6eaynA= Received: by mx.zoho.eu with SMTPS id 1721841747349908.8658468844457; Wed, 24 Jul 2024 19:22:27 +0200 (CEST) From: Rahguzar <rahguzar@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 29.4; Proced reports incorrect results with 16KB page size Date: Wed, 24 Jul 2024 19:22:08 +0200 Message-ID: <87v80un1rz.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.91; envelope-from=rahguzar@HIDDEN; helo=sender-pp-o91.zoho.eu 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) Dear Emacs Maintainers, I am using GNU/Linux on an Apple M2 processor using the Asahi Linux project [1]. They provide a kernel with 16KB page size [2]. This causes proced to show incorrect values for percentage memory (other memory related attributes might also be affected). E.g. comparing with top I see that value reported by proced is a quarter of that related by top. [1] https://asahilinux.org [2] https://discussion.fedoraproject.org/t/switch-to-the-kernel-16k-variant/87711 In GNU Emacs 29.4 (build 1, aarch64-redhat-linux-gnu, GTK+ Version 3.24.42, cairo version 1.18.0) of 2024-07-08 built on c7db9ae0ee0641de8f7c6190b678dcb8 System Description: Fedora Linux Asahi Remix 40 (Forty) Configured using: 'configure --build=aarch64-redhat-linux-gnu --host=aarch64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-json --with-modules --with-native-compilation=aot --with-pgtk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm --with-xwidgets build_alias=aarch64-redhat-linux-gnu host_alias=aarch64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: pdf-occur-global-minor-mode: t shell-dirtrack-mode: t undo-fu-session-mode: t highlight-quoted-mode: t corfu-history-mode: t corfu-popupinfo-mode: t corfu-mode: t evil-surround-mode: t server-mode: t outline-minor-mode: t dirvish-override-dired-mode: t satchel-mode: t nerd-icons-completion-mode: t marginalia-mode: t vertico-multiform-mode: t vertico-mode: t evil-goggles-mode: t anzu-mode: t evil-mode: t evil-local-mode: t recentf-mode: t savehist-mode: t electric-pair-mode: t save-place-mode: t override-global-mode: t flymake-mode: t pixel-scroll-precision-mode: t repeat-mode: t midnight-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t buffer-read-only: t size-indication-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t view-mode: t Load-path shadows: /home/azeem/.local/state/emacs/elpaca/builds/transient/transient hides /usr/share/emacs/29.4/lisp/transient /home/azeem/.local/state/emacs/elpaca/builds/ef-themes/theme-loaddefs hides /usr/share/emacs/29.4/lisp/theme-loaddefs /home/azeem/.local/state/emacs/elpaca/builds/eww-hacks/shr hides /usr/share/emacs/29.4/lisp/net/shr /home/azeem/.local/state/emacs/elpaca/builds/eww-hacks/eww hides /usr/share/emacs/29.4/lisp/net/eww Features: (shadow files-x emacsbug evil-nerd-commenter html-mode-expansions sgml-mode evil-nerd-commenter-operator evil-nerd-commenter-sdk misearch multi-isearch pdf-roll crm consult-info gnus-fun embark-org embark-consult embark inspirehep-pdf companion-mode inspirehep reftex reftex-loaddefs reftex-vars pdf-sync pdf-annot pdf-outline pdf-links pdf-history pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc pdf-tools pdf-view pdf-cache pdf-info tq pdf-util pdf-macs password-store auth-source-pass with-editor shell consult-imenu checkdoc vc-git vc-dispatcher package-lint-flymake package-lint let-alist finder finder-inf lisp-mnt package url-handlers vertico-directory oc-basic url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi descr-text mastodon-notifications smerge-mode diff diff-mode link-hint ffap goto-addr avy jka-compr view helpful cc-langs cc-vars cc-defs imenu trace edebug debug backtrace info-look info f help-fns radix-tree elisp-refs s dash undo-fu-session nerd-icons-corfu dabbrev delsel jit-spell ispell cape face-remap mastodon-media image-mode exif mastodon-profile mastodon-tl url-http url-gw url-cache url-auth mastodon-auth mastodon-client plstore mastodon mastodon-search mastodon-toot facemenu mastodon-iso persist mastodon-http request adaptive-wrap shr-color highlight-quoted corfu-history corfu-popupinfo corfu evil-embrace embrace expand-region text-mode-expansions the-org-mode-expansions org-element org-persist xdg org-id org-refile avl-tree generator er-basic-expansions expand-region-core expand-region-custom evil-surround qp sort smiley gnus-cite mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg gnus-ml disp-table nndraft nnmh vertico-repeat epa-file network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache fabs consult server mu4e mu4e-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func org-version org-compat org-macs mu4e-notification notifications mu4e-main smtpmail mu4e-view mu4e-mime-parts gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus cal-menu calendar cal-loaddefs mu4e-headers mu4e-thread mu4e-actions mu4e-compose nnheader range mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message shr pixel-fill kinsoku url-file svg xml dom browse-url flow-fill mule-util hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window ido message sendmail yank-media puny cus-start dirvish transient format-spec autorevert filenotify dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-obsolete usher satchel ibuf-ext ibuffer ibuffer-loaddefs bookmark nerd-icons-completion nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon marginalia vertico-multiform vertico compat compat-30 evil-goggles pulse color ef-spring-theme ef-themes pdf-loader evil-anzu anzu evil evil-integration evil-maps evil-commands reveal evil-jumps evil-command-window evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core comp comp-cstr cl-extra help-mode advice evil-common rect evil-vars edmacro kmacro orderless mastodon-autoloads request-autoloads persist-autoloads yeetube-autoloads filechooser-autoloads wile-autoloads adaptive-wrap-autoloads usher-autoloads undo-fu-session-autoloads ef-themes-autoloads jit-spell-autoloads satchel-autoloads pdf-tools-autoloads tablist-autoloads xr-autoloads link-hint-autoloads avy-autoloads yaml-mode-autoloads markdown-mode-autoloads magit-autoloads git-commit-autoloads magit-section-autoloads inspirehep-autoloads consult-hoogle-autoloads haskell-mode-autoloads geiser-guile-autoloads geiser-autoloads fabs-autoloads companion-mode-autoloads eww-hacks-autoloads evil-embrace-autoloads embrace-autoloads expand-region-autoloads evil-surround-autoloads evil-nerd-commenter-autoloads evil-goggles-autoloads evil-anzu-autoloads anzu-autoloads evil-autoloads goto-chg-autoloads eshell-syntax-highlighting-autoloads eat-autoloads package-lint-flymake-autoloads package-lint-autoloads elisp-def-autoloads macrostep-autoloads helpful-autoloads f-autoloads elisp-refs-autoloads dash-autoloads s-autoloads highlight-quoted-autoloads dirvish-autoloads transient-autoloads diredfl-autoloads trashed-autoloads vertico-autoloads orderless-autoloads nerd-icons-completion-autoloads marginalia-autoloads embark-consult-autoloads embark-autoloads nerd-icons-corfu-autoloads nerd-icons-autoloads cape-autoloads corfu-autoloads consult-autoloads password-store-autoloads with-editor-autoloads compat-autoloads elpaca-log elpaca-ui url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap recentf tree-widget savehist elec-pair saveplace bind-key url-parse auth-source eieio eieio-core password-cache json map url-vars easy-mmode cus-edit pp cus-load wid-edit pcase ibuf-macs flymake-proc flymake project byte-opt bytecomp byte-compile compile text-property-search comint ansi-osc ansi-color warnings icons thingatpt cl-macs pixel-scroll cua-base ring subr-x repeat rx midnight gv cl-seq elpaca elpaca-process cl-loaddefs cl-lib elpaca-autoloads rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 1976204 1127031) (symbols 48 94384 7) (strings 32 478350 81603) (string-bytes 1 31638678) (vectors 16 149464) (vector-slots 8 3721744 648039) (floats 8 2069 5420) (intervals 56 197274 14128) (buffers 984 162))
Rahguzar <rahguzar@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#72278
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.