Bug 1397730 - numastat -m shows double the amount of hugepages
Summary: numastat -m shows double the amount of hugepages
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: numactl
Version: 6.8
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Petr Oros
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 09:38 UTC by Alexander Sauta
Modified: 2017-12-06 10:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 10:27:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Alexander Sauta 2016-11-23 09:38:09 UTC
Description of problem:
numstat -m show twice the amount of HugePages then there actually are:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.8 (Santiago)
# uname -a
Linux <server> 2.6.32-642.11.1.el6.x86_64 #1 SMP Wed Oct 26 10:25:23 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
# numastat -V
numastat version: 20130723: May 22 2014
# sysctl vm.nr_hugepages
vm.nr_hugepages = 90000
# grep Huge /sys/devices/system/node/node{0,1}/meminfo
/sys/devices/system/node/node0/meminfo:Node 0 HugePages_Total: 45000
/sys/devices/system/node/node0/meminfo:Node 0 HugePages_Free:  24942
/sys/devices/system/node/node0/meminfo:Node 0 HugePages_Surp:      0
/sys/devices/system/node/node1/meminfo:Node 1 HugePages_Total: 45000
/sys/devices/system/node/node1/meminfo:Node 1 HugePages_Free:   3754
/sys/devices/system/node/node1/meminfo:Node 1 HugePages_Surp:      0
# numastat -m | grep Huge
HugePages_Total         90000.00        90000.00       180000.00 # <--
HugePages_Free          49884.00         7508.00        57392.00 # <--
HugePages_Surp              0.00            0.00            0.00

So I have 90000 of HP configured, 45000 for each node, whilst numastat shows 90000 per node or 180000 total

Version-Release number of selected component (if applicable):
numastat version: 20130723: May 22 2014

How reproducible:
100%

Actual results:
numastat shows double the amount of total huge pages

Expected results:
the same total amount of Huge Pages in numastat -m and /proc/meminfo

Comment 2 Jan Kurik 2017-12-06 10:27:43 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 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 Production 3 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. Note that a strong business justification will be required for re-evaluation. 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.