From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size Date: Thu, 25 Jul 2024 08:06:44 +0300 Message-ID: <86zfq65acb.fsf@gnu.org> References: <87v80un1rz.fsf@zohomail.eu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15094"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72278@debbugs.gnu.org To: Rahguzar , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 07:08:19 2024 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 1sWqiA-0003mS-Qn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 07:08:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWqhq-0003VC-HX; Thu, 25 Jul 2024 01:07:58 -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 1sWqho-0003Uk-Eg for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 01:07:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWqho-0006TE-5e for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 01:07:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWqhu-0001RS-Sr for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 01:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 05:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72278 X-GNU-PR-Package: emacs Original-Received: via spool by 72278-submit@debbugs.gnu.org id=B72278.17218840235018 (code B ref 72278); Thu, 25 Jul 2024 05:08:02 +0000 Original-Received: (at 72278) by debbugs.gnu.org; 25 Jul 2024 05:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:35082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWqgw-0001Ip-TE for submit@debbugs.gnu.org; Thu, 25 Jul 2024 01:07:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWqgu-0001Hy-Kg for 72278@debbugs.gnu.org; Thu, 25 Jul 2024 01:07:01 -0400 Original-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 ) 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==; In-Reply-To: <87v80un1rz.fsf@zohomail.eu> (bug-gnu-emacs@gnu.org) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289265 Archived-At: > Date: Wed, 24 Jul 2024 19:22:08 +0200 > From: Rahguzar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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.