pcp
[Top] [All Lists]

[Bug 1336130] New: derived metrics between singleton and indom'd metrics

To: pcp@xxxxxxxxxxx
Subject: [Bug 1336130] New: derived metrics between singleton and indom'd metrics result in bad result indom
From: bugzilla@xxxxxxxxxx
Date: Sat, 14 May 2016 14:12:19 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
https://bugzilla.redhat.com/show_bug.cgi?id=1336130

            Bug ID: 1336130
           Summary: derived metrics between singleton and indom'd metrics
                    result in bad result indom
           Product: Fedora
           Version: rawhide
         Component: pcp
          Assignee: nathans@xxxxxxxxxx
          Reporter: fche@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
                    mgoodwin@xxxxxxxxxx, myllynen@xxxxxxxxxx,
                    nathans@xxxxxxxxxx, pcp@xxxxxxxxxxx, scox@xxxxxxxxxx



Created attachment 1157490
  --> https://bugzilla.redhat.com/attachment.cgi?id=1157490&action=edit
possible patch

Let x.conf be a file

   x = kernel.all.uptime - proc.psinfo.start_time

Let the command to run be

   env PCP_DERIVED_CONFIG=/path/to/x.conf pminfo -f x

Observe output

  x
    value 1008990.98
    value 1008990.98
    value 1008990.97
    value 1008990.97
    value 1008990.97
    value 1008990.97
    [...]

Observe absence of instances.  Let the next command to run be

   env PCP_DERIVED_CONFIG=/path/to/x.conf pminfo -d x

Observe output:
  x
    Data Type: double  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: sec

Observe mismatch: InDom should have been the indom of the right operand
(proc.psinfo.start_time).

Examine libpcp/src/derive.c, find bugs.

-- 
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=Pp8IQQFd8g&a=cc_unsubscribe
<Prev in Thread] Current Thread [Next in Thread>