From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 33) id 3F1886904; Thu, 6 Dec 2018 05:13:26 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 06 Dec 2018 04:13:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 18.05 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vipin.varghese@intel.com X-Bugzilla-Status: CONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 120] secondary fails failure without option '--legacy-mem' 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: Thu, 06 Dec 2018 04:13:26 -0000 https://bugs.dpdk.org/show_bug.cgi?id=3D120 Bug ID: 120 Summary: secondary fails failure without option '--legacy-mem' Product: DPDK Version: 18.05 Hardware: All OS: All Status: CONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: vipin.varghese@intel.com Target Milestone: --- Issue Description: Primary is run with option '--legacy-mem --base-virtaddr=3D0x30000000000' in shared library mode. Secondary is start= ed without '--legacy-mem --base-virtaddr=3D0x30000000000'.=20 Workaround: run secondary with option '--legacy-mem' Question: Does not primary and secondary share rte_configuration. If yes, secondary will be knowning by default if primary is started with '--legacy-mem'. Why is that we need to pass '--legacy-mem'? Reason: Checked DPDK documentation and FAQ unable to find the dependency stating both primary and secondary requires '--legacy-mem'. Document version 18.11.0 Logs For error: # ./dpdk-procinfo -v --log-level=3Deal,8 --huge-unlink -d librte_pmd_tap= .so=20 -- --host-id versionfetch -m EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 1 on socket 0 EAL: Detected lcore 2 as core 2 on socket 0 EAL: Detected lcore 3 as core 3 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: RTE Version: 'DPDK 18.05.0' EAL: open shared lib librte_pmd_tap.so EAL: Registered [vdev] bus. EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_3240_37f93f8beb0 EAL: request: bus_vdev_mp EAL: msg: bus_vdev_mp EAL: msg: bus_vdev_mp 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 0x30000000000 (size =3D 0x2e000) EAL: Setting up physically contiguous memory... EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x3000002e000 (size =3D 0x61000) EAL: Ask a virtual area of 0x400000000 bytes EAL: Virtual area found at 0x30000200000 (size =3D 0x400000000) EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x7f7908009000 (size =3D 0x61000) EAL: TSC frequency is ~2194932 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: Master lcore 0 is ready (tid=3D806a980;cpuset=3D[0]) EAL: sendmsg: mp_malloc_request EAL: msg: mp_malloc_response error allocating rte services array EAL: FATAL: rte_service_init() failed EAL: rte_service_init() failed PANIC in main(): Cannot init EAL 5: [./dpdk-procinfo() [0x401489]] 4: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f7907145f45= ]] 3: [./dpdk-procinfo(main+0x19d) [0x402b99]] 2: [/home/test/Downloads/dpdk-18.05/x86_64-native-linuxapp-gcc/lib/librte_eal.= so.7.1(__rte_panic+0xba) [0x7f790771378b]] 1: [/home/test/Downloads/dpdk-18.05/x86_64-native-linuxapp-gcc/lib/librte_eal.= so.7.1(rte_dump_stack+0x1a) [0x7f790771fd7a]] Aborted work around: run secondary with option '--legacy-mem ' we get successful ru= n.=20 Logs: # # ./dpdk-procinfo -v --log-level=3Deal,8 --huge-unlink -d librte_pmd_tap.so --legacy-mem -- --host-id versionfetch --stats | grep -v = ": 0" EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 1 on socket 0 EAL: Detected lcore 2 as core 2 on socket 0 EAL: Detected lcore 3 as core 3 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: RTE Version: 'DPDK 18.05.0' EAL: open shared lib librte_pmd_tap.so EAL: Registered [vdev] bus. EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_3348_6651c4de8b4 EAL: request: bus_vdev_mp EAL: msg: bus_vdev_mp EAL: msg: bus_vdev_mp 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 0x30000000000 (size =3D 0x2e000) EAL: Setting up physically contiguous memory... EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x3000002e000 (size =3D 0x61000) EAL: Ask a virtual area of 0x400000000 bytes EAL: Virtual area found at 0x30000200000 (size =3D 0x400000000) EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x7f83780eb000 (size =3D 0x61000) EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel. EAL: This may cause issues with mapping memory into secondary processes EAL: Analysing 128 files EAL: TSC frequency is ~2194929 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: Master lcore 0 is ready (tid=3D7814c980;cpuset=3D[0]) EAL: Module /sys/module/vfio not found! error 2 (No such file or directory) ######################## NIC statistics for port 0 #####################= ### RX-packets: 18 RX-errors: 0 RX-bytes: 3770 RX-nombuf: 0 TX-packets: 18 TX-errors: 0 TX-bytes: 3770 Stats reg 0 TX-packets: 18 TX-bytes: 3770 #########################################################################= ### --=20 You are receiving this mail because: You are the assignee for the bug.=