Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1685990 - procps doesn't honor Slab SRreclaimable SUnreclaim
Summary: procps doesn't honor Slab SRreclaimable SUnreclaim
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: procps
Version: 6.10
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Jan Rybar
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-06 13:42 UTC by Gerrit Slomma
Modified: 2019-03-27 16:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-27 16:11:25 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Gerrit Slomma 2019-03-06 13:42:37 UTC
Description of problem:

procps doesn't honor SReclaimable, therefore used and free without buffers/cache in free is not used or free, respectively.
Therefore information for used/free memory is off.

Version-Release number of selected component (if applicable):

procps.x86_64   3.2.8-45.el6_9.3

How reproducible:

query memoryinfo via free and /proc/meminfo

Steps to Reproduce:
1. invoke free && cat /proc/meminfo
2. see and verify results
3.

Actual results:

[root@V0001350 ~]# free && cat /proc/meminfo
             total       used       free     shared    buffers     cached
Mem:       8060928    7746052     314876      35348     342956    2743788
-/+ buffers/cache:    4659308    3401620
Swap:      6185980      51484    6134496
MemTotal:        8060928 kB
MemFree:          314944 kB
Buffers:          342956 kB
Cached:          2743788 kB
SwapCached:         4684 kB
Active:          4658748 kB
Inactive:        2457124 kB
Active(anon):    3133348 kB
Inactive(anon):   931128 kB
Active(file):    1525400 kB
Inactive(file):  1525996 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       6185980 kB
SwapFree:        6134496 kB
Dirty:             33568 kB
Writeback:             0 kB
AnonPages:       4026204 kB
Mapped:            43168 kB
Shmem:             35348 kB
Slab:             522636 kB
SReclaimable:     490832 kB
SUnreclaim:        31804 kB
KernelStack:       11152 kB
PageTables:        13644 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    10216444 kB
Committed_AS:    4743376 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      173088 kB
VmallocChunk:   34359551276 kB
HardwareCorrupted:     0 kB
AnonHugePages:   3325952 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       16384 kB
DirectMap2M:     8372224 kB

Expected results:

Something along the lines of cache should include SReclaimable and SUnreclaim (or Slab, for that matter).
Free and used in -/+ buffers/cache should reflect SReclaimable
e.g. for above:
[root@V0001350 ~]# free && cat /proc/meminfo
             total       used       free     shared    buffers     cached
Mem:       8060928    7746052     314876      35348     342956    3234620
-/+ buffers/cache:    4168476    3892452
Swap:      6185980      51484    6134496

Additional info:

Works in Red Hat Enterprise Linux 7

[root@v0001694 ~]# free && cat /proc/meminfo
              total        used        free      shared  buff/cache   available
Mem:        8009268     4647608      475552         856     2886108     3000152
Swap:       4194300       84992     4109308
MemTotal:        8009268 kB
MemFree:          475552 kB
MemAvailable:    3000152 kB
Buffers:          243724 kB
Cached:          2144976 kB
SwapCached:        12064 kB
Active:          4681500 kB
Inactive:        2222380 kB
Active(anon):    3417476 kB
Inactive(anon):  1098560 kB
Active(file):    1264024 kB
Inactive(file):  1123820 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4194300 kB
SwapFree:        4109308 kB
Dirty:               740 kB
Writeback:             0 kB
AnonPages:       4503612 kB
Mapped:            42024 kB
Shmem:               856 kB
Slab:             497408 kB
SReclaimable:     442652 kB
SUnreclaim:        54756 kB
KernelStack:       14400 kB
PageTables:        18816 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     8198932 kB
Committed_AS:    5853304 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      162652 kB
VmallocChunk:   34359341052 kB
HardwareCorrupted:     0 kB
AnonHugePages:   3016704 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      131008 kB
DirectMap2M:     8257536 kB

Comment 2 Jan Rybar 2019-03-27 16:11:25 UTC
Red Hat Enterprise Linux 6 is in the Maintenance Support 2 Phase. During the Maintenance Support 2 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:
http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Maintenance Support 2 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification.  Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com


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