From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D95A12B2CF for ; Fri, 17 Jan 2025 01:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737078111; cv=none; b=mLEEzYgk+7YRyKhFa/Z3tHcJOt38vd+W5mXFhHuKLb9x/4nXhCvjYgNzEMnmhvPXbeHKJ/gBp4SM0MdMO2G1up6lkXJFspUfdK3wsDtSLwjmUiBBgyP0zsd7bmhW/SfSsK8x+rux7M0+hd97zDZT5QMRnE4A40UfyeM+5NOE/Hc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737078111; c=relaxed/simple; bh=IjLSHKro4jG6KfbptMHhGzsxNmOw6UW9q6xUC+TaSxU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sHx8dMKMOGtY2V2ktbkuuT/lJ54v+ax6dymFD099f7Hqu6+abII3SX+x1PtTOExxsflqTvxV7S7BSWkLFs2r48xDdvVxLyFHgjGQkcpvnorVpus9wlCcuZuui4p66G+8gWqsmHqH7hyXE9tbWYJ48yiOvQFH3zhLiBBwRGrlJvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fGocGrLK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fGocGrLK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5560AC4CED6; Fri, 17 Jan 2025 01:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737078111; bh=IjLSHKro4jG6KfbptMHhGzsxNmOw6UW9q6xUC+TaSxU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fGocGrLKaEnaj0FamSoxq5J508u7Kv/4S7odGZFFZdhTFStF76Gpy4d7QRGVbeFPA uGF30Bcnsi7J1qT6Ez1p+CIZj/LwvJHd88CSmjB3FAurwENbo5k2NtOqxMidaMBwF/ 4LbmK7ZHofoZpfloPmhCTZOUhynjRfzp6rGnmmsgx+3EHtE9+onyphy8adE6jFn83U ZMzgk86CRcyonPueqHk3Iho3YxgTVNiGCzC0xxWbEPXeY7eDVwwQwQ/KWdut4CT7L+ CKdv/+aW8ufz8K95zCtwpzq2khLoDqJmMHj/t2PigpOiVxSsp3bEWK7zHuDcSJRP1t 7siaS5XUNkzUA== Date: Thu, 16 Jan 2025 15:41:50 -1000 From: Tejun Heo To: Changwoo Min Cc: void@manifault.com, arighi@nvidia.com, kernel-dev@igalia.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] sched_ext: Add an event, SCX_EVENT_RQ_BYPASSING_OPS Message-ID: References: <20250116151543.80163-1-changwoo@igalia.com> <20250116151543.80163-6-changwoo@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250116151543.80163-6-changwoo@igalia.com> On Fri, Jan 17, 2025 at 12:15:41AM +0900, Changwoo Min wrote: > Add a core event, SCX_EVENT_RQ_BYPASSING_OPS, which represents how many > operations are bypassed once the bypass mode is set. > > Signed-off-by: Changwoo Min > --- > kernel/sched/ext.c | 23 +++++++++++++++++++++-- > 1 file changed, 21 insertions(+), 2 deletions(-) > > diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c > index 094e19f5fb78..44b44d963a0c 100644 > --- a/kernel/sched/ext.c > +++ b/kernel/sched/ext.c > @@ -1485,6 +1485,11 @@ struct scx_event_stat { > * is dispatched to a local DSQ when exiting. > */ > u64 ENQ_LOCAL_EXITING; > + > + /* > + * When the bypassing mode is set, the number of bypassed operations. > + */ > + u64 RQ_BYPASSING_OPS; > }; I'm not sure this is a particularly good way to account for bypass mode. Maybe account the total duration of bypass modes, the number of times it was activated and the number of times tasks were dispatched in bypass mode? Thanks. -- tejun