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


Message #25 received at 72278 <at> debbugs.gnu.org (full text, mbox):

From: Rahguzar <rahguzar <at> zohomail.eu>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 72278 <at> debbugs.gnu.org
Subject: Re: bug#72278: 29.4; Proced reports incorrect results with 16KB
 page size
Date: Thu, 25 Jul 2024 11:39:06 +0200
Hi Stefan,

Stefan Kangas <stefankangas <at> gmail.com> writes:

> 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.

Paul Eggert's changes fixed the issue for me.

Rahguzar




This bug report was last modified 355 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.