Use desched event for all task scheduling
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.7k
- Forks
- 662
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 2
Description
Thought I'd filed this, but I guess not.
The machinery we've built for monitoring desched's could actually be made quite general. If we arm the event when a tracee is scheduled, then we could just let the tracee run until either it traps to a traced syscall, or the desched event fires. This would let the kernel do most of rr's task scheduling for it.
It would also make eliminate the notion of a may-block syscall from syscallbuf, making things much simpler and potentially more efficient. The desched event would always be armed, so any buffered syscall could potentially fire the event.
The mechanics of arming and disarming the event from within the tracer are a bit tricky, but I think doable.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by tracing the existing desched-event monitoring and syscallbuf scheduling machinery; done means the desched event is always armed for scheduled tracees and the may-block syscall concept is removed without disrupting traced-syscall handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- devtools, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100