Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5231154rwi; Mon, 17 Oct 2022 17:53:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bTsdbd8ORd4fbMqWVzbpRVytl3PethCxwRbpxvZwfxUXepNFUtL+N6wF2VVqPHW5Bmg2z X-Received: by 2002:a17:907:6eac:b0:78d:ce9c:3761 with SMTP id sh44-20020a1709076eac00b0078dce9c3761mr303782ejc.738.1666054428602; Mon, 17 Oct 2022 17:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666054428; cv=none; d=google.com; s=arc-20160816; b=SqJsNB7wycO5EQBIGJsz68hBvh/CnhvUlWmWIZo5KkvP9FBcefBBwO2okBrd+RrHQ1 9eBEzESdvGMrfpXw2yt6LOXVdVki+IA7kyHrUjn8oP8HwtA/Z1/zbkf+Jnv53xXOO7dF czfgYs9LntZ4T5tk4wYiPn/1ucyoRLT7rm9UFqlMTCJKS5ERbwX/oW7DwNznRsjlJeEZ Zka5L2xZsxUJqENWC2FkBrneqbs9kOs2gnpv75Q2CvwJI0bEuEo6/SJJKGaYxO5Cz5ks z9vxpiXGl4BCJqEt8gx851cnfpxOphwlC1M8MAFBag4C3McpwfRT+nedyOtbo+0FQ69b yd1A== 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=WnYlEs3EZk1xPhzcEuoMhzmLfS8Qhk3Ay/ao9Jd31eM=; b=OE/6dUEINoqN7ksY+UK23OD0JFg435XKvsstb1vGoVt53i4X76HXlaaVQONO8BOWJP Pci7MtroK36AJySdqhmqh/FPW/UTIwUhyeF8Vk9ZHLhqrhVH6xyqzNPXSF9w6yoSJMxs Yho4lOlKZAOjqUKnhO9rLhqBjBEUJRivHhpuJQ5Y1VQLqOhvm8izm2N2bvChQPtXlSHV FsrOaShIBttdz1jn+7xUJCq6Ahtte5buGtOHvKK+ODw2S1ZMJCpe1u3ssUf3rAZ/GVZD aCKZiFWLxwbbORk1lGzpHCVoCegh4Wy4Q7tY+iod6I7TJ0g2vquAlnRz71RS65CIBII7 TDiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=DMlZvigC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a056402440f00b00459f6b0fa96si12655582eda.355.2022.10.17.17.53.23; Mon, 17 Oct 2022 17:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=DMlZvigC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230223AbiJRAE1 (ORCPT + 99 others); Mon, 17 Oct 2022 20:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbiJRAEZ (ORCPT ); Mon, 17 Oct 2022 20:04:25 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5B3A44D for ; Mon, 17 Oct 2022 17:04:23 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id j4so20127957lfk.0 for ; Mon, 17 Oct 2022 17:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WnYlEs3EZk1xPhzcEuoMhzmLfS8Qhk3Ay/ao9Jd31eM=; b=DMlZvigCc94SZYyPbg0qYNEnDXje+xQpALw0VqQEoPxtsLJydfYkBmQqo2EFjY/+gK NjvmBwVGRhqqvFWcP6UDp7yeAVlsDnXagSfK9AVz4zz/x1pYthwqt7qfpkI0v9veIlFC 8+zv+ebZJBy38Q+zLBLU0VOirgnEel9elGv9iFviRYKNaGI7Ib+5IrdO7mAYH2jpcwZM THpSzSEYpt797kOdhOu7OazgfUB/nAtoMsKnojD93vP9iMYMQVSZikpOfDNYsH2aEjSj hSZLZfndVIGzp+7FCmD+v2DJYHmst8ck6Xnxvz4FugtAZ6PN4AIgtkfk96XbU24XTG27 s4xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WnYlEs3EZk1xPhzcEuoMhzmLfS8Qhk3Ay/ao9Jd31eM=; b=jfqNZtHAOWUIeWDkGExh+1K/PWUoRbkE3ZM5SB/ymxNgGffjhHNJ0ewez2u5Kks2TF VTM3kAE3Ng8QCb802g5yd2CLvUXh6VPEzimu0Qlum7sFcKwBL0oKNgrp+z+l4uQGGzDm sEDlbFeRVzIqZOth6ZlIv1luOBrVgo6f4FN0lj9rJ6oqZotVJxIq8hSApYmKKrVBcesz yh79LLrFT9navGFXsDPKRlsWEaazKWOy8kHLZSVIcgiyM4a7BOV01FBe8QFm6mkB1Czp oAnCF5Qzt9HwODCULaPjAfyfyAO6cqApo/rh93mGxNn4c/YNx7y4GStPNzCUa18G+w/0 0Pog== X-Gm-Message-State: ACrzQf0WrMBjHnfQo7+RXWpyRwbg9XygYVmg/1qyXhHhXIqLifFPX6Ir XZiXmzeNNcUI3cnRuBJcvCtYokHjN72uoAFk9WLq X-Received: by 2002:a19:7704:0:b0:4a4:5d9d:2f66 with SMTP id s4-20020a197704000000b004a45d9d2f66mr49097lfc.515.1666051461519; Mon, 17 Oct 2022 17:04:21 -0700 (PDT) MIME-Version: 1.0 References: <20221003232033.3404802-1-jstultz@google.com> <20221003232033.3404802-4-jstultz@google.com> <20221010160917.p2ftu3eezsrbfdfk@wubuntu> <20221017144455.ylmwlgrdoj3tdvbp@wubuntu> In-Reply-To: <20221017144455.ylmwlgrdoj3tdvbp@wubuntu> From: John Stultz Date: Mon, 17 Oct 2022 17:04:09 -0700 Message-ID: Subject: Re: [RFC PATCH v4 3/3] softirq: defer softirq processing to ksoftirqd if CPU is busy with RT To: Qais Yousef Cc: LKML , John Dias , "Connor O'Brien" , Rick Yiu , John Kacur , Chris Redpath , Abhijeet Dharmapurikar , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Thomas Gleixner , kernel-team@android.com, "J . Avila" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 17, 2022 at 7:45 AM Qais Yousef wrote: > This time I paid attention to the average as the best case number for vanilla > kernel is better: > > | vanilla | with softirq patches v4 | > -------------------|--------------------|--------------------------| > | #1 | #2 | #3 | #1 | #2 | #3 | > -------------------|------|------|------|--------|--------|--------| > t0 avg delay (us) |31.59 |22.94 |26.50 | 31.81 | 33.57 | 34.90 | > t1 avg delay (us) |16.85 |16.32 |37.16 | 29.05 | 30.51 | 31.65 | > t2 avg delay (us) |25.34 |32.12 |17.40 | 26.76 | 28.28 | 28.56 | > > It shows that we largely hover around 30us with the patches compared to 16-26us > being more prevalent for vanilla kernels. > > I am not sure I can draw a concrete conclusion from these numbers. It seems > I need to run longer than 4 hours to hit the worst case scenario every run on > the vanilla kernel. There's an indication that the worst case scenario is > harder to hit, and it looks there's a hit on the average delay. Thanks so much for running these tests and capturing these detailed numbers! I'll have to look further into the average case going up here. > I'm losing access to this system from today. I think I'll wait for more > feedback on this RFC; and do another round of testing for longer periods of > time once there's clearer sense this is indeed the direction we'll be going > for. Do you mind sending me the script you used to run the test, and I'll try to reproduce on some x86 hardware locally? thanks -john