Author Topic: Default thread priority again set to 'time critical'  (Read 3993 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Default thread priority again set to 'time critical'
« on: 2009 December 06 20:06:47 »
I thought we agreed it would be better to not use time critical so that the system keeps rolling while PI is doing it's thing?
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Default thread priority again set to 'time critical'
« Reply #1 on: 2009 December 07 02:43:39 »
Hi Sander,

In the Windows versions of PixInsight, no standard module is using real-time threads except a few very special cases, which don't affect performance of other processes because only very short threads are involved. The core application for Windows is only using real-time threads for screen renditions and color management transformations associated to processes that are triggered by interactive user actions, for example when the user navigates images.

The Preferences interface says that the maximum thread priority is Time Critical, but unlike previous (old) versions, this only means that a process is able to create real-time threads sporadically, not that this is the default thread priority used by processes.

So if you have lowered the maximum module thread priority setting, please set it again to its default Time Critical value, unless you have a very strong reason to lower it, because otherwise a few processes will run somewhat slower. These include StarAlignment (the star matching algorithm) and ImageIntegration, among a few others. The performance of your machine to run other processes won't be affected adversely because, as I've said, real-time priority will only be used for very specific and short threads.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Default thread priority again set to 'time critical'
« Reply #2 on: 2009 December 08 13:55:50 »
Juan,

as you know I feel very strongly about my applications being good citizens on my system and assume the role of guest, not master. They can grab their share of resources but must play nicely with others. I want PI to use all available resources it needs but not at the expense of other processes.

Please suggest a benchmark I may use to verify the necessity of time critial default thread priority. You mention star alignment. If I register a large image on another one and they spend the same amount of time regardless of thread priority setting would that indicate I can keep things at 'highest' without penalty?

As you recall the last time we discussed this we found no appreciable speed up due to higher thread priority but other applications were allowed to continue operating normally.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Default thread priority again set to 'time critical'
« Reply #3 on: 2010 January 03 09:02:51 »
Hi Sander,

The new version of StarAlignment doesn't use real-time threads anymore on Windows. I'll release it in a few days. No other standard processes use real-time threads since build 561, so PI should be a reasonably good (but wild) guest :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Default thread priority again set to 'time critical'
« Reply #4 on: 2010 January 03 09:16:50 »
Thanks Juan!
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity