From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 433466CA3 for ; Fri, 16 Mar 2018 17:24:09 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id 5so4104632wmh.0 for ; Fri, 16 Mar 2018 09:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=iIM6vQfcgYrSFoLbeMhx9OnoOdmGFE1mTMJ3GZ3ilxM=; b=t65oKFQzTOo7eADn0fzK75astFcx1mFP548+M5O/sQFPXFd/aP7e9oWNcr1v+R70wU 3kWdSR1XI9ogOix3+3TdgKUswUn/Mm7FSYiWbvXyrmggF9y6COa1eY5lSH7FlV+JPp5W iQfODT2zTIkR68DDCT5vGUvZUzHyeHHkCRCv7oJwtXlxoN0dfwVhbkw0MQ8+IbDceTWI qxoz97F0o4YFLH7uHzWRKtTvQAutrawWzmb2mxWmXKf4qcLME4198JeenKVvCp9a++JQ foqfx879asI7Gw3dpGpb+eiU1luP8J9mlAko47B8Y7M+B4bnleobOajIsQseTxIYEVRi opvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iIM6vQfcgYrSFoLbeMhx9OnoOdmGFE1mTMJ3GZ3ilxM=; b=QkgThmShShC7tZjU2rWehUUNSeR04juQgOlkk/gh0vQuqKxoaqy8s2oaTjoSTrC6X6 JcOTr/znb86vc833g1V6zVONZ7t9BHrrNIREVCSlCL0lzRT8P73A3UQYU5o2Z3TA9I+m Z88CXMWLFeFJkNM1HEde/af2Ef0Q7GfXRuRknaKct+KDoMaVUZY1oJRlJi1KLZezp0X+ WNINAdaapuQNhLrOVjM/c/IAAuBTiI5Lmc21nzorxhVmvH6z+fHXmvxHLuMrKp5Fctj1 XEdubL/jFXdpWk1LUYeHE2zuce32VCXmCMMbenCXdjM2JMtq6noTpi/ItK98772XtA59 ubVQ== X-Gm-Message-State: AElRT7Euzsfyb245vdWx9b0/L4EDokJMYWJ95YyHlc5X1ptxfd5C/0RC wzDuXceQGxIqaNeZRWWNXLvO8DwxmdfB79cnB8+nZA== X-Google-Smtp-Source: AG47ELu8GRInORMqz/R6dQgp4+1kFJSNMmqP5Ogf4zmpNrDNjOnynFiUuYLO+pA60qwn7uSBS6MtvuuB850qGLQVwBM= X-Received: by 10.80.173.75 with SMTP id z11mr3257099edc.306.1521217448698; Fri, 16 Mar 2018 09:24:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.203.139 with HTTP; Fri, 16 Mar 2018 09:24:08 -0700 (PDT) From: Victor Huertas Date: Fri, 16 Mar 2018 17:24:08 +0100 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] running multiple pthreads in the same lcore id X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2018 16:24:09 -0000 Hi all, I have developed a simple application which implements a network bridge. It captures packets in one port (port0), sends them into a software ring towards a second thread which receives them and sends them out via port1. Same implementation is performed in the direction port1->port0. So there are 4 threads in total. [port0]-->rx thread0 -->sw ring--> tx thread1-->[port 1] [port0]<--rx thread2 <--sw ring<-- tx thread3<--[port 1] The thing is that this application is a first step of a functionality expansion by inserting additional threads (all connected with software rings) in the middle of the path so that it performs some packet manipulation before delivering them to the destination port: [port0]-->rx thread0 -->sw ring--> add_thread 1-->sw ring--> add_thread N-->sw ring-> tx thread1-->[port 1] The total number of threads can reach hundreds (much more than number of lcores) and I would like to assign every thread to a particular lcore, no mattering if more than one thread is being executed by the same lcore. This assignment would be done through an XML config file, which would be loaded at the very beginning of the application execution. the rte_eal_remote_launch function at rte_launch.h can only launch one thread and attach it to one and unique lcore. So imagine that I want to launch another thread on the same lcore. DPDK doesn't seem to allow me to do that. I have read that using cgroups could make this possible but I haven't found an example application where DPDK and cgroups are used toghether. what is your recommendation on this as expert users? Is using cgroups an acceptable option? Is DPDK contemplating in a future release to support natively multi pthread on one lcore on the rte_launch.h lib? Thanks for your attention, -- Victor