From patchwork Tue Feb 22 08:16:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1595872 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=Sp1rche3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K2sTv5DdDz9sFt for ; Tue, 22 Feb 2022 19:17:22 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1nMQM5-0003BD-Ta; Tue, 22 Feb 2022 08:17:05 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1nMQM4-0003AB-Gv for kernel-team@lists.ubuntu.com; Tue, 22 Feb 2022 08:17:04 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 29E843F1D0 for ; Tue, 22 Feb 2022 08:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645517824; bh=GdwmomTWW+0mkmgePxN1D44SEt8L7sH8H8nPGZYOb4k=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Sp1rche3NuVoieP9tWKOFypL1XHyGv36HzeSnSjoxD+LEG5pRnG3JRLVycMxrBmMF Mv/edU1PAuxnXpb+TfUif6BBac5e+0uIZ1Fi4vbV3KIvFKqyHDn+/giNB67HVFSYyi H3X/ANqEGk6REWwbiGllYxEr7Lukowem6wicQdLZPt5TFF2Hk5Dz1VBAsweXvdpBWI dETBi5kwq0P/PxeJU807D3RxiTsPkcPvAB0hjZyrUpOPhn0T/DxyHWO+Uxwkar4xBX q/Vd8oxT/5fBuARxEj+LHzVugHRjwjJNqzdQ46rsFTxLNDk9XY1Bhh0foB0KcnCNXb AKZ8xUdeyxC3g== Received: by mail-ed1-f71.google.com with SMTP id l24-20020a056402231800b00410f19a3103so11550793eda.5 for ; Tue, 22 Feb 2022 00:17:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=GdwmomTWW+0mkmgePxN1D44SEt8L7sH8H8nPGZYOb4k=; b=cHBBK2HlwGYiMeFab6xRTf2UPceezn3Q8jh/p+3E0s2AN8EONmvbIk3WsSvetXvr5h kFzXQ/v+PgZ6TOWkgGhJvoaW+yboRRw/Ipq1y7y2fE7Vfq5c2va25pE9swDhr2pk/MdV 6mfSH49edFdSEu6i5HsKUywBdcyPUnpB+9DL/wgrG7IYs4KZMGJ2iNbkfTWGaMfxOTPI czmNGDmL01wEShAMJZWQpWjwuiiukyyJnTF7NLbLahSxp6sm4pNgXA0bbMLkAaKb8F/k OfzKHu/eZab3kCaPegYruaEM546c2QtD5dTiKK466qLRPMhicd7dUSuLCJmqnieVf0kw /9Mw== X-Gm-Message-State: AOAM532AdeoORf2qQbFyH+kSHf2ZVhBJe/H3oNz8aIqACfZjcNhCPZgc FsfY+Zwa8x/bMvODGNYJSd/t7r2pCXYb49dDamIXWqJMWxfTMz0D0PJ15TzRotD5u1ei4S5eQ44 RjRs2yTeFnozettiznipKzrdD4GGmHzN9KDf8ifdn0Q== X-Received: by 2002:a05:6402:3492:b0:412:e174:856d with SMTP id v18-20020a056402349200b00412e174856dmr14337650edc.355.1645517823590; Tue, 22 Feb 2022 00:17:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjQMTBhUWe9p4i1iZMqNLGAPb2OaYHSizWdkZXJD7XZlDz58gJDa/yppc1baHIOu+021SvIg== X-Received: by 2002:a05:6402:3492:b0:412:e174:856d with SMTP id v18-20020a056402349200b00412e174856dmr14337634edc.355.1645517823302; Tue, 22 Feb 2022 00:17:03 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id u24sm5946159eje.25.2022.02.22.00.17.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 00:17:02 -0800 (PST) From: Krzysztof Kozlowski To: kernel-team@lists.ubuntu.com Subject: [J][PATCH] UBUNTU: [Config] realtime: tweak config for realtime tasks Date: Tue, 22 Feb 2022 09:16:59 +0100 Message-Id: <20220222081659.15019-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1961588 Change kernel config to fit Realtime use cases: 1. CONFIG_WQ_POWER_EFFICIENT_DEFAULT disable: energy saving is not that important for Realtime workload but locality of any workqueues (thus waking up only local CPU). 2. CONFIG_TIMERLAT_TRACER and CONFIG_OSNOISE_TRACER enable: for debugging latency issues. 3. CONFIG_BLK_CGROUP_IOLATENCY enable: for users wanting to have guarantees on IO latencies. 4. CONFIG_IRQ_TIME_ACCOUNTING enable: for fine granularity task IRQ accounting. Signed-off-by: Krzysztof Kozlowski --- debian.realtime/config/config.common.ubuntu | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/debian.realtime/config/config.common.ubuntu b/debian.realtime/config/config.common.ubuntu index 9d325d4ab744..9cb2a8111c51 100644 --- a/debian.realtime/config/config.common.ubuntu +++ b/debian.realtime/config/config.common.ubuntu @@ -983,7 +983,7 @@ CONFIG_BITREVERSE=y CONFIG_BLK_CGROUP=y CONFIG_BLK_CGROUP_FC_APPID=y CONFIG_BLK_CGROUP_IOCOST=y -# CONFIG_BLK_CGROUP_IOLATENCY is not set +CONFIG_BLK_CGROUP_IOLATENCY=y CONFIG_BLK_CGROUP_IOPRIO=y CONFIG_BLK_CGROUP_RWSTAT=y CONFIG_BLK_DEBUG_FS=y @@ -3848,6 +3848,7 @@ CONFIG_HAVE_PREEMPT_LAZY=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RELIABLE_STACKTRACE=y CONFIG_HAVE_RSEQ=y +CONFIG_HAVE_SCHED_AVG_IRQ=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_HAVE_STACKPROTECTOR=y @@ -4894,7 +4895,7 @@ CONFIG_IRQ_FORCED_THREADING=y CONFIG_IRQ_MSI_IOMMU=y CONFIG_IRQ_POLL=y CONFIG_IRQ_REMAP=y -# CONFIG_IRQ_TIME_ACCOUNTING is not set +CONFIG_IRQ_TIME_ACCOUNTING=y CONFIG_IRQ_WORK=y CONFIG_IR_ENE=m CONFIG_IR_FINTEK=m @@ -7012,7 +7013,7 @@ CONFIG_OPTPROBES=y CONFIG_ORANGEFS_FS=m CONFIG_ORINOCO_USB=m CONFIG_OSF_PARTITION=y -# CONFIG_OSNOISE_TRACER is not set +CONFIG_OSNOISE_TRACER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_OVERLAY_FS=m # CONFIG_OVERLAY_FS_INDEX is not set @@ -10468,7 +10469,7 @@ CONFIG_TIFM_CORE=m CONFIG_TIGON3=m CONFIG_TIGON3_HWMON=y CONFIG_TIMERFD=y -# CONFIG_TIMERLAT_TRACER is not set +CONFIG_TIMERLAT_TRACER=y CONFIG_TIMER_ACPI=y CONFIG_TIMER_IMX_SYS_CTR=y CONFIG_TIMER_OF=y @@ -11806,7 +11807,7 @@ CONFIG_WM831X_WATCHDOG=m CONFIG_WM8350_POWER=m CONFIG_WM8350_WATCHDOG=m CONFIG_WMI_BMOF=m -CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y +# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set # CONFIG_WQ_WATCHDOG is not set CONFIG_WWAN=y CONFIG_WWAN_HWSIM=m