Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6363446rwr; Tue, 9 May 2023 14:11:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52VsJFh7uaSylMT/NN8ajUp8HsIifWF9ezrNXh/dvneHNfzdlED+g5fFRHjodG1qw4v7vE X-Received: by 2002:a05:6a20:7295:b0:f2:ae03:4020 with SMTP id o21-20020a056a20729500b000f2ae034020mr17761750pzk.54.1683666684420; Tue, 09 May 2023 14:11:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683666684; cv=pass; d=google.com; s=arc-20160816; b=nvh+WdwOwLFWk9gGQVp2Ifgc9bE/PfKZJnKm6eaJlh6Zo1MU5EEk5HtEJabc6d1AfN vA/g0/MElSkNohJcpbMopY0ampm6oJGUCpvicUpgSsX5yAgMkYOWTTK/l7svnQz20f2N yqFfM80RysyLWV45PGmqEGmS0G4DQDHoIhUr8w5MXAfXqDA5+ZfK8ezaDhQUBYsCJIUO UbFqWBLtWVdBzRvkzWrh02xwZ+R3GyZbyMAlH5X2LbQ1T46hQpRHXAJdhGQ7sim3Fyt7 mwJVaxgl6WpReLx/OozkV+aH6tW8CPEqdQKVclM5y4/tgA0ucf7eRP2OOTgpj4bBOTe1 cyzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=fRgLOZyb8YGiGM41S8ROnEF5wfGxS+vShKER0upqfXY=; b=axrWGVnDOgEcs2QcP4uDabukz/XH23mlQwfVr/76evBwE4rQzaXDQCvQc6rCs2DZz3 CIlPgUPBveR3bYwTfYlBhra307SLuMB2XhkKee5G1k0uzA+gPferAjBFQCx1ww5tYmmf yk0y0lpmTHnI1YzhLRsShV5ts5JSU2Fbh1JCXxm/vkuJy0iKL/amfsADKeGgwv6pPlfb PPuzBeKQ9rPE2Hx/9k9D/GxBE0u9wNRlUsukEYyztB2XQldA3rsiHx4SPs1aGIpiqhfj 9y5Q0rCI1l5d/+9ez2v4BLdSMBvA/8tRb+kNDY7uMB5f/OAqFCiaGuW7pE/Yh5gqB1Ns nZpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@santannapisa.it header.s=selector1 header.b=uiTfMbN4; arc=pass (i=1 spf=pass spfdomain=santannapisa.it dkim=pass dkdomain=santannapisa.it dmarc=pass fromdomain=santannapisa.it); 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=NONE sp=NONE dis=NONE) header.from=santannapisa.it Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a63b953000000b004fbc2116e0esi2316543pgo.205.2023.05.09.14.11.11; Tue, 09 May 2023 14:11:24 -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=@santannapisa.it header.s=selector1 header.b=uiTfMbN4; arc=pass (i=1 spf=pass spfdomain=santannapisa.it dkim=pass dkdomain=santannapisa.it dmarc=pass fromdomain=santannapisa.it); 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=NONE sp=NONE dis=NONE) header.from=santannapisa.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235209AbjEIU4B (ORCPT + 99 others); Tue, 9 May 2023 16:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234893AbjEIU4A (ORCPT ); Tue, 9 May 2023 16:56:00 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2055.outbound.protection.outlook.com [40.107.241.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9799B59D4; Tue, 9 May 2023 13:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y8tYHmf5Ue1NHWteMVEOev83uJl+IsMc1XOE7QJ2iFTU5RgTnVB6zVzLtIVw3xhZdvne6cG212S23IrmPnM+O42wpMsMI4mnp/hwUIV/4ES5/CBnOTbC+ugJLPJ/FSwEdzIVNa280Ys4/VF3r0OcIgtXVNCRchiLnwo2fnAsjnCwzbwPo6gpBAZivS2Gz4pCzjPQ+Cuo5iZnYVg4IW93At2N1snlLb3njd/fXp5yMRw0GrM5FftMRYycGrNnkb7eiwAq2rZtv9jP0TBs3I56OJBwDB4PSW0g3Vucb94OcGJKiInJknwP6ohImxYleKWXWWrb0NpLNOTEFch4UYqXSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fRgLOZyb8YGiGM41S8ROnEF5wfGxS+vShKER0upqfXY=; b=ZNnoGAmA8NM3pGMa7daXsAj8QKXXssLHeuos3txyRMNoznCZFWKRPS6bq/Kd10LaQXTUK6embNujrHjGoI4/bqLwQQj3J4aezajB/+QgMaBH3cpHNmo44JEflvMHw6gKBsjh3jxjOo1z5+DzkSC0WD0dYDyrHiNFecpfkejToPmeme41eJvF1E6Qtdt30U2/VHEHWPvKiNN2b9JpvJF2Qe/rPTtMrudXg3KTJUFHYiOVpRy0VMwcGzpu8rf4VhTRl9ys22gRRrinbXRB594AkXcboUUYqMPBovh9/1MPFyzqU1BN+6JpuX8bLsH13nnN/bjKEgyfgq/Go0A4jqElNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=santannapisa.it; dmarc=pass action=none header.from=santannapisa.it; dkim=pass header.d=santannapisa.it; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=santannapisa.it; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fRgLOZyb8YGiGM41S8ROnEF5wfGxS+vShKER0upqfXY=; b=uiTfMbN4ZT5F86WYONCpuvMNRcOG8genGBYTaHzimHRcFNIlkvfskrU85l3AHPWfTunv5cuPE1n2TjB3Ts/VMB8v5atEHZ8FhWS+8xhtLhC6i7Nq8VljdCnnxfbSf3jw+jEbojpwxu5H80dbpcX/Pk0QYv1xKn1oB6xqbEfFbeo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=santannapisa.it; Received: from VI1PR03MB2880.eurprd03.prod.outlook.com (2603:10a6:802:2d::21) by PR3PR03MB6619.eurprd03.prod.outlook.com (2603:10a6:102:7a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Tue, 9 May 2023 20:54:21 +0000 Received: from VI1PR03MB2880.eurprd03.prod.outlook.com ([fe80::8cd9:c5f1:f698:5600]) by VI1PR03MB2880.eurprd03.prod.outlook.com ([fe80::8cd9:c5f1:f698:5600%3]) with mapi id 15.20.6363.031; Tue, 9 May 2023 20:54:21 +0000 Date: Tue, 9 May 2023 22:54:17 +0200 From: luca abeni To: Vineeth Remanan Pillai Cc: Juri Lelli , Daniel Bristot de Oliveira , Peter Zijlstra , Ingo Molnar , Vincent Guittot , Steven Rostedt , Joel Fernandes , Dietmar Eggemann , Ben Segall , Mel Gorman , Valentin Schneider , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 1/2] sched/deadline: accurate reclaim bandwidth for GRUB Message-ID: <20230509225417.61d36733@nowhere> In-Reply-To: <20230509224829.2fb547fd@nowhere> References: <20230508160829.2756405-1-vineeth@bitbyteword.org> <20230509132534.09098acc@luca64> <20230509224829.2fb547fd@nowhere> Organization: Scuola Superiore Sant'Anna X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ClientProxiedBy: ZR0P278CA0105.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::20) To VI1PR03MB2880.eurprd03.prod.outlook.com (2603:10a6:802:2d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR03MB2880:EE_|PR3PR03MB6619:EE_ X-MS-Office365-Filtering-Correlation-Id: 44ec0e3d-65d6-4025-aa95-08db50cf9034 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hyJ/pzUu9EtHSY+eehuVHaDSFYWwrjAZcCyRn9dg6f4tJ1C3e3nISsBanq4XJFSjwsWYqCcjz9vFTUCuO13cpreSYcH70+xHl5dOGacHJz4wCXs87j5C+gaYcBF4r4EJsn24F8krj3nShX2Or1k6IvwFAfzazDOGOW//Hbg4YTYydtbZLdC9fGbHz4sxUApwz6QYBS0x9cguOcMWxrQTZ2YZfzArTkA2V/B+LolQuimVjxH6BBqkmx11wncTHxHvW5McZvCP8YAhc2Y4f4tiwNG1u/7MaH6VVk/qLqPiXldFI9F16cMkSj93/JXmmEmA40N+QOgSOYnZFxvnfimsr8+2LliFhhPiQxCrhlqPcVHLjJLMRCXljuFW5hHEOhZKdmJGXq14FXwnuf2dIhIh8r+yH6YD5z8qjJOuAaxjyyP5iK0EHCEr2BCQP4jX/AHWlrziiXL/MizfPSKJx2O6bUENpYnbqQ1MGhW4ij8EByKS2PZx577wLOsbkqBCQ3+ALla2WQHiyMm8mDvipKBGWW0A8LqmWggvK/+8vxQUjuWaBMCRqqi0HUVdhn1clPgv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR03MB2880.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(7916004)(4636009)(346002)(136003)(396003)(376002)(39860400002)(366004)(451199021)(6916009)(36916002)(33716001)(54906003)(86362001)(786003)(316002)(66476007)(6486002)(66556008)(6666004)(41300700001)(66946007)(4326008)(5660300002)(8936002)(8676002)(7416002)(478600001)(1076003)(6512007)(26005)(38100700002)(6506007)(41320700001)(186003)(2906002)(4744005)(9686003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HAGrBxI1fCh8DnlTvxEIX9LJGxGPM5o5+nNXIRRAlemlGm3WMN9lUSffFUBK?= =?us-ascii?Q?iZMdv/6/PYFfcXTRGHmOEpzMj1EN105WuyhA+pKrD9p9uxODxWOpOjxogRbP?= =?us-ascii?Q?afd1OSbh78vg7AAQpLvuPaKXNMvQYfeVLy8XZNU+LL6gxx/tVz/ruws4b12e?= =?us-ascii?Q?cChv+Ra3gD0ki1LbAGBgJbNENkbsFbtIa7eK4y5t8Y9YLslaf+oN6x4PiiJg?= =?us-ascii?Q?zsE6Xwn7D2vgYI3FiIb3M2aynAbQ/bDsJEtYU78iBAr8ZA5EFp5Xmp43xpPG?= =?us-ascii?Q?+eEZcLkdhpOLUvM72kyCcwZ6V33zgI+MNlH59SYyDZl8qfmcMUAa3k7ejx2q?= =?us-ascii?Q?FSZbf+sXayT7VqsyTXUAbD5zWxeZRO6fF9NYCCO4c6xJ5io0wGH5onSUVEfi?= =?us-ascii?Q?q61Hi5zfMw15V6xHJExoaVtQS0E4x/VIKwRwHeKLaksH0x0Xz3AErG6T66xL?= =?us-ascii?Q?sLwinmxDqhscmIPjE3/KQSDX32QymuYT30j/ks6oxgROwtz9j9YB4VNmqDiy?= =?us-ascii?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CUrSf7YszVF2QvTOOHL/2?= =?us-ascii?Q?UzV5W30Tttx/rIf4mDusxKeNlYbpTv88RSMNmWC6H79oElc98wKU2Tagx6Ck?= =?us-ascii?Q?dNIO4oA6dM+dTIa/wmQqYnjUKLIQdUN+hWvNe1HOBd7cDjoDB12irFFGr3GO?= =?us-ascii?Q?HGHIXSLoA4vchMAjH4WTXlkvQDVNV5brvhSkPdEJsTlej6mAdOKhaNvB6YD7?= =?us-ascii?Q?iA=3D=3D?= X-OriginatorOrg: santannapisa.it X-MS-Exchange-CrossTenant-Network-Message-Id: 44ec0e3d-65d6-4025-aa95-08db50cf9034 X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB2880.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2023 20:54:21.2168 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d97360e3-138d-4b5f-956f-a646c364a01e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Yi8TJiDgWlEJpnNCjQd/5IC97GA17njkYZE8ZCc1BX6cFpkto5kWzyPIBDfWm8SqeEwpiatM0bhNMLbwSsUs5xP5Mcfs8HZytmsXWYzLeps= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR03MB6619 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Tue, 9 May 2023 22:48:29 +0200 luca abeni wrote: > Hi, > > On Tue, 9 May 2023 15:29:21 -0400 > Vineeth Remanan Pillai wrote: > [...] > > > Is this understanding correct? > > Yes, the above two details are correct. In addition to that, I think > > the existing equation had a small bug: > > GRUB paper says, running time is depreciated as > > "dq = -U dt" where U is running_bw. > > This is assuming that the whole cpu bandwidth could be reclaimed. > > But in our case, we cap at Umax. So the equation should be > > "dq = -(U/Umax) dt" > > Yes, this is the approximation I was mentioning... Instead of using a > division, I approximated it with a different equation using a sum. Sorry, ignore this comment (and the following); I misinterpreted the code (and my old notes). I do not understand why the "max{}" doe not work well, I need to double think about it. Luca