contrail-vrouter-dpdk cannot use 1G hugepages on linux kernel 4.13+

Bug #1795403 reported by Mikhail Chernik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenContrail
New
Undecided
Unassigned

Bug Description

Starting from Linux kernel 4.13-rc1 format reporting hugetlbfs page size is changed:

OLD: Hugetlbfs-kvm /mnt/hugepages_1G hugetlbfs mode=775,pagesize=1G 0 0
NEW: Hugetlbfs-kvm /mnt/hugepages_1G hugetlbfs rw,relatime,mode=775,pagesize=1024M 0 0

(commit: https://github.com/torvalds/linux/commit/4a25220d4e43bb2461823dbc7eb1502a34087958 )

OpenContrail checks available page sizes by comparing mounted huge page options to "1G":

     if (strstr(options, "pagesize=1G")) {

https://github.com/Juniper/contrail-vrouter/blob/master/dpdk/vr_dpdk_table_mem.c#L74

Since pagesize is now displayed as "1024M", OpenContrail fails to recognize that 1G hugepages are available, and does not try to allocate memory. If only 1G hugepages are available on a system, contrail-vrouter-dpdk fails to start.

The issues affects all supported versions, including master branch

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.