Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp710827pxy; Wed, 21 Apr 2021 13:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy17H4KEjj8xSMnvkRaErMpDuEihy9iPdZT00AvZ0/WNox2i1zvDD1saZf6AosWlxLAGD06 X-Received: by 2002:aa7:8886:0:b029:257:d387:d17b with SMTP id z6-20020aa788860000b0290257d387d17bmr30395771pfe.0.1619035377434; Wed, 21 Apr 2021 13:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619035377; cv=none; d=google.com; s=arc-20160816; b=cc8FH7C0QQkl7f45Nvc31l+85RX4QMWVxSdknzx2WWvFY1uj4Clft4tM0mJUFREJp+ am/wQUdqmcxDFL8yXyzEYrkwX08RipDRnB5olSkGWE0WwD88dY3rYvAfEByw5px52ohf K/XH4nfwplH+NDDOdrszTeIzKFH8Ivk2nmsodq8OwN92z5OSQn15EsrKCEp3qQbSPpIp 7tLFmEy5sGdEf+h+ITtfjy3y1mWPkPp6EQUo9h+tuHjXfTMAdbVS7SQ8KqowfbG8v1Rz sCtjrWimvGWhGNFjjaM+jJv8GeCGW3eWYCqHEnb0wHEHjgpJpQt1ra2OZrTdzTo1VSF9 M+MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rmcIp8hExvshUmuxud6m+2Q4GE1q+35u3HrSpv655d4=; b=F/08jSyy4eJq5ddcMeCtusKBT/dluqYravNUUTxeSKgiG2hdezYO+IOhUn/OsjJln+ C4RbmZ7oU19wSpqKftvIcIJxpIgRsphoK3f4Vz25k0gfweXb49bALBKGMbYv/BjkEIgw tqSCGR2RtIfRANTWMk1SpniCbEwzdbpanSDNCI17jwwD1nY9NtaU/8q4dyhITwAdodeh wFg45loH2xYEfW0xNq5KXCorQT69QZneOL300EDwumTt6/r+knE4avgSLA5l6QLoi0/3 msCrY7oZ8NAFmQ2csq6h/7JF664LAXb+8UU7jYvDxaE/+xDKXQkpRkbYgxeykea0uFBp PAOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rZOVLf/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si695456pgk.522.2021.04.21.13.02.45; Wed, 21 Apr 2021 13:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rZOVLf/3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236297AbhDUOlk (ORCPT + 99 others); Wed, 21 Apr 2021 10:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235292AbhDUOlk (ORCPT ); Wed, 21 Apr 2021 10:41:40 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19A50C06174A for ; Wed, 21 Apr 2021 07:41:07 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id v123so35422638ioe.10 for ; Wed, 21 Apr 2021 07:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rmcIp8hExvshUmuxud6m+2Q4GE1q+35u3HrSpv655d4=; b=rZOVLf/3q0LjQMBRCKi5fQW3wr51MXgFe5LxWyOtZmopdW4Ld1ivWmmexjoWbgPR0H Y4E1Zyw2tzKgnsOUxKYd2TcnA8gR5afITfeUKeyHLe8YNMsNAN2RG1AphJkE85GP7h4J O/DqxWP9N8A+3+gSQ+MeKkNFxy1hb1I3IVSJCb2gLKimqHZfCtLg3qA42Mhn+jAufRJ4 i9XammwUzCt6bX3u+SKF4nDdmCmDmPx7JDptEQxkuw8KO+HFbxY0eGxNZKY6KpGUt5zQ 75OsBSKZO7LIrk1n5fP9wisg2tQw8xnCSUQhsKYPeOfF7rUmrIuAL21WpKL714X3kZBA hoQA== 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=rmcIp8hExvshUmuxud6m+2Q4GE1q+35u3HrSpv655d4=; b=RTa1gYEjhNPDOcbEl3UiYpWooG5b731fQGaix1rdo0t7ehTwco9Xz/W2ZqZG78sbMg 0Dl02NrirRn9SSpVGBK2Oal9OOViupltuTde263e0AZTJPhY5Xg1dksrfZLc5586JNFh 7Ms5p27LomxxZn1VGoHmY9738jkQk9OQXTmwWz2XXrVujlwQ5hoyeGal2/jyHoBJ9Aq7 lWBy2Gh/AoKCzMeO1i0Sau4Tw4MVQvNRsfD2vq1nEehNj+fxa9HfDoaGt4ljuqYU1j8i Dg30YRBSDbHWbUObAM0piFuTK1cT7vltskyryurtOU122g+Et1EYjR48lkq6XCzwuBfB 4UBg== X-Gm-Message-State: AOAM531FB99w/4kR9ZdI124yJUrp9n4g5zTGRuUCuschIV00cdewLhFo 18sKmtmznuqOXfh2xR8lxcTCfjpRLfpnWcnIZbqWhg== X-Received: by 2002:a5e:930d:: with SMTP id k13mr23645312iom.61.1619016066306; Wed, 21 Apr 2021 07:41:06 -0700 (PDT) MIME-Version: 1.0 References: <87r1jbv6jc.ffs@nanos.tec.linutronix.de> <87eef5qbrx.ffs@nanos.tec.linutronix.de> In-Reply-To: From: Lorenzo Colitti Date: Wed, 21 Apr 2021 23:40:54 +0900 Message-ID: Subject: Re: [PATCH] hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event() To: Thomas Gleixner Cc: Greg KH , =?UTF-8?Q?Maciej_=C5=BBenczykowski?= , Ingo Molnar , Anna-Maria Behnsen , lkml , mikael.beckius@windriver.com, =?UTF-8?Q?Maciej_=C5=BBenczykowski?= , Will Deacon Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 11:08 PM Lorenzo Colitti wrote: > load the timer will almost never fire since there will always be > another packet coming. So the speed of adding/updating the timer is > much more important than the accuracy. We will try to move it to > timer_list. ... but actually, that's not acceptable, because AFAICS timer_list counts in jiffies so its resolution might be as low as 10ms. It's not acceptable to delay network traffic by up to 10ms under load. Not sure if there is another timer API that can be used here.