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 1188948

Summary: anaconda doesn't work well with specified option "hugepagesz/hugepages"
Product: Red Hat Enterprise Linux 7 Reporter: Shanzhi Yu <shyu>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: dyuan, lcapitulino, mkovarik, mzhan, shyu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-21.48.22.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 09:53:27 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:
Attachments:
Description Flags
anaconda log none

Description Shanzhi Yu 2015-02-04 05:57:37 UTC
Description of problem:

anaconda doesn't work well with specified option "hugepagesz/hugepages" 

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


How reproducible:

100%

Steps to Reproduce:

1. Add hugepagesz and hugepages options in kickstarts file, like below:

bootloader --append "crashkernel=256M console=tty0 console=ttyS0,115200 reboot=pci biosdevname=0 net.ifnames=0 hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=500" --location=mbr

2. Install a new host with latest RHEL7.1 tree(RHEL-7.1-20150129.0)

3. After finishing installation, login host and check hugepage info

# hugeadm --pool-list
      Size  Minimum  Current  Maximum  Default
   2097152        1        1        1        *
1073741824       28       28       28

# cat  /sys/kernel/mm/hugepages/hugepages-{1048576kB,2048kB}/nr_hugepages
28
1

4. Check the /proc/cmdline
# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-227.el7.x86_64
root=/dev/mapper/rhel_dell--per415--02-root ro hugepages=1 hugepagesz=2M
hugepagesz=1G console=tty0 net.ifnames=0 console=ttyS0,115200
crashkernel=auto reboot=pci hugepages=500 rd.lvm.lv=rhel_dell-per415-02/root
rd.lvm.lv=rhel_dell-per415-02/swap biosdevname=0 rhgb quiet LANG=en_US.UTF-8


Actual results:
 
hugepagesz and hugepages is in disorder, not same as what specified in kickstart file, this will lead the wrong hugepages 


Expected results:


Additional info:

Comment 2 David Shea 2015-02-04 06:11:30 UTC
Please attach the log files from the installation, available in /var/log/anaconda in the installed system, to this bug as individual, text/plain attachments

Comment 3 Shanzhi Yu 2015-02-04 08:11:17 UTC
Created attachment 987977 [details]
anaconda log

Note:
I add line "bootloader --append "crashkernel=256M console=tty0 console=ttyS0,115200 reboot=pci biosdevname=0 intel_iommu=on amd_iommu=on default_hugepagesz=1G hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=500" --location=mbr" in kickstart file, get the anaconda log as the attachment.

Comment 4 Luiz Capitulino 2015-02-04 14:34:20 UTC
The cause of the problem is that the hugepage kernel command-line options are sensitive to ordering. So this:

hugepagesz=1G hugepages=1

Instructs the kernel to allocate one 1GB page at boot, while this:

hugepages=1 hugepagesz=1G

Instructs the kernel to allocate one hugepage of the default size _and_ make 1GB page support available.

Comment 5 Chris Lumens 2015-04-08 17:04:25 UTC
39a7f9ec367106396d6ed62df4df7ce7e20576eb from master

Comment 8 errata-xmlrpc 2015-11-19 09:53:27 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://rhn.redhat.com/errata/RHBA-2015-2284.html