Author Topic: PI 1.7 under Windows hogs CPU  (Read 4387 times)

Offline Flea77

  • Newcomer
  • Posts: 24
PI 1.7 under Windows hogs CPU
« on: 2012 June 30 14:24:18 »
When running the BatchPreprocess script the computer becomes almost unresponsive making it impossible to even read a messageboard in a web browser. Juan suggested I change the Maximum Module Thread Priority to Normal which I did and that makes it better, but still when running integration at the start of the script the same thing happens.

i7 quad core, 2.93GHz, 16GB RAM, 256 SATA6 SSD boot, 1TB 7200 Data.

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: PI 1.7 under Windows hogs CPU
« Reply #1 on: 2012 June 30 15:02:09 »
Try this:

Preferences > Parallel Processing and Threads > Maximum number of processors used:
Turn off Allow using all available processors
Set number to one less than the number of logical cores

This solves the problem on my MacBook Air. The tradeoff is a reasonably small performance degradation in some of PI's multithreaded processes.

Mike

Offline Flea77

  • Newcomer
  • Posts: 24
Re: PI 1.7 under Windows hogs CPU
« Reply #2 on: 2012 July 01 13:16:14 »
Mike,

Thanks, that seems to have fixed the problem. Still can get a tiny bit jerky which is fine, I can read forums now at least!

An interesting note, on another thread my issue was attributed to Windows "suckage" as they put it, seems it isn't the OS after all!

Allan

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PI 1.7 under Windows hogs CPU
« Reply #3 on: 2012 July 01 13:56:23 »
could still be, if you are having to set custom thread parameters for just windows, then yes, i'd say there might be a problem with the windows scheduler.

only juan knows if all the thread priority stuff was equal across platforms until this tweak is applied.

Offline Flea77

  • Newcomer
  • Posts: 24
Re: PI 1.7 under Windows hogs CPU
« Reply #4 on: 2012 July 01 14:49:42 »
could still be, if you are having to set custom thread parameters for just windows, then yes, i'd say there might be a problem with the windows scheduler.

only juan knows if all the thread priority stuff was equal across platforms until this tweak is applied.

Really? So Mike having the exact same problem on his Macbook Air is due to Windows "suckage" too? What, he keeps it too close to a Windows box? LOL!

Allan

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PI 1.7 under Windows hogs CPU
« Reply #5 on: 2012 July 01 15:17:41 »
all i know is my own experience. i've never had lags, etc on either my air or my hack. but i do have a lot of memory in the hack.

Offline Flea77

  • Newcomer
  • Posts: 24
Re: PI 1.7 under Windows hogs CPU
« Reply #6 on: 2012 July 01 15:44:06 »
Well I tell you what. Since you said you never had lags on your Mac or Hack (which these days is all Macs anyway) which leads me to believe you don't run Windows, why don't you try to not insult a person's OS of choice by saying it sucks? Then I wont have to go into detail on why we pulled all the Macs and Linux servers out of two school districts and replaced them with Windows boxes. Deal?

Besides, infering that someone's computer sucks because of their choice of OSs is just plain rude.

Allan

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: PI 1.7 under Windows hogs CPU
« Reply #7 on: 2012 July 01 15:53:30 »
Sorry for my misleading post. I running PI in Win7 on my Air. The issue is Win7.
Allan your attitude is annoying. I hope you get bored soon and go somewhere else.
Mike

Offline Flea77

  • Newcomer
  • Posts: 24
Re: PI 1.7 under Windows hogs CPU
« Reply #8 on: 2012 July 01 16:06:57 »
Mike, how convenient.

I would go somewhere else but this is where I was told to report the myriad problems in the software. Not overly fond of most people here myself.

Allan

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI 1.7 under Windows hogs CPU
« Reply #9 on: 2012 July 01 17:14:37 »
This is a well-known issue with PixInsight 1.7 on Windows operating systems. It is already fixed in the incoming version 1.8.0 of the PixInsight core application.

The workaround is decreasing the maximum thread priority allowed for modules with the standard Preferences tool, or with the parallel command:

parallel -t=4

If setting maximum thread priority to normal priority (4) doesn't fix the problem for you, try lowering it even more. You can try with very low priority (2), but this is really odd and has not been reported before. Another solution is limiting the number of processor cores used by PixInsight, as has been indicated. This can be done easily with this command:

parallel -p=n

where n is the maximum number of processor cores allowed for module processing. Use 'help parallel' for information on additional options to control parallel processing in PixInsight.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI 1.7 under Windows hogs CPU
« Reply #10 on: 2012 July 01 17:24:46 »
As for the rest of 'comments', please drop them *now* or I'll have to lock/delete this topic. And it would be the first time that I have to moderate a thread on this forum.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/