From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rahguzar Newsgroups: gmane.emacs.help Subject: Re: Questions about proced Date: Sun, 07 Apr 2024 17:33:50 +0200 Message-ID: <875xwt89f7.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.5; emacs 29.3 Cc: help-gnu-emacs@gnu.org To: eliz@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 08 06:56:11 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 1rth3C-0008gb-Ib for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 08 Apr 2024 06:56:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rth2b-00015x-0k; Mon, 08 Apr 2024 00:55:33 -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 1rtUgx-0002NO-E4 for help-gnu-emacs@gnu.org; Sun, 07 Apr 2024 11:44:23 -0400 Original-Received: from sender-pp-o91.zoho.eu ([136.143.169.91]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtUgv-0005lZ-LN; Sun, 07 Apr 2024 11:44:23 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1712504655; cv=none; d=zohomail.eu; s=zohoarc; b=GkvDSVokSMp7kD7j1D8eQpRH0M0NAiCXY6Z/acO8PPxMrtONJBHzzdv/XkRpU58GZDg0NlZwHbjsXLznX514GVT3nOTqSNqo+WBHXWvBcwKmD/0VB/KaCNrnT10M21XOK+gUNs1AMscutJHxJxYnLuZzo1XF8UjrihHOXxV90uo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1712504655; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=EnqsDQpDoLBk9eqLiP4vflySjhzM47YJ9FRL9zUwMI8=; b=YCPxEhzH68Vybq7iIYO5ZGdwYiduan53ESpNc3f+77VFGsuC3R3SkGztozoca/WdV6n/oIhp7pwnxSq9zPRI0WwUMa0osqTQeicMUpMBPQ5zgQaaeSxEbtABKaGXCA/0b0nmI+kQ5xPfDgsDfBYaF2dL7fRvTT11R3wVUsLV6kg= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1712504655; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=EnqsDQpDoLBk9eqLiP4vflySjhzM47YJ9FRL9zUwMI8=; b=GGUJrMnEgdRnVEkIMIuUggMGUv/SmKwXoLOonj25bUzv1e9xOP5Pbh/eVthSnL0B jDRY8OU/9PcZ+2KjBKXoYBV+GO0iHLlpVweR6VUCn6bfECMqxRW6Is449DPws9ZrEb3 oqyPPI0g6Nhs+aGPaaVbXP4HGvZHTXS1io3ErxhM= Original-Received: from localhost (46.252.3.45 [46.252.3.45]) by mx.zoho.eu with SMTPS id 1712504653785150.2147936628486; Sun, 7 Apr 2024 17:44:13 +0200 (CEST) In-Reply-To: 86ttke1izq.fsf@gnu.org X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.91; envelope-from=rahguzar@zohomail.eu; helo=sender-pp-o91.zoho.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 08 Apr 2024 00:55:31 -0400 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:146270 Archived-At: 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