Re: pkg/56628

"Santhosh Raju via gnats" <[email protected]> Thu, 9 Apr 2026 18:35:01 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
The following reply was made to PR pkg/56628; it has been noted by GNATS.

From: Santhosh Raju <[email protected]>
To: [email protected]
Cc: Thomas Klausner <[email protected]>
Subject: Re: pkg/56628
Date: Thu, 9 Apr 2026 20:31:41 +0200

 The root cause of this was identified back to the sysutils/py-psutil
 package and how it computes the swap. The fix was to remove psutil's
 dependency on procfs to derive the CPU / memory statistics and get
 them via sysctl(3) calls in psutil.
 - https://pkgsrc.se/[email protected]
 - https://pkgsrc.se/[email protected]
 - https://pkgsrc.se/[email protected]
 
 sysutils/py-Glances uses this library to derive the various CPU /
 Memory metrics that it displays in the UI.
 
 As of py313-Glances-4.5.3 and py313-psutil-7.2.2nb2 (which are both
 available in pkgsrc-current), this issue should be fixed.
 - No longer glances process grows to a large size due to memory leak
 (especially when putting it up for extended periods).
 - The swap statistics should be shown correctly.
 
 Upstream fixes have been submitted to psutil and this has been merged,
 so future updates of sysutils/py-psutils should no longer (hopefully)
 break glances.
 - https://github.com/giampaolo/psutil/pull/2805
 
 P.S: I know this is a very delayed reply to a report from 2022, but
 better to address it late than never.
 
 P.S: Will wait a couple of months before closing the ticket in case
 the original reporter wants to reply back.
 
 Regards
 Santhosh