Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Yield fix #6

Open
hamadmarri opened this issue Nov 14, 2021 · 1 comment
Open

Yield fix #6

hamadmarri opened this issue Nov 14, 2021 · 1 comment

Comments

@hamadmarri
Copy link
Owner

hamadmarri commented Nov 14, 2021

When Task t1 calls yield, a yield mark is set to its vruntime on the most sig. bit to make it large, and it gets reset when another task gets picked.

However, in case there is no other tasks except t1 in the rq, no need to mark it with the yield bit.

@hamadmarri
Copy link
Owner Author

2- The yield bit on vruntime is bad since in cacule IS two tasks with yield bet get the same IS due to the big value of vruntime. It's better to be replaced with another method.

hamadmarri added a commit to hamadmarri/linux-baby that referenced this issue Nov 16, 2021
`YIELD_MARK` only applies if `cfs_rq->h_nr_running > 1`
`YIELD_UNMARK` on migrate_task
hamadmarri added a commit to hamadmarri/linux-1 that referenced this issue Nov 16, 2021
`YIELD_MARK` only applies if `cfs_rq->h_nr_running > 1`
`YIELD_UNMARK` on migrate_task
hamadmarri added a commit that referenced this issue Nov 16, 2021
    `YIELD_MARK` only applies if `cfs_rq->h_nr_running > 1`
    `YIELD_UNMARK` on migrate_task
hamadmarri added a commit to hamadmarri/linux-baby that referenced this issue Nov 21, 2021
`YIELD_MARK` only applies if `cfs_rq->h_nr_running > 1`
`YIELD_UNMARK` on migrate_task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant