RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1457956 - PCP pmval "No values available"
Summary: PCP pmval "No values available"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcp
Version: 7.2
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Nathan Scott
QA Contact: Michal Kolar
URL:
Whiteboard:
Depends On: 1472153
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2017-06-01 15:43 UTC by David Wood
Modified: 2021-06-10 12:23 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 17:04:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0926 0 None None None 2018-04-10 17:05:50 UTC

Description David Wood 2017-06-01 15:43:27 UTC
Description of problem:
some PCP metrics don't show expected values.  for example...

[root@server ~]# pmval mem.vmstat.pgsteal_normal

metric:    mem.vmstat.pgsteal_normal
host:      fireball.americas.sgi.com
semantics: cumulative counter (converting to rate)
units:     count (converting to count / sec)
samples:   all
No values available
No values available
No values available
No values available


Version-Release number of selected component (if applicable):
PCP 3.9 and PCP 3.11

How reproducible:
it occurs on some metrics.  i don't know exactly how many, but i've seen it with these...

pmval mem.vmstat.kswapd_steal
pmval mem.vmstat.pgsteal_dma
pmval mem.vmstat.pgsteal_dma32
pmval mem.vmstat.pgsteal_high
mem.vmstat.pgsteal_movable
mem.vmstat.pgsteal_normal

Steps to Reproduce:
1. pmval mem.vmstat.pgsteal_normal

Actual results:
No values available

Expected results:
0.0

Additional info:

Comment 2 Nathan Scott 2017-06-02 07:21:06 UTC
Hi David,

Thanks for reporting this.  It turns out this is the expected behavior when accessing these PCP metrics from kernels that do not provide the underlying instrumentation in /proc/vmstat.  It's a moving feast with this procfs file; some fields are transient depending on kernel version, architecture and kernel-build-options.

cheers.

Comment 4 Mark Goodwin 2017-07-06 03:38:59 UTC
Hi David,

the PCP Linux PMDA code is scanning for these strings :

$ grep \"pgsteal proc_vmstat.c
    { .field = "pgsteal_dma",
    { .field = "pgsteal_dma32",
    { .field = "pgsteal_high",
    { .field = "pgsteal_movable",
    { .field = "pgsteal_normal",

which are mapped to these metrics :

$ pminfo | grep pgsteal
mem.vmstat.pgsteal_dma
mem.vmstat.pgsteal_dma32
mem.vmstat.pgsteal_high
mem.vmstat.pgsteal_movable
mem.vmstat.pgsteal_normal

but /proc/vmstat on my system (Fedora-25) only has the following "pgsteal" metrics available :

$ grep pgsteal /proc/vmstat
pgsteal_kswapd 1172576
pgsteal_direct 1126

On your system you have :

[root@fireball ~]# grep pgsteal /proc/vmstat
pgsteal_kswapd_dma 0
pgsteal_kswapd_dma32 0
pgsteal_kswapd_normal 0                                            <-- metric here
pgsteal_kswapd_movable 0
pgsteal_direct_dma 0
pgsteal_direct_dma32 0
pgsteal_direct_normal 0                                               <-- metric here
pgsteal_direct_movable 0

Since you're running pmval mem.vmstat.pgsteal_normal which needs "pgsteal_normal" in
/proc/vmstat the result is No Values Available, which is correct.

I acknowledge there are quite a few combinations of the pgsteal metrics that PCP is
not reporting, e.g. "pgsteal_kswapd_normal" and "pgsteal_direct_normal", and others.
So we could add support for those missing metrics. But the bug as it stands is NOTABUG
because the values you're after are not present in /proc/vmstat on your system.

TO me it looks like pgsteal_normal may have been split into two kswapd_normal and
direct_normal in newer kernels ... I haven't checked this in the kernel but can if
you like. If that's the case, we'd rather just add support for the new metrics but
keep the current pgsteal_normal (and similarly named metrics) because they would
still be valid on older kernels.

Regards
-- Mark Goodwin

Comment 5 Mark Goodwin 2017-07-18 06:08:36 UTC
Will work on this when I get time, as per Comment #4 (add the missing metrics).

Comment 6 David Wood 2017-08-04 15:26:06 UTC
Mark, Yes that sounds great.
Thank You

Comment 7 Nathan Scott 2017-09-25 23:27:48 UTC
With the help of our friends at Fujitsu, this work has been done in the upstream PCP community.  Just a bit of automated regression testing work remains to complete it but that should be no problem at all - I'll get that done.

Comment 9 Michal Kolar 2018-02-13 10:17:53 UTC
Reproduced against pcp-3.10.6-2.el7 on rhel-7.2 and verified against pcp-3.12.2-5.el7 on rhel-7.5 (kernel-3.10.0-843.el7).

Comment 13 errata-xmlrpc 2018-04-10 17:04:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0926


Note You need to log in before you can comment on or make changes to this bug.