pcp
[Top] [All Lists]

[Bug 1380048] New: pmlogger sends PROFILE PDU unnecessarily every fetch

To: pcp@xxxxxxxxxxx
Subject: [Bug 1380048] New: pmlogger sends PROFILE PDU unnecessarily every fetch
From: bugzilla@xxxxxxxxxx
Date: Wed, 28 Sep 2016 15:04:37 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
https://bugzilla.redhat.com/show_bug.cgi?id=1380048

            Bug ID: 1380048
           Summary: pmlogger sends PROFILE PDU unnecessarily every fetch
           Product: Fedora
           Version: rawhide
         Component: pcp
          Severity: low
          Assignee: nathans@xxxxxxxxxx
          Reporter: fche@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
                    mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
                    pcp@xxxxxxxxxxx, scox@xxxxxxxxxx



Came across this while investigating bug #1345821.

When using a pmlogger configuration file that identifies individual instances
to be fetched, pmlogger runs profile-manipulation operations at every fetch,
even if redundant (since the indom profile selection hasn't changed since the
last fetch).  This wastes CPU & network resources. 

% cat foo.conf 
 log mandatory on 1 sec { kernel.all.load ["1 minute"]  proc.psinfo.tgid
[10156] }

% rm FOO.* ; pmlogger -Dpdu -r -l / -T 10sec -c foo.conf FOO
[...steady state...]
[30654]pmXmitPDU: PROFILE fd=3 len=68
000:       44     7002        0        0        0  2000000        0  900c000 
008:  1000000  1000000        0  200000f  1000000  1000000        0 ac270000 
016:  1000000 
[30654]pmXmitPDU: FETCH fd=3 len=36
000:       24     7003        0        0        0        0  2000000    8000f 
008: 2960c000 
[30654]pmGetPDU: RESULT fd=3 len=72 from=0
000:       48     7001        0 c8dbeb57 8ae80700  2000000    8000f  1000000 
008:  1000000  1000000 10000000 2960c000  1000000        0 ac270000 ac270000 
016:  8000004 713d8a3e 
pmResult dump from 0x558e08157890 timestamp: 1475075016.518282 11:03:36.518
numpmid: 2
  60.2.0 (kernel.all.load): numval: 1 valfmt: 1 vlist[]:
    inst [1 or "1 minute"] value 0.27000001
  3.24.41 (proc.psinfo.tgid): numval: 1 valfmt: 0 vlist[]:
    inst [10156 or "010156 /bin/zsh"] value 10156

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=26qvqWD7cX&a=cc_unsubscribe
<Prev in Thread] Current Thread [Next in Thread>
  • [Bug 1380048] New: pmlogger sends PROFILE PDU unnecessarily every fetch, bugzilla <=