From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by dpdk.org (Postfix) with ESMTP id 3E3091BB35 for ; Wed, 19 Dec 2018 07:53:00 +0100 (CET) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id A6C074002F for ; Wed, 19 Dec 2018 07:52:59 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 91CC84002E; Wed, 19 Dec 2018 07:52:59 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.4.1 X-Spam-Score: -0.9 Received: from [192.168.1.59] (host-90-232-140-56.mobileonline.telia.com [90.232.140.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id D7B7D4002B; Wed, 19 Dec 2018 07:52:58 +0100 (CET) To: Venky Venkatesh , "dev@dpdk.org" References: <567E74E5-FB59-45EB-AE3D-D16E502D8F1C@paloaltonetworks.com> From: =?UTF-8?Q?Mattias_R=c3=b6nnblom?= Message-ID: <2de30142-6d88-4b54-7fcb-b98bbccb951a@ericsson.com> Date: Wed, 19 Dec 2018 07:52:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <567E74E5-FB59-45EB-AE3D-D16E502D8F1C@paloaltonetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [dpdk-dev] Eventdev DSW and eth_rx_adapters 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: Wed, 19 Dec 2018 06:53:00 -0000 On 2018-12-18 02:46, Venky Venkatesh wrote: > Hi, > I am relatively new to DPDK and am trying to use the eventdev library. > The sw_evdev runs on a single core (service core). And then there is rte_event_eth_rx_adapter_ which links the sw_evdev to the ethdev. This adapter is also service core based. The DSW runs on all cores – and thus doesn’t use service cores. If we use the existing adapter, in the DSW paradigm: > > * The benefit of DSW is diminished as the packets would first have to go thru a possible choke point viz. the service core. Yes, but the practical implications may not be as great as you think. A single service core will be able to handle (e.g. relay) a fair amount of events into/out-of an event device. You are however not forced to use service cores. You may use one or more of your workers to feed an event device. Another option is to do your application work as a service (and thus run the whole thing on service cores). Unorthodox design, and not something I've tried in practice, but might work. While the service cores concept is simple and effective, it's also not very flexible and can lead to inefficiencies and unnecessary bottlenecks. The key issue is that it might be difficult in practice to distribute the work of running on the different services and the application work across the lcores, especially if the load on the different tasks differs across work loads. A dynamic load distribution mechanism would be preferable. Such a mechanism might however prove difficult to devise, in particular since the tool of DPDK's disposal is cooperative multitasking, in one form or the other. > * I don’t have an understanding of this: the eventdev port corresponding to packet RX would be on a service core due to the adapter being on the service core. Therefore when the adapter calls event_enqueue to enqueue into the scheduler, does it mean that the DSW portion would also run on the service core as well? Yes, the service cores will be an "participating lcore" (as I think I called it in DSW), in case they use an eventdev port. > * Besides, (more importantly) the service core model is also not preferable to us as it sets aside cores outside of the application – which is a costly trade for us. > > How then is the user of the eventdev-with-DSW expected to interface with ethdev? Should the application call the ethdev directly and then call the eventdev-with-DSW-underneath directly (much like what the current adapter is doing)? Is there something already existing for this so that we don’t reinvent the wheel? > See above for your last two questions. An overall comment to your questions is that the DSW user should act in the same way - pretty much - as would he use for example the SW device.