Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2634978rda; Wed, 25 Oct 2023 08:13:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFawWgGm0ZR+FAyxfGJIpi9lqjOzLjmSZboYI1TZ2hOl9iKgKLVv+bFnuU/O845z6avZ9RH X-Received: by 2002:a25:d013:0:b0:d9b:ff50:b100 with SMTP id h19-20020a25d013000000b00d9bff50b100mr15598976ybg.28.1698246806241; Wed, 25 Oct 2023 08:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698246806; cv=none; d=google.com; s=arc-20160816; b=fSZSp1MrhR2dO+nIAkr0/eDT/8DeNS3HBi8hIS3LwvnB2MF1qJV4owfSpCX6gr+j3c oG5Rm3T6Py1wO7lghVAX3UGXiU3ubzpoVoGj2YbxOpzlTpDR9Rc4B9aabIHn1w5335I0 Fy8WS80dcVqbcpUPXNiMCIs1/WN7Yf4DLcJQE7zyTOPZecKkm+6pAr5v28j/AsHenMkB Wg7RgQvjWWelGXdwEhscwYAXHZgmamIflmGdIrELDYBuOCewZuoaZD3z6UbIVsSYodXm 7XydQvmoRSEKPD+TGMGzT3idHOC772DsgAyrUf2d6VGmP50mmuyh5eZh78W6MTPTO8o9 D0ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=hSQwP2dY1VP7bG3vjmOs1ra7+KXTGRz3B5SFlCZDPlo=; fh=nPh9mZg6Bv/dazj0fAJ9DX0lZNz6kxgqeY0E6MbrePY=; b=lUBa8vxi6KckcM89drNW4NFybi2KLkvfqsUZzD7FAn2brHUlykkfHnEm2VHBwqoibX EwITGZMcHzUo0cBXEma166to5/kkLKWlb8ADeSYbfwUpyIN1JK0jUhOK3z1c5SfcYBEH 4MaQu7LU7Fbl/qUI6WvmwD45CfJEZKosQAv++EqHDSgJVT0uDglJInO6nfo/0G8E4dJQ bgUfvmyxvuQLitqOJGG+IAJm4PqchDiOPeHe71FWsMB3h0rcdEdmjKo7vBt8J55+efG7 sbP+WCaxNFLaAkQr6xyTIJBAfvJ0L/264rovkYggZ1aYB2i6QZqwRtzSj5fDiAupBVbp bP7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m8-20020a25d408000000b00d9ab2b9bfdcsi11202098ybf.640.2023.10.25.08.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:13:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5D384802CFA5; Wed, 25 Oct 2023 08:13:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344178AbjJYPMz (ORCPT + 99 others); Wed, 25 Oct 2023 11:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232469AbjJYPMy (ORCPT ); Wed, 25 Oct 2023 11:12:54 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B5E129 for ; Wed, 25 Oct 2023 08:12:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81FF8C433C7; Wed, 25 Oct 2023 15:12:49 +0000 (UTC) Date: Wed, 25 Oct 2023 11:12:47 -0400 From: Steven Rostedt To: LKML Cc: Thomas Gleixner , Peter Zijlstra , Ankur Arora , Linus Torvalds , linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, Joel Fernandes , Youssef Esmat , Vineeth Pillai , Suleiman Souhlal , Ingo Molnar , Daniel Bristot de Oliveira , Mathieu Desnoyers Subject: Re: [POC][RFC][PATCH] sched: Extended Scheduler Time Slice Message-ID: <20231025111247.64d7b653@gandalf.local.home> In-Reply-To: <20231025054219.1acaa3dd@gandalf.local.home> References: <20231025054219.1acaa3dd@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 08:13:02 -0700 (PDT) On Wed, 25 Oct 2023 05:42:19 -0400 Steven Rostedt wrote: > I ran a traceeval tool on it (still work in progress, but I can post when > it's done), and with the following trace, and the writes to trace-marker > (tracefs_printf) > > trace-cmd record -e sched_switch ./extend-sched > > It showed that without the extend, each task was preempted while holding > the lock around 200 times. With the extend, only one task was ever > preempted while holding the lock, and it only happened once! And looking at the trace, it was because it was preempted by an RT task. extend-sched-3349 [007] 3309.320747: print: tracing_mark_write: Have lock! extend-sched-3349 [007] 3309.320751: sched_switch: extend-sched:3349 [120] R ==> migration/7:68 [0] migration/7-68 [007] 3309.320754: sched_switch: migration/7:68 [0] S ==> extend-sched:3349 [120] extend-sched-3349 [007] 3309.320756: print: tracing_mark_write: released lock! So we know that part of the code works. ;-) -- Steve