Bug 154480 - sysutils/ganglia-monitor-core: gmond reports wrong number of running processes.
Summary: sysutils/ganglia-monitor-core: gmond reports wrong number of running processes.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 07:30 UTC by KOIE Hidetaka
Modified: 2011-05-19 19:26 UTC (History)
0 users

See Also:


Attachments
file.diff (629 bytes, patch)
2011-02-03 07:30 UTC, KOIE Hidetaka
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description KOIE Hidetaka 2011-02-03 07:30:11 UTC
gmond is in sysutils/ganglia-monitor-core.
gmond resports reports running processes >= CPU even if system is idle.
for example, on 4 CPU machine, gmond reports 4 processes are running at least.

Fix: when counting, idle threads running on each CPU must be skipped.
I don't know SWI (software interrupt) thread should be skipped.


Patch attached with submission follows:
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2011-02-03 09:21:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->brooks

over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-05-19 19:10:30 UTC
brooks      2011-05-19 18:10:20 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/ganglia-monitor-core Makefile 
    sysutils/ganglia-monitor-core/files 
                                        patch-libmetrics_freebsd_metrics.c 
  Log:
  Don't report idle processes as running processing.
  Also don't count P_NOLOAD and TDF_NOLOAD processes.
  
  PR:             ports/154480
  Submitted by:   KOIE Hidetaka <koie at suri.co.jp>
  
  Revision  Changes    Path
  1.39      +1 -1      ports/sysutils/ganglia-monitor-core/Makefile
  1.5       +29 -8     ports/sysutils/ganglia-monitor-core/files/patch-libmetrics_freebsd_metrics.c
_______________________________________________
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"
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2011-05-19 19:25:13 UTC
State Changed
From-To: open->closed

Committed with some small changes to account for the fact that 
TDF_NOLOAD doesn't exist until after 8.2.