GNU bug report logs -
#72278
29.4; Proced reports incorrect results with 16KB page size
Previous Next
Reported by: Rahguzar <rahguzar <at> zohomail.eu>
Date: Wed, 24 Jul 2024 17:23:02 UTC
Severity: normal
Found in version 29.4
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> 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 <at> 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.
This bug report was last modified 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.