Summary: | [PATCH] sysutils/htop miscalculates available memory | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | freebsd | ||||||||||||||
Component: | Individual Port(s) | Assignee: | Pav Lucistnik <pav> | ||||||||||||||
Status: | Closed FIXED | ||||||||||||||||
Severity: | Affects Only Me | ||||||||||||||||
Priority: | Normal | ||||||||||||||||
Version: | Latest | ||||||||||||||||
Hardware: | Any | ||||||||||||||||
OS: | Any | ||||||||||||||||
Attachments: |
|
Description
freebsd
2011-05-20 01:10:09 UTC
Responsible Changed From-To: freebsd-ports-bugs->yzlin Over to maintainer (via the GNATS Auto Assign Tool) Here is my rewritten patch. It uses sysctl and llibkvm for memory info, without linux proc. I think that there is a need to include it to sysutils/htop and bump portversion. 2011/7/24 Sayetsky Anton <jason@linux.lg.ua>: > Here is my rewritten patch. It uses sysctl and llibkvm for memory > info, without linux proc. > I think that there is a need to include it to sysutils/htop and bump > portversion. > Sorry, there is a small difference (about 40 mbytes) between used mem that reports top and htop with previous patch. I've attached a new version of ProcessList.c patch. Also, may we need to add special counter for inactive memory? Responsible Changed From-To: yzlin->pav Maintainer was changed State Changed From-To: open->feedback Is this still valid for 0.9? If yes, can you contact the new maintainer about it? Yes, htop-0.9 still has bug with memory calculation. I will write a patch for new version as soon as possible. Here is a patch for htop-0.9, with it htop calculates all memory usage correctly ("used mem" in htop means freebsd's active memory). Please, bump portrevision and commit. State Changed From-To: feedback->closed Committed, thanks! pav 2011-08-12 08:30:34 UTC FreeBSD ports repository Modified files: sysutils/htop Makefile sysutils/htop/files patch-configure.ac Added files: sysutils/htop/files patch-ProcessList.c Log: - Fix calculation of available memory PR: ports/157195 Submitted by: Sayetsky Anton <jason@linux.lg.ua> Approved by: Hung-Yi Chen <gaod@hychen.org> (maintainer) Revision Changes Path 1.21 +1 -0 ports/sysutils/htop/Makefile 1.5 +87 -0 ports/sysutils/htop/files/patch-ProcessList.c (new) 1.4 +11 -3 ports/sysutils/htop/files/patch-configure.ac _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" |