aboutsummaryrefslogtreecommitdiffstats
path: root/debian/dpdk-init
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-09-12 12:27:45 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-09-12 12:27:45 +0200
commit36349293f4553e87c9ae17960f177c59843ae884 (patch)
treeb9089d2dff9e1b9ad015f38e62cd0c709367f01b /debian/dpdk-init
parentc8d650a3535d38e3ef9012616e137dbd30d60d78 (diff)
runtime: add 16M hugepages to config and init
ppc64el has 16M huge pages so they are added to the config and init scripts. Along that it became obvious that the comment in the conf should be tweaked at least a bit to be more readable. Change-Id: Ic97f20f17203b0a423439f7a6323879e25c47886 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/dpdk-init')
-rwxr-xr-xdebian/dpdk-init4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/dpdk-init b/debian/dpdk-init
index 2872e498..103488ed 100755
--- a/debian/dpdk-init
+++ b/debian/dpdk-init
@@ -124,6 +124,9 @@ mount_hugetlbfs() {
if [ -n "${NR_2M_PAGES}" -a -z "$(get_hugetlbfs_mountpoint '2M')" ]; then
_mount_hugetlbfs 2M
fi
+ if [ -n "${NR_16M_PAGES}" -a -z "$(get_hugetlbfs_mountpoint '16M')" ]; then
+ _mount_hugetlbfs 16M
+ fi
if [ -n "${NR_1G_PAGES}" -a -z "$(get_hugetlbfs_mountpoint '1G')" ]; then
_mount_hugetlbfs 1G
fi
@@ -166,6 +169,7 @@ setup_hugepages() {
. /etc/dpdk/dpdk.conf
_setup_hugepages "hugepages-2048kB" "$NR_2M_PAGES"
+ _setup_hugepages "hugepages-16384kB" "$NR_16M_PAGES"
_setup_hugepages "hugepages-1048576kB" "$NR_1G_PAGES"
# dpdk uses 2*#hugepages mappings, increase for huge systems LP #1507921