hamadmarri / TT-CPU-Scheduler

Task Type (TT) is an alternative CPU Scheduler for linux.
107 stars 12 forks source link

Deferred some updates during migration (locking 2 runqueues) #10

Closed hamadmarri closed 2 years ago

hamadmarri commented 2 years ago

https://github.com/hamadmarri/linux-baby/commit/95e9c5ce4dc7b2c27c5ee944704f922555725918

This change removes some unneeded updates during task migration (while locked 2 runqueues) and make some updates deferred after releasing the lock. it saves some locking time (nanoseconds though not much)

Please test and let me know if it worths to merge.

Some benchmarks I did for vblank_mode=1 glxgears the first column (with -dev suffix) is the full deferred patch, the next has only removed update_curr without the deferred stuff, the last two are repeated tests for TT without any changes.

glxgears.ods

Thank you