GNU bug report logs - #72278
29.4; Proced reports incorrect results with 16KB page size

Previous Next

Package: emacs;

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Rahguzar <rahguzar <at> zohomail.eu>
Cc: 72278 <at> debbugs.gnu.org
Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size
Date: Thu, 25 Jul 2024 09:12:37 +0000
Rahguzar <rahguzar <at> zohomail.eu> 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.




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.