From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f45.google.com (mail-yw1-f45.google.com [209.85.161.45]) by dpdk.org (Postfix) with ESMTP id 507FE4CA9 for ; Mon, 22 Oct 2018 13:09:07 +0200 (CEST) Received: by mail-yw1-f45.google.com with SMTP id x7-v6so164975ywf.9 for ; Mon, 22 Oct 2018 04:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4/houBndasc1Z93lEBTlAxKSbdoEdf45oHiZIJHp56k=; b=JRMd3MGT6LKddEjPhq4qylUDKw9U5WskMEtjzbxcdu/s4NbBzOuvNFsTrIOjsOOXX+ +ae2PzFBUtn3i0J2Dvpkljsl0IZydYdTltrABFGjCzpg1dFaOa0DxdrkQmYfQDndxzOD V3y5O3MffFr2AiqVUtLD9eXmUjotECgMZIcIbpYMZfp5hjY0MJTVuTjxmXVqew47RjKR keSWhALh7i1sq43xS8d7e61Z3FdEX4VrVuiV/ZTd4KpGJp15JJ9p7ta4hCQDyrCm2xMw 0JfTHK4/cGlxymCvEOHumO9Rk9KJykSHcEx2iNOx2TwOfAYmbW7VpJPVXWMhs11VJ2k1 zmag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4/houBndasc1Z93lEBTlAxKSbdoEdf45oHiZIJHp56k=; b=VYqaVBRssHxthFQaSw+IkFbUTJYETZxFK9/005MnZQlXwNDDm+1ldreMvJkprZBtGQ F3a8IlLDIXhtCUT2fNQP2EaUc5QM4cqsE6CxrqZOpBIvwxp4nmVO9FjHlAJHJWOozXBE DfaubNrzLWHdFRvPg+VKDCbA0xdIGhDdtaql11g4bPv+DO73VTi5Ry5X5nrtOWWBcwtM XrkNHCZLU/3AZ2OuylJCUlX8fNS7hI9XMucVIzG9z3+jtMEt40zJfZEN6iCu1LijSwFx sNQZsSjcjHfe9sLNw97F71jdMgtXrbG89H+ADVVIUy/YxrGM3KAwP8ibLk+KzR7Pozwz Yyxw== X-Gm-Message-State: ABuFfogYLJewDtlWH22Nc8eC9PbIHBfMr17084HEjtxMOfuPusJno7kn 9LsobRJo90FmZyCT1eFTyer12J6e5huC2zTv40UG7w== X-Google-Smtp-Source: ACcGV60ucNQnAbNiWL8XEd6rEVakhA9hFkvPBjBlllLKZQq+4TKQ5cxbJJHFlLYYae7S9mrPp9H6CAl0CoZMZ36H+Ac= X-Received: by 2002:a81:6c12:: with SMTP id h18-v6mr664573ywc.116.1540206546524; Mon, 22 Oct 2018 04:09:06 -0700 (PDT) MIME-Version: 1.0 References: <0db47ae8-8811-0a21-b56e-ac8d58f403cc@intel.com> In-Reply-To: From: Kenvish Butani Date: Mon, 22 Oct 2018 16:38:54 +0530 Message-ID: To: anatoly.burakov@intel.com Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] testpmd crashes with Invalid NUMA socket, default to 0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2018 11:09:07 -0000 Thanks a lot Anatoly for your inputs ! *This got fixed by reserving total of "512" hugepages.* Thanks a lot :) Appreciate. Thanks, --Kenvish On Mon, Oct 22, 2018 at 3:16 PM Burakov, Anatoly wrote: > On 22-Oct-18 10:28 AM, Kenvish Butani wrote: > > Thanks a lot for your prompt reply ! > > > > JFYI, The invalid NUma socket was resolved by manually changing the > > entry to 0 > > > > echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/uio/uio0/device/numa_node > > echo 0 > /sys/bus/pci/devices/0000\:01\:00.1/uio/uio1/device/numa_node > > > > # ./testpmd-cc-on-local -c 0xF -n 1 --log-level=eal,8 > > EAL: Detected lcore 0 as core 0 on socket 0 > > EAL: Detected lcore 1 as core 0 on socket 1 > > EAL: Detected lcore 2 as core 1 on socket 0 > > EAL: Detected lcore 3 as core 1 on socket 1 > > EAL: Detected lcore 4 as core 2 on socket 0 > > EAL: Detected lcore 5 as core 2 on socket 1 > > EAigb_uio 0000:01:00.0: uio device registered with irq 44 > > L: Detected lcore 6 as core 8 on socket 0 > > EAL: Detected lcore 7 as core 8 on socket 1 > > EAL: Detected lcore 8 as core 9 on socket 0 > > EAL: Detected lcore 9 as core 9 on socket 1 > > EAL: Detected lcore 10 as core 10 on socket 0 > > EAL: Detected lcore 11 as core 10 on socket 1 > > EAL: Detected lcore 12 as core 0 on socket 0 > > EAL: Detected lcore 13 as core 0 on socket 1 > > EAL: Detected lcore 14 as core 1 on socket 0 > > EAL: Detected lcore 15 as core 1 on socket 1 > > EAL: Detected lcore 16 as core 2 on socket 0 > > EAL: Detected lcore 17 as core 2 on socket 1 > > EAL: Detected lcore 18 as core 8 on socket 0 > > EAL: Detected lcore 19 as core 8 on socket 1 > > EAL: Detected lcore 20 as core 9 on socket 0 > > EAL: Detected lcore 21 as core 9 on socket 1 > > EAL: Detected lcore 22 as core 10 on socket 0 > > EAL: Detected lcore 23 as core 10 on socket 1 > > EAL: Support maximum 128 logical core(s) by configuration. > > EAL: Detected 24 lcore(s) > > EAL: Detected 2 NUMA nodes > > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > > EAL: DPAA Bus not present. Skipping. > > EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or > > directory) > > EAL: VFIO PCI modules not loaded > > EAL: Probing VFIO support... > > EAL: Module /sys/module/vfio not found! error 2 (No such file or > directory) > > EAL: VFIO modules not loaded, skipping VFIO support... > > EAL: Ask a virtual area of 0x2e000 bytes > > EAL: Virtual area found at 0x7fdf72c49000 (size = 0x2e000) > > EAL: Setting up physically contiguous memory... > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf72be8000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 0 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fdb70c00000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf72b87000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 0 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fd770a00000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf72b26000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 0 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fd370800000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf72ac5000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 0 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fcf70600000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf70d30000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 1 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fcb70400000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf70ccf000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 1 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fc770200000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf70c6e000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 1 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fc370000000 (size = 0x400000000) > > EAL: Ask a virtual area of 0x61000 bytes > > EAL: Virtual area found at 0x7fdf70c0d000 (size = 0x61000) > > EAL: Memseg list allocated: 0x800kB at socket 1 > > EAL: Ask a virtual area of 0x400000000 bytes > > EAL: Virtual area found at 0x7fbf6fe00000 (size = 0x400000000) > > EAL: TSC frequency is ~2394274 KHz > > EAL: Master lcore 0 is ready (tid=72c7ec00;cpuset=[0]) > > EAL: lcore 1 is ready (tid=6f5fe700;cpuset=[1]) > > EAL: lcore 2 is ready (tid=6edfd700;cpuset=[2]) > > EAL: lcore 3 is ready (tid=6e5fc700;cpuset=[3]) > > EAL: Trying to obtain current memory policy. > > EAL: Setting policy MPOL_PREFERRED for socket 0 > > EAL: Restoring previous memory policy: 0 > > EAL: request: mp_malloc_sync > > EAL: Heap on socket 0 was expanded by 2MB > > EAL: PCI device 0000:01:00.0 on NUMA socket 0 > > EAL: probe driver: 8086:10a7 net_e1000_igb > > EAL: PCI memory mapped at 0x7fdf72aa5000 > > EAL: PCI memory mapped at 0x7fdf72aa1igb_uio 0000:01:00.1: uio device > > registered with irq 45 > > 000 > > EAL: PCI device 0000:01:00.1 on NUMA socket 0 > > EAL: probe driver: 8086:10a7 net_e1000_igb > > EAL: PCI memory mapped at 0x7fdb70be0000 > > EAL: PCI memory mapped at 0x7fdf72a9d000 > > EAL: Module /sys/module/vfio not found! error 2 (No such file or > directory) > > EAL: Trying to obtain current memory policy. > > EAL: Setting policy MPOL_PREFERRED for socket 0 > > EAL: alloc_seg(): allocation happened on wrong socket (wanted 0, got 1) > > EAL: attempted to allocate 45 segments, but only 31 were allocated > > EAL: Restoring previous memory policy: 0 > > EAL: Trying to obtain current memory policy. > > EAL: Setting policy MPOL_PREFERRED for socket 1 > > EAL: alloc_seg(): allocation happened on wrong socket (wanted 1, got 0) > > EAL: attempted to allocate 45 segments, but only 32 were allocated > > EAL: Restoring previous memory policy: 0 > > EAL: Error - exiting with code: 1 > > Cause: rte_zmalloc(32 struct rte_port) failed > > This looks like you don't have enough memory. What probably happened is, > you've reserved some huge pages but they were spread across sockets, so > you don't have enough on any given socket, even though technically you > may have enough memory as far as total amount is concerned. > > My advice would be to increase the total number of reserved hugepages. > > > > > > > Is vfio driver mandatory ? i see few error messages related to it. > > These errors are harmless. > > > > > Also, I see few error messages related to memory allocation, but I am > > not sure how to fix this. Can you please help me out here. > > > > Thanks, > > --Kenvish > > -- > Thanks, > Anatoly >