hamadmarri / cacule-cpu-scheduler

The CacULE CPU scheduler is based on interactivity score mechanism. The interactivity score is inspired by the ULE scheduler (FreeBSD scheduler).
266 stars 32 forks source link

Freeze on cachy-5.8-r7 #13

Closed raykzhao closed 3 years ago

raykzhao commented 3 years ago

Hi.

On both of my laptop and desktop machine, the cachy-5.8-r7 causes system freeze under heavy load e.g. compiling. Reverting the change of reset_lifetime at hamadmarri/linux@d45986942ebeed2a0827bbaa0edc2368611ebe4a seems to fix the problem on my system.

Not sure whether it is relevant, I am using the voluntary preemption with the autogroup enabled.

Regards, Raymond

hamadmarri commented 3 years ago

It's this line

u64 old_hrrn_x2 = life_time_x2 / se->vruntime;

Division by zero. se vruntime = 0 the time freezed

I will fix this soon. It's weird that it never happened on my machine for about 3 days.

hamadmarri commented 3 years ago

cachy-r7-fix1.zip Try this fix please

hamadmarri commented 3 years ago

https://github.com/hamadmarri/cachy-sched/blob/master/patches/v5.8/cachy-5.8-r7-fix1.patch

raykzhao commented 3 years ago

Thank you for the fix! I haven't yet encountered any freezes so far after applying cachy-5.8-r7-fix1.

hamadmarri commented 3 years ago

Hi @raykzhao ,

Please reopen the issue if something wrong happened again with r7.

Thank you