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 74333B665 for ; Tue, 24 Feb 2026 18:06:41 +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=1771956401; cv=none; b=kz4+RtMYWVi3NwQS+03dE1jyeP8aoDRRnKBvFhAqSs4JkfmVEUUFs8ewkTBS1pyP3uETudOjvWelhYbf307XGk93cP7vYdWYamr+2qPYVFUwTgfGcqR+RE4kR7WzVLC22GP9pgzIlDRlfIa1J5LYdvBwqQER+OQWi6Vuo41oZ98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771956401; c=relaxed/simple; bh=ZnzSbvxB9kSmaaKEFNBgNGRLIZAN0Jx9tbKVeUY6lZw=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References; b=t1kZzmE4eSknOGaXsX0y7Kdz1QZxtJbhen7b+UAytQrYxzxhRf9FGcBYLUL+0Ur73LxzMad4qIaASiAbDsyj78wMFFwo6wStX5JXChyKptaO8pxHSMUb3WY+ZJV+YRv9/jPAdgzDwpMoT7jJuT+fCUYF8OYBxtndC8i+rmz1/Y4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D8fPvtrk; 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="D8fPvtrk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDEE0C116D0; Tue, 24 Feb 2026 18:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771956401; bh=ZnzSbvxB9kSmaaKEFNBgNGRLIZAN0Jx9tbKVeUY6lZw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D8fPvtrks4bE3qTEkU0T4nNBJd4FBx7VK7l1XQySfgUhqUF+PAQpQkWqNpwZ44zxv WFVL2hYhea7rmFo27/CXinWQCVRFVyLymBh1/jq2QZbKJwwPhIr4hDhLe5g9NQt7eL trf4jBhoh27gnzdreRpqRoazUhWj+B/oQTHePKaC36durLUjso5iPrPQyvk1mSUPmA vaJmMWenaMNfDReOm2MdpItoForb2egxB9uw2i5shM6gD93n7LEKjQett8gV+x6GZy LUjUGcgWXZdkQFEccnSxLbP0ZEKcF/CoksS9Hmh2oBQOCbJTgtJ+Wxv/9XZg53x2C6 b+gIA/pNq1PVQ== Date: Tue, 24 Feb 2026 08:06:40 -1000 Message-ID: From: Tejun Heo To: David Carlier Cc: David Vernet , linux-kernel@vger.kernel.org, emil@etsalapatis.com Subject: Re: [PATCH] sched_ext: optimize sched_ext_entity layout for cache locality In-Reply-To: <20260224055637.16956-1-devnexen@gmail.com> References: <20260224055637.16956-1-devnexen@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: > 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. Applied to sched_ext/for-7.1 with the subject line capitalized. Thanks. -- tejun