From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from jaguar.aricent.com (jaguar.aricent.com [180.151.2.24]) by dpdk.org (Postfix) with ESMTP id D4ACB1FE for ; Tue, 15 Jul 2014 16:40:14 +0200 (CEST) Received: from jaguar.aricent.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E6BB218615; Tue, 15 Jul 2014 20:11:00 +0530 (IST) Received: from GURCASV03.AD.ARICENT.COM (unknown [10.203.26.102]) by jaguar.aricent.com (Postfix) with ESMTPS id 8335C218612; Tue, 15 Jul 2014 20:11:00 +0530 (IST) Received: from GURMBXV02.AD.ARICENT.COM (10.203.26.97) by GURMBXV03.AD.ARICENT.COM (10.203.26.98) with Microsoft SMTP Server (TLS) id 15.0.847.32; Tue, 15 Jul 2014 20:10:57 +0530 Received: from GURMBXV02.AD.ARICENT.COM ([169.254.4.204]) by GURMBXV02.AD.ARICENT.COM ([169.254.4.204]) with mapi id 15.00.0847.030; Tue, 15 Jul 2014 20:10:56 +0530 From: Srinivas Reddi To: Hiroshi Shimamoto , "dev@dpdk.org" Thread-Topic: MENNIC1.2 host-sim crashed for me Thread-Index: Ac+fTMUAzySYOBvfTyqMuy1ry+oBHAAchlJQABkhQhAAAUVscAAAXQjgAAPgDTA= Date: Tue, 15 Jul 2014 14:40:55 +0000 Message-ID: References: <298dba0631114e678e7ca3e487551a82@GURMBXV02.AD.ARICENT.COM> <7F861DC0615E0C47A872E6F3C5FCDDBD011528FB@BPXM14GP.gisp.nec.co.jp> In-Reply-To: <7F861DC0615E0C47A872E6F3C5FCDDBD011528FB@BPXM14GP.gisp.nec.co.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.203.2.27] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-MML: disable Subject: Re: [dpdk-dev] MENNIC1.2 host-sim crashed for me X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2014 14:40:15 -0000 Hi Hiroshi , Thanks for your comments ... I found dpdk1.6 doesn't work for MEMNIC.1.2 .. I tried with dpdk-1.7 .. It worked for me .. 1. host_sim app in host [root@localhost host-sim]# ./memnic-host-sim /dev/shm/ivshm reset reset reset 2. test pmd app in guest .. [root@localhost test-pmd]# ./testpmd -c3 -n2 -d /usr/local/lib/librte_pmd_m= emnic_copy.so -- -i --nb-cores=3D1 --nb-ports=3D1 --port-topology=3Dchained EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 0 on socket 0 EAL: Detected lcore 2 as core 0 on socket 0 EAL: Support maximum 64 logical core(s) by configuration. EAL: Detected 3 lcore(s) EAL: cannot open VFIO container, error 2 (No such file or directory) EAL: VFIO support could not be initialized EAL: Setting up memory... EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f4ccca00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x3fc00000 bytes EAL: Virtual area found at 0x7f4c8cc00000 (size =3D 0x3fc00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f4c8c800000 (size =3D 0x200000) EAL: Requesting 512 pages of size 2MB from socket 0 EAL: TSC frequency is ~3092832 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: open shared lib /usr/local/lib/librte_pmd_memnic_copy.so EAL: Master core 0 is ready (tid=3Dcd01f880) EAL: Core 1 is ready (tid=3D8bdf8700) EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: probe driver: 8086:100e rte_em_pmd EAL: 0000:00:03.0 not managed by UIO driver, skipping EAL: PCI device 0000:00:04.0 on NUMA socket -1 EAL: probe driver: 1af4:1110 rte_pmd_memnic_copy PMD: PORT MAC: 00:09:C0:00:13:37 Interactive-mode selected Configuring Port 0 (socket 0) PMD: memnic: configure OK PMD: txq: 0x7f4c8d6f2980 PMD: rxq: 0x7f4c8d6f2900 Port 0: 00:09:C0:00:13:37 Checking link statuses... Port 0 Link Up - speed 10000 Mbps - full-duplex Done testpmd> port reset 0 Bad arguments testpmd> port stop 0 Stopping ports... Checking link statuses... Port 0 Link Up - speed 10000 Mbps - full-duplex Done testpmd> port start 0 Port 0: 00:09:C0:00:13:37 Checking link statuses... Port 0 Link Up - speed 10000 Mbps - full-duplex Done testpmd> port stop 0 Stopping ports... Checking link statuses... Port 0 Link Up - speed 10000 Mbps - full-duplex Done testpmd> port start 0 Port 0: 00:09:C0:00:13:37 Checking link statuses... Port 0 Link Up - speed 10000 Mbps - full-duplex Done testpmd> Thanks & Regards, Srinivas. -----Original Message----- From: Hiroshi Shimamoto [mailto:h-shimamoto@ct.jp.nec.com] Sent: Tuesday, July 15, 2014 6:23 PM To: Srinivas Reddi; dev@dpdk.org Subject: RE: MENNIC1.2 host-sim crashed for me Hi Srinivas, > Subject: FW: MENNIC1.2 host-sim crashed for me > > > Hi Hiroshi, > Thanks for ur reply .. I have moved forward little bit. > > MEMNIC-1.2 > > 1. I started qemu and then started host-sim application > > Qemu command : > qemu-system-x86_64 -enable-kvm -cpu host -boot c -hda /home/vm-images/v= m1-clone.img -m 8192M -smp 3 --enable-kvm -name > vm1 -vnc :1 -pidfile /tmp/vm1.pid -drive file=3Dfat:rw:/tmp/share > -device ivshmem,size=3D16,shm=3Divshm vvfat fat:rw:/tmp/share chs > 1024,16,63 > > 2.Host-sim app command : > 3.[root@localhost host-sim]# ./memnic-host-sim /dev/shm/ivshm > 4.On the guest compiled memnic-1.2 . > 5.Inserted memnic.ko > 6.Found and interface ens4 after insmod memnic.ko > > [root@localhost memnic-1.2]# ifconfig -a > ens3: flags=3D4163 mtu 1500 > inet6 fe80::5054:ff:fe12:3456 prefixlen 64 scopeid 0x20 > ether 52:54:00:12:34:56 txqueuelen 1000 (Ethernet) > RX packets 0 bytes 0 (0.0 B) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 8 bytes 648 (648.0 B) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > ens4: flags=3D4098 mtu 1500 > ether 00:09:c0:00:13:37 txqueuelen 1000 (Ethernet) > RX packets 0 bytes 0 (0.0 B) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 0 bytes 0 (0.0 B) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > lo: flags=3D73 mtu 65536 > inet 127.0.0.1 netmask 255.0.0.0 > inet6 ::1 prefixlen 128 scopeid 0x10 > loop txqueuelen 0 (Local Loopback) > RX packets 386 bytes 33548 (32.7 KiB) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 386 bytes 33548 (32.7 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > 7.lspci on the guest > > [root@localhost memnic-1.2]# lspci > 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] > (rev 02) > 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton > II] > 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE > [Natoma/Triton II] > 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) > 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 > 00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit > Ethernet Controller (rev 03) > 00:04.0 RAM memory: Red Hat, Inc Device 1110 [root@localhost > memnic-1.2]# > > 8.on the Guest ran test pmd application you cannot use both kernel driver and PMD concurrently. Before run testpmd, you should unload memnic.ko by rmmod command. > > [root@localhost test-pmd]# ./testpmd -c7 -n3 -- --d > /usr/local/lib/librte_pmd_memnic_copy.so -i --nb-cores=3D1 > --nb-ports=3D1 --port-topology=3Dchained I don't know about testpmd so much, but I guess the correct EAL parameters = are like this. # ./testpmd -c 0x7 -n 3 -d /usr/local/lib/librte_pmd_memnic_copy.so -- ... Please pass extra library in EAL parameter. > EAL: Detected lcore 0 as core 0 on socket 0 > EAL: Detected lcore 1 as core 0 on socket 0 > EAL: Detected lcore 2 as core 0 on socket 0 > EAL: Setting up memory... > EAL: Ask a virtual area of 0x40000000 bytes > EAL: Virtual area found at 0x7f5514000000 (size =3D 0x40000000) > EAL: Requesting 512 pages of size 2MB from socket 0 > EAL: TSC frequency is ~3092833 KHz > EAL: Master core 0 is ready (tid=3D54398880) > EAL: Core 1 is ready (tid=3D135f8700) > EAL: Core 2 is ready (tid=3D12df7700) > EAL: PCI device 0000:00:03.0 on NUMA socket -1 > EAL: probe driver: 8086:100e rte_em_pmd > EAL: 0000:00:03.0 not managed by UIO driver, skipping > EAL: Error - exiting with code: 1 > Cause: No probed ethernet devices - check that > CONFIG_RTE_LIBRTE_IGB_PMD=3Dy and that CONFIG_RTE_LIBRTE_EM_PMD=3Dy and > that CONFIG_RTE_LIBRTE_IXGBE_PMD=3Dy in your configuration file > [root@localhost test-pmd]# > > How can I bind 00:04.0 Ram controller to dpdk application (test-pmd ) . > How DPDK test-pmd application finds the memnic device. > > 9.Am I missing any steps in the guest configurations or host configuratio= n . > 10.Is there any better manual for testing MEMNIC-1.2 or better understand= ing . > 11.Is there any better application to test MEMNIC for VM-VM or VM to = host data transfer . I think the current host-sim doesn't have any packet switching capability, = we need to implement such a functionality to test MEMNIC. Actually, I started MEMNIC develop in DPDK vSwitch project. You can see that in https://github.com/01org/dpdk-ovs/tree/development thanks, Hiroshi > > Thanks & regards, > Srinivas. > > > > -----Original Message----- > From: Hiroshi Shimamoto [mailto:h-shimamoto@ct.jp.nec.com] > Sent: Tuesday, July 15, 2014 5:31 AM > To: Srinivas Reddi; dev@dpdk.org > Subject: RE: MENNIC1.2 host-sim crashed for me > > Hi, > > > Subject: [dpdk-dev] MENNIC1.2 host-sim crashed for me > > > > Hi, > > I want to run MEMNIC 1.2 application . > > > > 1. I compiled DPDK1.6 > > > > 2. I compiled memnic.12 > > > > 3. And while running memnic-hostsim app got strucked > > > > 4. > > > > 5. [root@localhost host-sim]# ./memnic-host-sim /dev/shm/ivshm > > > > Bus error (core dumped) > > > > > > > > Core was generated by `./memnic-host-sim /dev/shm/ivshm'. > > > > Program terminated with signal SIGBUS, Bus error. > > > > #0 0x0000003a82e894e4 in memset () from /lib64/libc.so.6 > > > > Missing separate debuginfos, use: debuginfo-install > > glibc-2.18-11.fc20.x86_64 > > > > (gdb) bt > > > > #0 0x0000003a82e894e4 in memset () from /lib64/libc.so.6 > > > > #1 0x00000000004008a3 in init_memnic (nic=3D0x7ffff6fe2000) at > > host-sim.c:55 > > > > #2 0x0000000000400a8a in main (argc=3D2, argv=3D0x7fffffffe4a8) at > > host-sim.c:106 > > > > (gdb) > > > > > > > > > > > > Got error at line 55 .. saying nic is read only.. > > > I have never tried host-sim yet though. > I guess it's the cause that host-sim doesn't increase the shared memory s= ize. > Could you try booting qemu first with -device ivshmem,size=3D16,shm=3D/iv= shm then run host-sim? > > thanks, > Hiroshi > > > > > > > > > 53 static void init_memnic(struct memnic_area *nic) > > > > 54 { > > > > 55 memset(nic, 0, sizeof(*nic)); > > > > 56 nic->hdr.magic =3D MEMNIC_MAGIC; > > > > 57 nic->hdr.version =3D MEMNIC_VERSION; > > > > 58 /* 00:09:c0:00:13:37 */ > > > > 59 nic->hdr.mac_addr[0] =3D 0x00; > > > > 60 nic->hdr.mac_addr[1] =3D 0x09; > > > > 61 nic->hdr.mac_addr[2] =3D 0xc0; > > > > 62 nic->hdr.mac_addr[3] =3D 0x00; > > > > 63 nic->hdr.mac_addr[4] =3D 0x13; > > > > 64 nic->hdr.mac_addr[5] =3D 0x37; > > > > 65 } > > > > > > > > Thanks, > > > > Srinivas. > > > > "DISCLAIMER: This message is proprietary to Aricent and is intended > > solely for the use of the individual to whom it is addressed. It may > > contain privileged or confidential information and should not be > > circulated or used for any purpose other than for what > it is intended. If you have received this message in error, please notify= the originator immediately. > > If you are not the intended recipient, you are notified that you are > > strictly prohibited from using, copying, altering, or disclosing the > > contents of this message. Aricent accepts no responsibility for loss > > or damage arising from the use of the information > transmitted by this email including damage from virus." > "DISCLAIMER: This message is proprietary to Aricent and is intended > solely for the use of the individual to whom it is addressed. It may > contain privileged or confidential information and should not be circulat= ed or used for any purpose other than for what it is intended. If you have = received this message in error, please notify the originator immediately. > If you are not the intended recipient, you are notified that you are > strictly prohibited from using, copying, altering, or disclosing the > contents of this message. Aricent accepts no responsibility for loss or d= amage arising from the use of the information transmitted by this email inc= luding damage from virus." "DISCLAIMER: This message is proprietary to Aricent and is intended solely = for the use of the individual to whom it is addressed. It may contain privi= leged or confidential information and should not be circulated or used for = any purpose other than for what it is intended. If you have received this m= essage in error, please notify the originator immediately. If you are not t= he intended recipient, you are notified that you are strictly prohibited fr= om using, copying, altering, or disclosing the contents of this message. Ar= icent accepts no responsibility for loss or damage arising from the use of = the information transmitted by this email including damage from virus."