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: Stefan Kangas
Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size
Date: Thu, 25 Jul 2024 09:12:37 +0000

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.





reply via email to

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