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.
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:
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
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.
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.
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
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: