all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rahguzar <rahguzar@zohomail.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: Questions about proced
Date: Tue, 23 Jul 2024 21:26:28 +0200	[thread overview]
Message-ID: <87a5i7oqor.fsf@zohomail.eu> (raw)
In-Reply-To: 86r0fhyx0t.fsf@gnu.org

Hi Eli,

[Sending this message again because I accidentally sent it just to Eli.
(Sorry about that)]

> > It is a minor problem but I actually don't understand how proced is
> > calculating the percentage. If I compare the percentage memory value
> > from proced with that of top I see that top show a value 4 times that of
> > proced. Before noticing this I though it was due to proced including
> > swap but the amount swap is half the amount of ram so I would have
> > expected the factor to be 1.5. Other programs also show values very
> > similar to top. The problem is that if I don't remember this fact, I
> > don't catch the high memory usage.

> You have the sources (in sysdep.c) of what Emacs does, so you can just
> look there, and then consult the various system documentation.  AFAIR,
> the %Mem column should show the percentage of the physical RAM that
> the process's RSS (resident set) takes.  That's what I see on 2
> different systems, one MS-Windows, the other GNU/Linux.  On the latter
> I compared with 'top', and it shows the same value.  So I don't think
> I understand why you see something different.

Sorry for coming back to this so late. I am using a GNU/Linux but with a
kernal that has a 16k page size. I think that might be the problem?

I don't understand C at all but I looked at the sysdep.c as weird math.
What stands out is line 3741:

	  pmem = 4.0 * 100 * rss / procfs_get_total_memory ();

The 4.0 is what makes me suspicious but it is just a hunch without any
understanding.

Thanks,
Rahguzar



             reply	other threads:[~2024-07-23 19:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 19:26 Rahguzar [this message]
2024-07-24 16:34 ` Questions about proced Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-07-24 17:41 Rahguzar
     [not found] <87ed7joqvi.fsf@zohomail.eu>
     [not found] ` <867cdb82rq.fsf@gnu.org>
2024-07-24 16:31   ` Rahguzar
2024-04-07 15:33 Rahguzar
2024-04-07 16:09 ` Eli Zaretskii
2024-04-06  9:57 Rahguzar
2024-04-06 17:47 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5i7oqor.fsf@zohomail.eu \
    --to=rahguzar@zohomail.eu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.