[haiku-bugs] Re: [Haiku] #10454: New scheduler: substantial performance drop

  • From: "fishpond" <trac@xxxxxxxxxxxx>
  • Date: Sun, 29 Jun 2014 16:09:32 -0000

#10454: New scheduler: substantial performance drop
-----------------------------+----------------------------
   Reporter:  stippi         |      Owner:  pdziepak
       Type:  task           |     Status:  in-progress
   Priority:  high           |  Milestone:  R1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:  10487          |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by fishpond):

 The scheduling keeps my core I7 quad system unusable for any sort of media
 processing or games with sound. Around 20 seconds after booting up, menu
 navigation becomes unresponsive. Really looks as if especially small tasks
 get delayed for multiple seconds sometimes, including audio buffer
 transfers, keyboard and mouse click responses etc.. Building Haiku in
 parallel or other batch tasks with single-threaded parallel processes fly
 though.

 Pretty sure I spotted one bug in scheduler.cpp -
 scheduler_set_thread_priority, line 184ff. where the test on the new
 priority being different to the current on occurs after the new on is set,
 so that the priority update never really happens.

 Will look into other points but that should probably be fixed, simply by
 checking against oldPriority instead of thread->priority in line 184.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10454#comment:18>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: