From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by dpdk.org (Postfix) with ESMTP id B83CE4F91 for ; Sun, 28 Oct 2018 09:07:13 +0100 (CET) Received: by mail-qt1-f172.google.com with SMTP id k12so41447qtf.7 for ; Sun, 28 Oct 2018 01:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8nC5x0uoONa2IRjdg/tSNrKIupSVTiI5TJjHXg+L0Ig=; b=mBQbws8QNnk/esjTY/AnnCUeIGN36RqA1R/I/+mT+mvxevnV2vQyQF3GNK26kSWPuq /lwtjjCpjVNN/HXLSTR9SfRaKtS5Y9IS1xtHtFSAlhUMh1yBMqGVAPBGd4trP3b75DB6 Fj/dVLs3is+ds3VlDxHNWjhe45c9HW2TzzTc8eP0T2JF41UQdtIBp5rYOntumVs4sTz9 k31cyBlIY/7W+i3eu84Pc4leU1IsSI7z3PL4k8VKZyeLODA8LidYI3aC727U9IdHYzce ULf/+bLygOAf/XDvd2lqQnq9uME/SYYUKwy0VVBRZ7Js9S9eny/EPIwyk5ToeyNJCKbY vMeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8nC5x0uoONa2IRjdg/tSNrKIupSVTiI5TJjHXg+L0Ig=; b=CiTsWKwAOUAE3BeK7DlF0TDkoHEQGCeXTkdK8sJ6rWxyp2ro3qQl6QswrtfvQZdeKI DqG2QnNCVCHM9wAshzbJLo+NmFHgvT3UkoEqBjzEMW1p3dBz7MhB2Hm9RpPB0Vv7KDt2 AQLvN7iFwUOTy8Al+cmBaAQXJ+xu0KPZdfH5ztI+V9Pc71FYK13ig2aoGcnknUOfvGfk IdWklif0thRU48m9H5WKZ84KbzzPHqkcTkK/cyYtsu4oGBeAlm8ndZzBFNjLNCur68uT HM4kPGX4EQ4WxPh+5ImzTHsKUcPZFiQgf6Zy7hIn18h1drSzZxOkJAllPZRP4jP7hycW KvgA== X-Gm-Message-State: AGRZ1gLqrhWWsSiEVm+9dpqYHS1pp89OgG0mxwGL5o3vNVXlZ5qklPrC pcp90g9laAwpbQT7FAJOmc/XrAeYE5nx33WABrs= X-Google-Smtp-Source: AJdET5erby4uSSbVcACTZuNw9TMcc8p1eszzwlj6r8anFNe+LVeHlBQGBqLsFjMMG6RXtWq6QCMLRhzcY+i43790u94= X-Received: by 2002:aed:34c5:: with SMTP id x63-v6mr9283990qtd.156.1540714033067; Sun, 28 Oct 2018 01:07:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Vincenzo Maffione Date: Sun, 28 Oct 2018 09:07:02 +0100 Message-ID: To: maverickjin88@gmail.com Cc: users@dpdk.org X-Mailman-Approved-At: Mon, 29 Oct 2018 05:58:14 +0100 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Why DPDK latency is high when sending message in interval? 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: Sun, 28 Oct 2018 08:07:14 -0000 If you don't care about CPU utilization, busy-wait is the way to go. Otherwise you can try to usleep() for something like 60-70 us (to lower the CPU utilization), and then busy-wait for the rest of the interval (so that you still have maximum precision). You may want to have a look at this https://academic.oup.com/comjnl/article/61/6/808/4259797 , specially sections 4.3 and 4.1. Cheers, Vincenzo Il giorno dom 28 ott 2018 alle ore 09:01 Sungho Hong < maverickjin88@gmail.com> ha scritto: > Thank you very much for the reply. > But in that case, should I busy wait, to create the delay? > > > -- Vincenzo