Skip to content

sched: Too many IPIs while running context_switch2 within the same core #1

@gautshen

Description

@gautshen

@antonblanchard pointed out that we were observing way too many IPIs when we run context_switch2 benchmark (https://ozlabs.org/~anton/junkcode/context_switch2.c) with the threads pinned to CPUs 0 1 compared to when they were pinned to CPUs 0 8.

#./context_switch2 0 1 --timeout=5
317818
318326
317944
318452
316468

CPU 0
		  16 [XIVE-IPI 0 Edge IPI] = 197212 times
CPU 1
		  16 [XIVE-IPI 0 Edge IPI] = 171036 times

Compared to

#../context_switch2 0 8 --timeout=5
289384
289924
289358
289602
289410

CPU 0
		  16 [XIVE-IPI 0 Edge IPI] = 105 times
CPU 8
		  16 [XIVE-IPI 0 Edge IPI] = 286 times

Figure out the reason for the humongous number of IPIs in the 0 1 case.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingschedScheduler Related

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions