-
Bug
-
Resolution: Done
-
Highest
-
None
-
None
-
vpp# show version verbose
Version: v18.01.1-release
Compiled by: root
Compile host: tqt100
Compile date: Wed Feb 14 13:25:28 MST 2018
Compile location: /opt/vpp
Compiler: GCC 5.4.0 20160609
Current PID: 4906
vpp#- uname -a
Linux tqt100 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- numactl -H
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
node 0 size: 96413 MB
node 0 free: 87621 MB
node 1 cpus: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
node 1 size: 96764 MB
node 1 free: 87911 MB
node distances:
node 0 1
0: 10 21
1: 21 10 - cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.0-109-generic.efi.signed root=UUID=b1c25522-d313-4f0a-b9a2-0deefd775ca2 ro intel_iommu=on iommu=pt isolcpus=1-19,21-39 nohz_full=1-19,21-39 rcu_nocbs=1-19,21-39 hugepagesz=2MB hugepages=8192 default_hugepagesz=2MB intel_pstate=disable processor.max_cstate=0 intel_idle.max_cstate=0
- cat /etc/vpp/startup.conf
unix {
nodaemon
log /tmp/vpp.log
full-coredump
cli-listen /run/vpp/cli.sock
}api-trace {
on
}api-segment {
gid vpp
}cpu {
main-core 1
corelist-workers 2-13,22-33
}dpdk {
{ num-rx-queues 3 num-tx-queues 3 num-tx-desc 1024 num-rx-desc 1024 }
socket-mem 4096,4096
dev defaultnum-mbufs 1310720
no-multi-seg
uio-driver vfio-pci
dev 0000:12:00.0
dev 0000:12:00.1
dev 0000:13:00.0
dev 0000:13:00.1
dev 0000:af:00.0
dev 0000:af:00.1
dev 0000:b0:00.0
dev 0000:b0:00.1
dev 0000:39:01.0
dev 0000:39:01.1
dev 0000:39:01.2
dev 0000:39:01.3
dev 0000:3a:01.0
dev 0000:3a:01.1
dev 0000:3a:01.2
dev 0000:3a:01.3
dev 0000:3b:01.0
dev 0000:3b:01.1
dev 0000:3b:01.2
dev 0000:3b:01.3
dev 0000:88:01.0
dev 0000:88:01.1
dev 0000:88:01.2
dev 0000:88:01.3
dev 0000:89:01.0
dev 0000:89:01.1
dev 0000:89:01.2
dev 0000:89:01.3
dev 0000:8a:01.0
dev 0000:8a:01.1
dev 0000:8a:01.2
dev 0000:8a:01.3- vdev cryptodev_aesni_mb_pmd,socket_id=0
- vdev cryptodev_aesni_mb_pmd,socket_id=1
}
- Adjusting the plugin path depending on where the VPP plugins are:
#plugins
# { # path /home/bms/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins #}
- Alternate syntax to choose plugin path
#plugin_path /home/bms/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins
vpp# show version verbose Version: v18.01.1-release Compiled by: root Compile host: tqt100 Compile date: Wed Feb 14 13:25:28 MST 2018 Compile location: /opt/vpp Compiler: GCC 5.4.0 20160609 Current PID: 4906 vpp# uname -a Linux tqt100 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux numactl -H available: 2 nodes (0-1) node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 node 0 size: 96413 MB node 0 free: 87621 MB node 1 cpus: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 node 1 size: 96764 MB node 1 free: 87911 MB node distances: node 0 1 0: 10 21 1: 21 10 cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-4.4.0-109-generic.efi.signed root=UUID=b1c25522-d313-4f0a-b9a2-0deefd775ca2 ro intel_iommu=on iommu=pt isolcpus=1-19,21-39 nohz_full=1-19,21-39 rcu_nocbs=1-19,21-39 hugepagesz=2MB hugepages=8192 default_hugepagesz=2MB intel_pstate=disable processor.max_cstate=0 intel_idle.max_cstate=0 cat /etc/vpp/startup.conf unix { nodaemon log /tmp/vpp.log full-coredump cli-listen /run/vpp/cli.sock } api-trace { on } api-segment { gid vpp } cpu { main-core 1 corelist-workers 2-13,22-33 } dpdk { socket-mem 4096,4096 dev default { num-rx-queues 3 num-tx-queues 3 num-tx-desc 1024 num-rx-desc 1024 } num-mbufs 1310720 no-multi-seg uio-driver vfio-pci dev 0000:12:00.0 dev 0000:12:00.1 dev 0000:13:00.0 dev 0000:13:00.1 dev 0000:af:00.0 dev 0000:af:00.1 dev 0000:b0:00.0 dev 0000:b0:00.1 dev 0000:39:01.0 dev 0000:39:01.1 dev 0000:39:01.2 dev 0000:39:01.3 dev 0000:3a:01.0 dev 0000:3a:01.1 dev 0000:3a:01.2 dev 0000:3a:01.3 dev 0000:3b:01.0 dev 0000:3b:01.1 dev 0000:3b:01.2 dev 0000:3b:01.3 dev 0000:88:01.0 dev 0000:88:01.1 dev 0000:88:01.2 dev 0000:88:01.3 dev 0000:89:01.0 dev 0000:89:01.1 dev 0000:89:01.2 dev 0000:89:01.3 dev 0000:8a:01.0 dev 0000:8a:01.1 dev 0000:8a:01.2 dev 0000:8a:01.3 vdev cryptodev_aesni_mb_pmd,socket_id=0 vdev cryptodev_aesni_mb_pmd,socket_id=1 } Adjusting the plugin path depending on where the VPP plugins are: #plugins # { # path /home/bms/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins #} Alternate syntax to choose plugin path #plugin_path /home/bms/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins - uname -a
VPP 18.01.1 fails to start due to the following errors:
Feb 14 12:52:53 tqt100 vnet[4903]: clib_mem_vm_ext_alloc: ftruncate: Invalid argument
Feb 14 12:52:53 tqt100 vpp[4903]: dpdk_buffer_pool_create: failed to allocate mempool on socket 0
...
Feb 14 12:52:40 tqt100 systemd[1]: vpp.service: Service hold-off time over, scheduling restart.
Feb 14 12:52:40 tqt100 systemd[1]: Stopped vector packet processing engine.
Feb 14 12:52:40 tqt100 systemd[1]: Starting vector packet processing engine...
Feb 14 12:52:40 tqt100 systemd[1]: Started vector packet processing engine.
Removing the commit 67d782514941a68ea47934379e2d96050c9b2001 (https://git.fd.io/vpp/commit/?h=stable/1801&id=67d782514941a68ea47934379e2d96050c9b2001) appears to fix the problem.
Another way to fix the problem is with the following code:
- git diff
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index 0bc0878..3498615 100644-
- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -63,7 +63,7 @@ clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a)
u8 *filename = 0;
int mmap_flags = MAP_SHARED;
int log2_page_size;
- a/src/vppinfra/linux/mem.c
-
- int n_pages;
+ long n_pages;
int old_mpol = -1;
u64 old_mask[16] = { 0 };