From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D5B86A0527 for ; Mon, 20 Jul 2020 17:09:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D25291BFBD; Mon, 20 Jul 2020 17:09:03 +0200 (CEST) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by dpdk.org (Postfix) with ESMTP id 4B1E41BFBC for ; Mon, 20 Jul 2020 17:09:02 +0200 (CEST) Received: by mail-pg1-f171.google.com with SMTP id m22so10395184pgv.9 for ; Mon, 20 Jul 2020 08:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iy4W5mRd480hMtkiaUc1JdqNUfklON92Wmb8IxQLejI=; b=gfsULQXWVHif6PxlBtyvJLcOhdwDPIzaOjTn4lxskfezT8AtT1dBDF4ZO2fB9Y+OfU JqikCsP27QSepVuDd0exVoJgx9s1O+O8Ldq7xySS1iLmX50TQsv3GsHVJB3/ueR2pOWC LiDfwNIEsfYU3wRwvlkq6EjojfjrdfCNdDjXoc/3Ha1Ps8KQOtpcn34b2bp1VglyWAQp bn/P0GCX7TBdq3XqpXO6i23RMYqN1tIaDZrNKYNzPs6tcLK4RhA3oAacsJNaTg52moqq oM2aQYQ/0EvwKBtvfAXNLi026s+YFUzozNNDZO7HPykto5wWe9vS/KyHAPmkgteBy3Ii qegg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iy4W5mRd480hMtkiaUc1JdqNUfklON92Wmb8IxQLejI=; b=fYfjSfx0MoNFKIcugiAkrTauxelXjSAaiegAVPFrJSalYJHKNmGJx7h2SlgnIeWyH5 6b2YYOlW4sFD1odRfL9fI/FzJEmbq8lvGwqr1oLmAlgYAsC5azNApneW0NJARFNR5BJo tbmN3C1ctVU7yO7YkKGxN4D82/Z5XP6nV5DNt0fmOKBY3mabwSlF2YfNpdc2Ejh290EZ qWJZmrM0BUhHfmA/7DP0Ns+jRclinfEz9ajxGyfF/EawY39cyEot9oa8WCntcgfaaeM8 kCkvgAmklxBDr83ZeIO9RqSloxYXGeKc8BCnyr2wTIo9jrUpo8MX6XzyrBn4xhLm07Fk +7JQ== X-Gm-Message-State: AOAM532xyNWAerrDM7FSaAl/v262Dz8qyN4vGcDu5ucIcdKR5lARSAvX qGVgG8OF9ACDnOhcli4oSTxXTg== X-Google-Smtp-Source: ABdhPJy07DJa+LCxcsjhVK1h/7fCuQ3CvpFDvzJq1JJ6EEZiV7G6CpC35TbiOh64ET4sDaah96d0wg== X-Received: by 2002:a05:6a00:4f:: with SMTP id i15mr20417011pfk.93.1595257741367; Mon, 20 Jul 2020 08:09:01 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f29sm15694942pga.59.2020.07.20.08.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 08:09:01 -0700 (PDT) Date: Mon, 20 Jul 2020 08:08:52 -0700 From: Stephen Hemminger To: Prashanth Fernando Cc: "users@dpdk.org" Message-ID: <20200720080852.4db7f0ae@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] Run To Completion Vs Pipeline 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: , Errors-To: users-bounces@dpdk.org Sender: "users" On Mon, 20 Jul 2020 05:03:55 +0000 Prashanth Fernando wrote: > Hi, > > I'm wondering why DPDK proposes 2 different models. > Is there any situation that fits one model but not another? > > I am looking to build an application with a firewall, regex, LPM, rate-limiters etc ... > I am wondering which approach would be a best fit for my usecase. > > > Thanks, > Prashanth > There are two different factors here. First, how many cores do you have to burn. The run to completion model uses less cores (and has less latency). But other models are better if some set of packets require longer to process (VPN, Crypto, ...) in that case you want to push packets to other core.