-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A EDF scheduler based on enclaves #484
base: main
Are you sure you want to change the base?
Conversation
1. Implemented left-shifting of priorities when the right shift fails 2. Assigned maximum priority to worker threads waiting on the semaphone to be woken up as soon as a thread signals on the semaphore 3. Slightly re-factored the EDF code 4. Added missing case of scheduling a reaction with shorter deadline than the others currently being executed 5. Added print of error when the scheduling policy is not LF_SCHED_FAIR but the program was not launched with sudo rights (cannot change the scheduling policy)
1. Implemented abort when the number of threads exceeds the number of priority values 2. Set the priority to 99 when sleeping with wait_until function
1. Fixed bug with thread ids not corresponding to the indices of the EDF data structure 2. Fixed bug where initialize_lf_thread_id was called twice in the main thread
1. Set the mutex protocol to INHERIT to avoid unbounded blocking time of the worker threads when operating on the EDF data structure 2. Lowered the maximum priority of worker threads to 98 to reserve 99 for watchdogs 3. Fixes to the shifting algorithm 4. More LOG prints for debugging
@edwardalee and @fra-p, I have been looking at the proposed algorithm today. It is not an easy algorithm to get exactly right and this is a great start! I have some general comments:
What does this mean? It means that when a worker fetches a reaction or completes a reaction (which is the time it adds itself and removes itself from the linked list), he must verify that we have N threads with A downside is that it wont work well SCHED_FAIR, and I think it can be valuable to use this to set niceness values for soft real-time systems. Have you considered this approach? Am I missing something crucial here? |
All good points. |
This PR is based of this: #424 but I merged in an updated reactor-c and I want to keep the existing PR for reference.