Skip to content

[python_async_on_and_off_cpu] Add new check - #162

Open
KowalskiThomas wants to merge 1 commit into
mainfrom
kowalski/python_async_on_and_off_cpu-add-new-check
Open

[python_async_on_and_off_cpu] Add new check#162
KowalskiThomas wants to merge 1 commit into
mainfrom
kowalski/python_async_on_and_off_cpu-add-new-check

Conversation

@KowalskiThomas

@KowalskiThomas KowalskiThomas commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What is this PR?

This PR adds a new correctness check where we have many off-CPU asyncio tasks and one on-CPU asyncio task.

In theory, we should see 100% of the CPU time attributed to the one on-CPU task and ~100% of the wall time attributed to the off CPU tasks (they're sleeping for much longer than the on-CPU task is computing for).

In practice, however, for now, due to the bias we know, ~100% CPU time is attributed to off-CPU tasks (which is clearly stated in the README.md.

This should get much better once we have timer-based profiling.

@KowalskiThomas
KowalskiThomas force-pushed the kowalski/python_async_on_and_off_cpu-add-new-check branch 2 times, most recently from 646782c to 8dbb2d8 Compare July 30, 2026 08:09
@KowalskiThomas
KowalskiThomas force-pushed the kowalski/python_async_on_and_off_cpu-add-new-check branch from 8dbb2d8 to 2fe634f Compare July 30, 2026 08:13
@KowalskiThomas
KowalskiThomas marked this pull request as ready for review July 30, 2026 08:13
@KowalskiThomas
KowalskiThomas requested a review from a team as a code owner July 30, 2026 08:13
@@ -0,0 +1,21 @@
# python_async_on_and_off_cpu_3.11

_**Note** This workload currently does not behave as expected._

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants