From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id C19E9137C for ; Fri, 20 Jan 2017 20:48:03 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id d140so9170142wmd.2 for ; Fri, 20 Jan 2017 11:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BPRYpvYTcs+kXdo4KjXd9U0Yt8E8mKoZteztTsHcR1U=; b=GnmDSWNoqc5AgTZEjZa6BIXJRV7JmneJV1Pf3klTP1b6TRrNUQtlNfnMpkF4F3T3yw osFQo5n5Vg1nXzU4stVxiGNYP4iMJ7RwIF6oxjihq4UB/2DfKds4wdaEm8C/4JvbepUf NQBHGyp+Yid5cnle2vHXI1PcyuAeXh2c6bQIoVEs0uNcp9ksun+6ybaO70Ai+csEoExR i9ufWXytRY1puQ9MOTQudHVgUIosTMuXYwxg86zGJvBEKwoV7vCdR19ACKUlv+wdi9Dm iwMORPYkJofpqt6zIzstqvM+Uz4xmebWBEHRc8YhCCDj61JS8/EvEqMaVvYGIEPTL3Ki 2yRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BPRYpvYTcs+kXdo4KjXd9U0Yt8E8mKoZteztTsHcR1U=; b=GN2GKRxYXW0UO+Fpea8hbK9F/RbHi5eFGTCcEFn2vpQ64UsfI+MiJg/qRZsG2LFI/8 fECCDPxfsK6kDOTlMLVgxBFINwvAi01B1VADrQoog/upIFWTsKoZEckOX0oERFkln/sZ ACKcKimhvlyTaTdnT7d2skUSYaJQy9EFoLpDKDx/mJRt5DGrP2nHUw8jdNtmFRKgfUWP thLu7KSErlDue9m/6rFn8l9oqkA4GD6BVQV1tEIPqNjj+EJPkz0KMJLB1W4AsZGc0qvF SJez+Ab7BucW2BH3UDdS2HV2C3+DBvizpS5BfRVJybfo+vQrcz4zcSdmR4zzsrVw1dek inXw== X-Gm-Message-State: AIkVDXKdsC/gOYF+9bN7pBfPffzpDi9FWCAiCVVGDx2K2/jy9qki27c84eoXbyNErqJlxJUFRk/njG/ulVCAZA== X-Received: by 10.28.146.12 with SMTP id u12mr4857223wmd.113.1484941683480; Fri, 20 Jan 2017 11:48:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.17.4 with HTTP; Fri, 20 Jan 2017 11:48:02 -0800 (PST) In-Reply-To: References: From: Jason Kwon Date: Fri, 20 Jan 2017 11:48:02 -0800 Message-ID: To: Ferruh Yigit Cc: Shirley Avishour , dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] drops while transmitting to the kni using rte_kni_tx_burst() 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: Fri, 20 Jan 2017 19:48:03 -0000 Sorry to hijack the thread, but I was wondering, is the binding of the KNI kernel thread only applicable in multiple kthread mode? Does it apply in single kernel thread mode? Looking at the 16.07.2 source, I saw the following: /** * Create a new kernel thread for multiple mode, set its core affinity, * and finally wake it up. */ if (multiple_kthread_on) { kni->pthread = kthread_create(kni_thread_multiple, (void *)kni, "kni_%s", kni->name); if (IS_ERR(kni->pthread)) { kni_dev_remove(kni); return -ECANCELED; } if (dev_info.force_bind) kthread_bind(kni->pthread, kni->core_id); wake_up_process(kni->pthread); } Thanks, Jason On Mon, Jan 16, 2017 at 6:42 AM, Ferruh Yigit wrote: > On 1/16/2017 12:20 PM, Shirley Avishour wrote: > > Hi, > > I have an application over dpdk which is consisted of the following > threads > > each running on a separate core: > > 1) rx thread which listens on in a poll mode for traffic > > 2) 2 packet processing threads (for load balancing) > > 3) kni thread (which also runs on a separate core). > > This is kernel thread, right? Is it bind to any specific core? > Is it possible that this thread shares the core with 2nd processing > thread when enabled? > > > > > the rx thread receives packets and clones them and transmit a copy to the > > kni and the other packet is sent to the packet processing unit (hashing > > over 2 threads). > > the receive traffic rate is 100Mbps. > > When working with single packet processing thread I am able to get all > the > > 100Mbps towards the kni with no drops. > > but when I activate my application with 2 packet processing threads I > start > > facing drops towards the kni. > > the way I see it the only difference now is that I have another threads > > which handles an mbuf and frees it once processing is completed. > > Can anyone assist with this case please? > > > > Thanks! > > > >