Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1886258

Summary: mem.vmstat.drop_pagecache & mem.vmstat.drop_slab are always zero
Product: Red Hat Enterprise Linux 8 Reporter: Yogesh Babar <ybabar>
Component: pcpAssignee: pcp-maint <pcp-maint>
Status: CLOSED DUPLICATE QA Contact: Jan Kurik <jkurik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: agerstmayr, jkurik, mgoodwin, nathans, patrickm
Target Milestone: rcKeywords: Reopened
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pcp-5.2.2-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-08 05:38:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yogesh Babar 2020-10-08 05:01:45 UTC
Description of problem:

mem.vmstat.drop_pagecache & mem.vmstat.drop_slab metric values are always zero though the /proc/vmstat reflects them properly. 

Version-Release number of selected component (if applicable):
pcp-5.0.2-5.el8.x86_64

How reproducible:


Steps to Reproduce:
1. drop the cache couple of times 
 
$echo 3 > /proc/sys/vm/drop_caches
$ echo 3 > /proc/sys/vm/drop_caches
$ echo 2 > /proc/sys/vm/drop_caches
$ echo 2 > /proc/sys/vm/drop_caches
$ echo 1 > /proc/sys/vm/drop_caches

2. The /proc/vmstat has refelected the values: 

$ cat /proc/vmstat | grep -i drop
  drop_pagecache 2
  drop_slab 2

3. but PCP is not able to read it properly. Its always zero: 

$ pmrep mem.vmstat.drop_pagecache
  m.v.drop_pagecache
  count/s
  N/A
  0.000
  0.000
  0.000
  0.000
  0.000

$ pmrep mem.vmstat.drop_slab
  m.v.drop_slab
  count/s
  N/A
  0.000
  0.000
  ^C


Actual results:

mem.vmstat.drop_pagecache & mem.vmstat.drop_pagecache metric values are always zero

Expected results:

They should reflect the real time values. 

Additional info:

Comment 1 Nathan Scott 2020-10-08 05:04:27 UTC
Will be resolved via rebase in 8.4 - marking as dup to simplify tracking.

*** This bug has been marked as a duplicate of bug 1854035 ***

Comment 2 Nathan Scott 2020-10-08 05:38:04 UTC

*** This bug has been marked as a duplicate of bug 1854035 ***