From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) by dpdk.org (Postfix) with ESMTP id 452D79DE for ; Fri, 6 Dec 2013 10:28:17 +0100 (CET) Received: by mail-ie0-f177.google.com with SMTP id tp5so751034ieb.36 for ; Fri, 06 Dec 2013 01:29:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fuC8piGThsVW+MFZ+f93j1g5rtvfYT3KfoW4P5mLYGo=; b=cycQe4uHUSalOfplv+4FmKgKMA50M726NJ3EtUUAstA33JMQgZMLvQPnWsRRd9cADV USer9ekmsJrK3nx5soc31R1HppemWkJ5hbXN++8MsV/MnjifK6cAXs5paI7QMEqBTal/ aN0huiyN/I3QFGFDMuKVmmCe/jzyaoZXD1rW56wuATE5sCOduM3hBiLPHHDFHvS9HrLF sCAgDxmHOSZgjBXUxZn4MznXp78FiIbrNbklzQm95kCmhJansfoU5pvnSvI7dF9D8vYG SGbX/k8qzUO5+Ofv+N+tcCgn0k/uARRJOPlMZjHi7lInrbTcVD3uzrsdqYfWiSvHMhOe nO1A== MIME-Version: 1.0 X-Received: by 10.43.81.200 with SMTP id zz8mr56333911icb.29.1386322159908; Fri, 06 Dec 2013 01:29:19 -0800 (PST) Received: by 10.64.207.162 with HTTP; Fri, 6 Dec 2013 01:29:19 -0800 (PST) In-Reply-To: <201312051630.28147.thomas.monjalon@6wind.com> References: <201312051226.51234.thomas.monjalon@6wind.com> <201312051630.28147.thomas.monjalon@6wind.com> Date: Fri, 6 Dec 2013 14:59:19 +0530 Message-ID: From: Srinivasan J To: Thomas Monjalon Content-Type: text/plain; charset=ISO-8859-1 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Error message "virtio-net device is already used by another driver" 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: Fri, 06 Dec 2013 09:28:17 -0000 Thomas, If I use hugetlbfs the VM does not crash and it works as expected. This is good enough and unblocks me. Thanks for the help. Regards, Srini echo 1024 > /proc/sys/vm/nr_hugepages mkdir /huge mount -t hugetlbfs nodev /huge rmmod virtio_net ./build/app/testpmd -c 0x3 -n 1 --use-device 0000:00:0a.0 -d ./librte_pmd_virtio.so -- --disable-hw-vlan --disable-rss -i --rxq=1 --txq=1 --rxd=256 --txd=256 ..... EAL: Skip lcore 54 (not detected) EAL: Skip lcore 55 (not detected) EAL: Skip lcore 56 (not detected) EAL: Skip lcore 57 (not detected) EAL: Skip lcore 58 (not detected) EAL: Skip lcore 59 (not detected) EAL: Skip lcore 60 (not detected) EAL: Skip lcore 61 (not detected) EAL: Skip lcore 62 (not detected) EAL: Skip lcore 63 (not detected) EAL: Setting up memory... EAL: cannot open /proc/self/numa_maps, consider that all memory is in socket_id 0 EAL: Ask a virtual area of 0x734003200 bytes EAL: Virtual area found at 0x8a800000 (size = 0x2bc00000) EAL: Ask a virtual area of 0x339738624 bytes EAL: Virtual area found at 0x76000000 (size = 0x14400000) EAL: Requesting 256 pages of size 4MB from socket 0 EAL: TSC frequency is ~2379255 KHz EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles ! librte_pmd_virtio version 1.1 Copyright 2013 6WIND S.A. provided without warranty. EAL: Master core 0 is ready (tid=b7753800) EAL: Core 1 is ready (tid=b6d1fb40) EAL: PCI device 0000:00:0a.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_net_pmd start = d060 end = d07f Interactive-mode selected Configuring Port 0 (socket -1) PMD: rte_eth_dev_config_restore: port 0: MAC address array not supported Checking link statuses... Port 0 Link Up - speed 100 Mbps - full-duplex Done testpmd> On Thu, Dec 5, 2013 at 9:00 PM, Thomas Monjalon wrote: > 05/12/2013 16:19, Srinivasan J : >> tried executing testpmd, but the entire VM crashed. > > Booting a VM, removing virtio_net module and following the doc should work: > http://dpdk.org/doc/virtio-net-pmd > > If it doesn't work, we need some logs to understand your problem. > -- > Thomas