From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) by dpdk.org (Postfix) with ESMTP id B196C7E7B for ; Fri, 17 Oct 2014 09:50:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4328; q=dns/txt; s=iport; t=1413532704; x=1414742304; h=from:to:subject:date:message-id:in-reply-to:content-id: content-transfer-encoding:mime-version; bh=rnvKCDUUm8JTCgRU8zOBoCskBdF/tB+30nJgLkSrrSQ=; b=YrVWFM9tLSmrq95FMG1QF2oeMcfwgLP+dYFzh72R98L5qyW2Xg25vX0u eRzKCsfQh9qyQqB8V1MjyMICGsy7OhKEAynnzbNKRaRE980uxYelqZ8tI uvsecDR7FSrlSYA1Aomv1CYwHxplFu9TxQuW/upeo+glgedGctT4mioSB w=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhEFAJzLQFStJV2Y/2dsb2JhbABbgw5TWATMJ4dWAoEQFgF9hAIBAQEEOksGAQgRBAEBAR4JORQJCAIEARKIP8saAQEBAQEBAQEBAQEBAQEBAQEBARmQGjoGhEUBBJIAhEaHE4EwPIMKgy2NeYN3bIFIgQMBAQE X-IronPort-AV: E=Sophos;i="5.04,737,1406592000"; d="scan'208";a="364002080" Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by rcdn-iport-7.cisco.com with ESMTP; 17 Oct 2014 07:58:15 +0000 Received: from xhc-aln-x12.cisco.com (xhc-aln-x12.cisco.com [173.36.12.86]) by rcdn-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id s9H7wFga002113 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 17 Oct 2014 07:58:15 GMT Received: from xmb-rcd-x10.cisco.com ([169.254.15.68]) by xhc-aln-x12.cisco.com ([173.36.12.86]) with mapi id 14.03.0195.001; Fri, 17 Oct 2014 02:58:15 -0500 From: "Deshvanth Mirle Jayaprakash (dmirleja)" To: "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: Issues running Ethtool on KNI interfaces Thread-Index: AQHP5rY/FTG1vE35TUWRqFh52Bd4wJwtomtA///gQgCAACMM4IAGK4aA Date: Fri, 17 Oct 2014 07:58:14 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 x-originating-ip: [10.21.65.207] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Issues running Ethtool on KNI interfaces 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, 17 Oct 2014 07:50:27 -0000 Hi Helin, We have been using KNI application to create Virtual interfaces. We would like to use KNI interfaces for control plane application only. As intended, We are still planning to use UIO interfaces to pass Data plane traffic which would bump up traffic throughput. We have assigned 4 vCPUs for KNI application (CoreMask is 0x1E (Core 1,2,3, and 4)). When I run top while KNI process is running in the background, see there is 100% CPU utilization on all 4 Cores. Is there a way to fix this or is this expected? In our case, the CPU utilization seems to cause lot of issues wrt to other processes running on Linux OS. Am I missing any EAL option in KNI.Also, I was wondering If there is a way to run KNI without Hugepages. The Command: ./kni -c 0x1E -n 4 --socket-mem 512 -- -p 0x3 --config=3D"(0,1,3),(1,2,4)" = & Thanks, Desh There is some issue with respect to Hugepage allocation that prevents other processes from On 10/13/14 12:46 AM, "Zhang, Helin" wrote: >Hi Desh > >Actually KNI provide a path to exchange info/actions between user space >and kernel space. You can read kni example application and KNI kernel >module and KNI library for more details. It already supports setting MTU, >link up/down the port, etc. > >Regards, >Helin > >> -----Original Message----- >> From: Deshvanth Mirle Jayaprakash (dmirleja) [mailto:dmirleja@cisco.com] >> Sent: Monday, October 13, 2014 3:39 PM >> To: Zhang, Helin; dev@dpdk.org >> Subject: Re: Issues running Ethtool on KNI interfaces >>=20 >> Thanks Helin, have been trying this for some time, Is there any other >>way I can >> pass IOCTLs to IGB-UIO interfaces. Can I use /dev/uio0 and /dev/uio1 ? >>Can I >> use IOCTLS on these references in Kernel to gather interface >>statistics, set >> MTU or bring up/down UIO interfaces. >>=20 >> /Desh >>=20 >> On 10/13/14 12:34 AM, "Zhang, Helin" wrote: >>=20 >> >Hi Desh >> > >> >You tried to use ethtool for KNI interfaces in VM, right? I don't think >> >it is supported in VM. >> >Currently it just supports ethtool for KNI interfaces in host for some >> >igb and ixgbe NICs. >> > >> >Regards, >> >Helin >> > >> >> -----Original Message----- >> >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Deshvanth Mirle >> >> Jayaprakash (dmirleja) >> >> Sent: Monday, October 13, 2014 3:21 PM >> >> To: dev@dpdk.org >> >> Subject: [dpdk-dev] Issues running Ethtool on KNI interfaces >> >> >> >> Hi, >> >> >> >> Hypervisor: KVM >> >> >> >> VM: Linux OS with 2.6.32 Kernel >> >> >> >> VM Settings: >> >> >> >> 8 vCPUs, 8192 MB of memory, CPU Configuration: Copy Host CPU Config >> >> (SandyBridge), Manually set CPU topology: Sockets=3D2, Cores=3D4, >> >> Threads=3D1 >> >> >> >> 10Gigi Passthrough Interfaces attached to VM: Intel X520 >> >> >> >> >> >> DPDK settings: >> >> >> >> >> >> DPDK Version: 1.6R2 >> >> >> >> >> >> echo 512 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages >> >> >> >> rmmod ixgbe >> >> >> >> insmod igb_uio.ko >> >> >> >> mkdir /mnt/hugepages >> >> >> >> mount -t hugetlbfs nodev /mnt/hugepages >> >> >> >> #./igb_uio_bind.py --status >> >> >> >> #./igb_uio_bind.py --bind=3Digb_uio 03:01.0 >> >> >> >> #./igb_uio_bind.py --bind=3Digb_uio 03:02.0 >> >> >> >> #./igb_uio_bind.py --status >> >> >> >> modprobe hwmon >> >> >> >> insmod rte_kni.ko >> >> >> >> ./kni -c 0x1E -n 2 --socket-mem 512 -- -p 0x3 >> >>--config=3D"(0,1,3),(1,2,4)" & >> >> >> >> >> >> Having KNI process running in the background, creates two KNI >> >>interfaces called vEth0 and vEth1 which corresponds to IGB-UIO >> >>interfaces attached to the Userspace. The issue is that the Ethtool >> >>doesn't work with KNI interfaces. >> >> Is there anything that I am missing, How can I get Ethtool to work >> >>with KNI interfaces? Also, If I do not use --socket-mem OR -m EAL >> >>option, KNI application consumes all the huge pages(It doesn't mater >> >>512/4096) assigned in the very first step.Is that expected behavior? >> >>Can I get KNI to work without assigning any Hugepages? >> >> >> >> >> >> >> >> Also, I have attached screen shots of KNI log file. Please take a >>look. >> >> >> >> >> >> Thanks, >> >> >> >> Desh >