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 C90243A9623 for ; Tue, 24 Feb 2026 17:43:58 +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=1771955038; cv=none; b=nUZhcjb+YQH+HTtcueSQeGspvL+XMVJDI9Uh6Vs5e7jo4CnPOail2LjR+PtNM5980mvbJh/d2aC096335lNrAah5UjaLpq2deoXDdUPXu48amb6+r1TAiLfua4dPMONSXeNCD+zub/4BroOD5pwgYCC73qD7ih2H4TsMSdTzd2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771955038; c=relaxed/simple; bh=LIT9aGtuIcov1uqzrQeGN1RRqVopNooRpfN17HrCgkQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GMDiXjHyeUGf/qgFmm1bQRRwRpU9f6+5s9tv9xJQGtnv4WRz7dqJgW1Xq29CLiKloqo5rssQiC1VvQclD25OzYTYt5EAqHGZsfurZnUsT4CXYY/0eI4ZqNcv8WcGFJhC/5p75AusyFItP6KnyYnCSup1P84gm2HsP8y/4b0eoso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hzevvMOy; 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="hzevvMOy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B934C116D0; Tue, 24 Feb 2026 17:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771955038; bh=LIT9aGtuIcov1uqzrQeGN1RRqVopNooRpfN17HrCgkQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hzevvMOyrXFt8KxnS8XI2sI7dtQSHAHcuR2wZYYO7tAu6RtCBmnPyBnFmYug9DCqS 2YG8rEqai7TOIlqGV0qSZpGTDAuCn0M8zKoc7Lv24dh4tVmSGxRHh+JHVgXVHhi/L+ CjsGAOFvQxdCu+P1E+uygbFhntic2wL06mx6gV4c+55ky2d8lY2H9bBTJbi1QoVrO4 20wcqZh6weYaxl2z0GGvEz3JoY3eCPl9xRbNQL7QuyZyjZ0VOH6t7Wj+ik0z8na1zi qwA+fOFBBSx1tVpbczD4+gH2DMVVaSvu0tlcrxpucwR77nJA5B735d3/+LibN3hOXm HaoyPeWVz1k/g== Date: Tue, 24 Feb 2026 07:43:57 -1000 From: Tejun Heo To: David Carlier Cc: David Vernet , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched_ext: optimize sched_ext_entity layout for cache locality Message-ID: References: <20260224055637.16956-1-devnexen@gmail.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: <20260224055637.16956-1-devnexen@gmail.com> On Tue, Feb 24, 2026 at 05:56:37AM +0000, David Carlier wrote: > Reorder struct sched_ext_entity to place ops_state, ddsp_dsq_id, and > ddsp_enq_flags immediately after dsq. These fields are accessed together > in the do_enqueue_task() and finish_dispatch() hot paths but were > previously spread across three different cache lines. Grouping them on > the same cache line reduces cache misses on every enqueue and dispatch > operation. > > Signed-off-by: David Carlier Were you able to measure any different by any chance? Thanks. -- tejun