Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1168

VPP 18.01.1 fails to start due to ftruncate: Invalid argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • None
    • None
    • VPPInfra

      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:

      1. 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;
      • int n_pages;
        + long n_pages;
        int old_mpol = -1;
        u64 old_mask[16] = { 0 }

        ;

            dmarion Damjan Marion
            lroberts Lee Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: