Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1050586rdb; Fri, 20 Oct 2023 07:12:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjNZ6OT6Iau/neS/+grOT8FWWcQWGYGXvVIF9r6sN/euvv1CQHkSGlqIMZ2cUPttLm7JU4 X-Received: by 2002:a17:90a:4e4e:b0:278:f907:719d with SMTP id t14-20020a17090a4e4e00b00278f907719dmr1791378pjl.48.1697811120497; Fri, 20 Oct 2023 07:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697811120; cv=none; d=google.com; s=arc-20160816; b=JCcJ5lr0/kG3h2PbJnCWHdToHykceT18nVjV/AEER4lHVj94OXAEhv+cjeeWGqzxgu vrLAeMCgsbdLkFjLJel2yLhvb7wHvVm6jLtdMJd1nnyScieirdZcD/KhTWj5ncMQLi52 9CE8bO5J9GMbBrRPXsJa7UvB6wvTn+jEZYiKyHH3Gvp9icwp2WeoRAyaz4F/977JUU77 2nqa30eohhqdCc/iLwUDb9zu49Tu30Z2xpJMCdlgKXxKUYcGpZtQAUQlADwFI8xhTkFb VIYE5kNTxgEcPUvZZ6KuPl8LUgh9YWk7bmCRFE5qWMQxLRP4ZQOkujHKtULm60W6qpx2 4K3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=e8zaciQJkPG5al9r2SRiktP5yeXQk0lZt6r3KCF+0q4=; fh=pmXzvdjuLzrhJi+SOAnw7ybR5B56NTkgTxZ7+1bnWlU=; b=mKAcbO929TvJmQl1uRmk+7kEQCs1FLSt7JqC0IgznebOS/1o4rnNZIh1Ov7iNHIlQ2 44F7o2Cuq7AOcwMfgsLc9wyWRVz+Vj6j377hmRp60DL+A5Ok76S37A8EVsmZqvxGBH9h /bIc7dgjTF05qykzdiMuM37CRqM+/FjaYwgM48unhqits3JpxLiufBFHtZsPpNnjnEfr lbfmdfgv36yrkmbSx+B05//AOvD8/Hn1fNmUphtiEkaOvE8HIe1Enqikwkjee6mz/BIO Y7ifEKKFtBYQLc06sigZihH9ofnQynp/8mm1t1pNcanEdyFivX2LtN7JBCwomz3ON1kJ RTtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=XaVa51oG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id cp8-20020a17090afb8800b002791d79bbf9si4554362pjb.187.2023.10.20.07.12.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:12:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=XaVa51oG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 40BBA830103D; Fri, 20 Oct 2023 07:11:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377495AbjJTOLw (ORCPT + 99 others); Fri, 20 Oct 2023 10:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377419AbjJTOLv (ORCPT ); Fri, 20 Oct 2023 10:11:51 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456F893 for ; Fri, 20 Oct 2023 07:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1697811104; x=1698415904; i=efault@gmx.de; bh=nmczSBI2pFFgwL6eKCEn0u5bcuiQ7coKuKAHrXHH3Ag=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To: References; b=XaVa51oGSBG0Qi/rS2iki0S1wle/NMdW7bV6ApC85XZCtq2OXZ7kC4RSPSZ6DECd OorcViNzE/cmd3pmTtiL+PIJkHvPGxjjYIlR7RlncMUPAQBkM2LXOJ7rUr6fqmbdc TdWs2pUptCzCfokxiLW98bnXrxKYMGVkVxiYF5IzlNt5k0MvvM+BUpc0fhHY+xwzF BCtlsesqiPLHu5DgOmjLMJkO+ys4N3NEQoLjgw1bHAed6zR/+LkPjHLh/dYfrzXgu ARW05SLnBKyjQL7XslQGyJp8LTDf0F57RBxNAyW88HUD68DttW+enFkP3Vk1VBN92 LATD52cMPvUuI6eTdg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from homer.fritz.box ([185.221.149.246]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYvcA-1qyMTo0H0i-00UoPd; Fri, 20 Oct 2023 16:11:44 +0200 Message-ID: Subject: Re: Runtime overhead of PREEMPT_DYNAMIC From: Mike Galbraith To: Emanuele Rocca Cc: linux-kernel@vger.kernel.org, Michal Hocko Date: Fri, 20 Oct 2023 16:11:43 +0200 In-Reply-To: References: <7a818250a8f36476f13b57a172fdb1ab23645edc.camel@gmx.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ya0oBRzIObLGOe+BtNukTIBsIM22KAKK56AC/28STBvj5o0sjAH kU7ZByjiaZs/uj0B485f5CLBFDUuvlwLertcIyx9tLOrEwYwYvROBnWqfRYKOY9abnPqubH vXvFaaWWr4ceUEb1+rvLdN36fhxhZVI8liw06134hJFEKQzn4MSZ5OODvxj/8srvod9KDzU cFctldGHKElu9ujrJ/K8Q== UI-OutboundReport: notjunk:1;M01:P0:PG8iyFXqxXY=;1rorWEGKij9QHcZ1P/dWlS8eYH5 BhtDg68wCtjWS8PugD7f1tfba+wqoAT86C+hf8lV0hhhelHvQz44jil4cL6NbE8Ic7eJqRDpx HuixhhthHTg5Q0g2rH8pzxSkFvSdLmfCPJfx8pElILNiwmRpDdvKhN07zNCvFc6QbiQVhXWLY tahOzBekeqOyr3Ijwc+nEyDm0IvazvDjc5TKH6iwZVbUCm70XKA+hurmX9I0E7BVerQtFltBl nfc8Df9iMe9xh1ccl2zLZfAPoVnpYZW9ZDYSQcTR3Zu64WUdVPb2k+1Eji6Qg9tdqgc9AHCGL ETcM1kIa7e7ZhQucd6+yp7Mjof/JHQMMMbNR9a/DKCwzIFkOINVmuA3ElvadtGWBeGqe//lPL Yr+K/4HagPXtw6BSGfXkqluzVUp9hbHDGY0+QgMJ42fdPgEIIRVjMDm8ZGSGZJF5RFdoRTO3l wbAFszmI/9+hUjXahxwNs/15g5DEBmNQhHLl+MCce441VOmdIc9H8MsBn/SN+i8bQMteQxYBX zjul5UkoKZ9Fy4y72ASaMK3bQ9m/fjpBABobWCRuk0sv2mTH8+8tb5+QS+Ee+6fV1FKDcbvqh ficDPpx6sd23kcCfBkEytLtxwSowbx11RzcbcQyQBy1J3X7CLp3sx2/jM1tsFTWOMa8xMbUyv zM7PKZuVpNRG218T8Ty0t6UJ5Ck9/2wDeMmaNxFRSIfGJdvdS+xAXV9YiiG09PQmswdX5kd1J I2IUdbtXhVpNs1zkS2OdMTZVZR0+VoLeHKlAYoACTCbv4Ong8azMgJlmLvY3rPI3Q6e8plZfG 3lk1E5J7k6s2zMpvgDgtX+Or7ZJh2Yk91emkCTHRawvsO0/j02HaF/65Jqlq6sBicKFR31Mir CxaPcE6g9O8XQezPRVDew49co7YBo9+MfTcZUnlnDAIlJBgYWrm/FPwGWlNISFH1WJFoAXwA7 pBKz75AoBKwSFo5aJ1QhDgO4TYE= X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:11:58 -0700 (PDT) On Fri, 2023-10-20 at 15:40 +0200, Emanuele Rocca wrote: > Hi Mike, > > Here is the full diff between the kernel configurations I used. The only > change I made was setting CONFIG_PREEMPT_DYNAMIC=3Dn, everything else wa= s > a consequence of that AFAICT, but please do let me know if you see > anything that shouldn't be there. > > --- config-6.5.0-0.preempt-dynamic-amd64=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A02023-10-11 15:30:02.000000000 +0200 > +++ config-6.5.0-0.a.test-amd64=C2=A02023-10-11 14:30:02.000000000 +0200 > > @@ -10597,7 +10596,6 @@ > =C2=A0# end of Scheduler Debugging > =C2=A0 > =C2=A0# CONFIG_DEBUG_TIMEKEEPING is not set > -CONFIG_DEBUG_PREEMPT=3Dy > =C2=A0 > =C2=A0# > =C2=A0# Lock Debugging (spinlocks, mutexes, etc...) Seems you had also turned on DEBUG_PREEMPT in the dynamic setup, which adds some overhead.. but not a metric ton. -Mike