linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] sched: blk: Handle HMP systems when completing IO
@ 2024-02-23 15:57 Qais Yousef
  2024-02-23 15:57 ` [PATCH v2 1/2] sched: Add a new function to compare if two cpus have the same capacity Qais Yousef
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Qais Yousef @ 2024-02-23 15:57 UTC (permalink / raw)
  To: Jens Axboe, Ingo Molnar, Peter Zijlstra, Vincent Guittot,
	Dietmar Eggemann
  Cc: linux-kernel, linux-block, Sudeep Holla, Wei Wang, Jaegeuk Kim,
	Bart Van Assche, Christoph Hellwig, Qais Yousef

Due to recent changes in how topology is represented on asymmetric multi
processing systems like big.LITTLE where all cpus share the last LLC, there is
a performance regression as cpus with different compute capacities appear under
the same LLC and we no longer send an IPI when the requester is running on
a different cluster with different compute capacity.

Restore the old behavior by adding a new cpus_equal_capacity() function to help
check for the new condition for these systems.

Changes since v1:

	* Split the patch per subsystem.
	* Convert cpus_gte_capacity() to cpus_equal_capacity()
	* Make cpus_equal_capacity() return immediately for SMP systems.

Qais Yousef (2):
  sched: Add a new function to compare if two cpus have the same
    capacity
  block/blk-mq: Don't complete locally if capacities are different

 block/blk-mq.c                 |  5 +++--
 include/linux/sched/topology.h |  6 ++++++
 kernel/sched/core.c            | 11 +++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-02-24 23:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23 15:57 [PATCH v2 0/2] sched: blk: Handle HMP systems when completing IO Qais Yousef
2024-02-23 15:57 ` [PATCH v2 1/2] sched: Add a new function to compare if two cpus have the same capacity Qais Yousef
2024-02-23 16:12   ` Bart Van Assche
2024-02-23 15:57 ` [PATCH v2 2/2] block/blk-mq: Don't complete locally if capacities are different Qais Yousef
2024-02-23 16:09   ` Bart Van Assche
2024-02-24 23:06     ` Qais Yousef
2024-02-24 13:43 ` [PATCH v2 0/2] sched: blk: Handle HMP systems when completing IO Shrikanth Hegde
2024-02-24 23:12   ` Qais Yousef
2024-02-24 19:48 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).