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: Rahguzar
Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size
Date: Thu, 25 Jul 2024 11:39:06 +0200
User-agent: mu4e 1.12.1; emacs 29.4

Hi Stefan,

Stefan Kangas <stefankangas@gmail.com> writes:

> Rahguzar <rahguzar@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





reply via email to

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