From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Questions about proced Date: Sat, 06 Apr 2024 20:47:05 +0300 Message-ID: <86ttke1izq.fsf@gnu.org> References: <871q7i6c0q.fsf@zohomail.eu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29876"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 06 19:47:51 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rtA8s-0007Zg-Jt for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 06 Apr 2024 19:47:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtA8G-0003BQ-Be; Sat, 06 Apr 2024 13:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtA8C-0003Aq-OL for help-gnu-emacs@gnu.org; Sat, 06 Apr 2024 13:47:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtA8C-0003LO-2E for help-gnu-emacs@gnu.org; Sat, 06 Apr 2024 13:47:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RZAOdmeDr5eaI9U1wxargRCEJnLY9/q4uTKSakvAP40=; b=YzJJHf7KJ1GB XZZLU8n3mPd/uM9IN4erYLOYKldlIdsNgT5Bzv1mnCZ5iAWFbGb6VBn1X27XBs4JaqxmMn4elj6to Mz528RZPRBExsUoffGLC5D28mPmppVE4rzLsOrVLpMcDePcn1+ptNd8LzPTlNfr3kHrYjnaGTAN5B ld+cV0S2hHdjz8xZflqRnliFpz3zRcPKPpCzCr/YnKs/2NsNq0CrJGNj+WtqcOkJ/Kga5Kppe3UWR Efj+JUkGbCeDa1/fiH2DDDdtoP5rYNc+veo/sfCGMtrOdpXKE3c09yjdw02cyphgVnf/HNr/8S9NF YxyaOfxeZmY9EkqnlPkr+g==; In-Reply-To: <871q7i6c0q.fsf@zohomail.eu> (message from Rahguzar on Sat, 06 Apr 2024 11:57:09 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146258 Archived-At: > From: Rahguzar > Date: Sat, 06 Apr 2024 11:57:09 +0200 > > I have a question about proced: > > 1) The pmem construct in proced corresponds to the percentage of memory used > by a process. However the total memory used for this calculation > includes swap. Is it possible to limit this to just RAM? 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? > 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.