[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions about proced
From: |
Rahguzar |
Subject: |
Re: Questions about proced |
Date: |
Sun, 07 Apr 2024 17:33:50 +0200 |
User-agent: |
mu4e 1.10.5; emacs 29.3 |
Hi Eli,
> I'm not sure I understand: you do have rss in the attributes, and I
> presume that the amount of physical RAM in the system is well known,
> so why is it a problem?
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.
> > 2) The pcpu construct displays the percentage of cpu used by a process.
> > However it seems like it uses a very long interval to calculate this
> > percentage. So often processes which are basically idle now show up at
> > the top when sorting the processes by pcpu and I can see the cpu used by
> > them decaying slowly. Is it possible to use a shorter interval for pcpu?
> AFAIK, this is calculated by the OS, not by Emacs.
Comparing with top, I notice that value is top changes much more quickly
compared to proced and better reflects the current load. The amount of
total cpu time used by a process is identical between top and proced so
I had assumed that they differed by how the calculated the current load.
Thanks,
Rahguzar