bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#72278: 29.4; Proced reports incorrect results with 16KB page size


From: Eli Zaretskii
Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size
Date: Thu, 25 Jul 2024 08:06:44 +0300

> 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@gnu.org>
> 
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]