From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA179C4363D for ; Fri, 2 Oct 2020 09:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DB72206DD for ; Fri, 2 Oct 2020 09:56:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387737AbgJBJ4v (ORCPT ); Fri, 2 Oct 2020 05:56:51 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:42304 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbgJBJ4v (ORCPT ); Fri, 2 Oct 2020 05:56:51 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 0929um9J003819; Fri, 2 Oct 2020 11:56:48 +0200 Date: Fri, 2 Oct 2020 11:56:48 +0200 From: Willy Tarreau To: Eric Dumazet Cc: ??? , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: Why ping latency is smaller with shorter send interval? Message-ID: <20201002095648.GB3783@1wt.eu> References: <0d8f732d-03e1-75f0-09fd-520911088c0d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d8f732d-03e1-75f0-09fd-520911088c0d@gmail.com> User-Agent: Mutt/1.6.1 (2016-04-27) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 02, 2020 at 11:26:00AM +0200, Eric Dumazet wrote: > 2) Idle cpus can be put in a power conserving state. > It takes time to exit from these states, as you noticed. > These delays can typically be around 50 usec, or more. This is often the case in my experience. I'm even used to starting a busy loop in SCHED_IDLE prio on certain machines or in certain VMs just to keep them busy, and to see the ping latency cut in half. Willy