Number of background processes can be run
Hi,
How many processes can I run using Start-Process
command in - ps:
? Are they unlimited?
I am asking because in some builds it seems that background processes are two instead of three (three are set).
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ilya Finkelshte... on 22 Nov, 2018 12:16 AM
No they are not limited. How do you count them? I recently dealt with similar problem and I created array of process objects to check. E.g. to start each process run this
then check number of running processes with code like this:
Also you can check exit code for each member of that array.
My suspicion is that one of those three processes fails (but not because if any threading limitations which we do not have).
2 Posted by doublebeep7 on 22 Nov, 2018 12:32 PM
Ilya,
I was thinking the same: that one of the processes fail. I tried to run the processes seperately, but no problem.
In this build, I tried to run processes one-by-one instead of previous builds (running process of a file which started all of the 26 required processes), but to start all of these processes lasted ~3-4 minutes. Why this?
@IlyaFinkelshteyn tried your way, variable
runningProcs
gives 0. Have I done something wrong?3 Posted by Ilya Finkelshte... on 23 Nov, 2018 12:29 AM
You did not set a
PassThru
parameter. Also you can RDP and run the thing manually and see what happens.4 Posted by doublebeep7 on 23 Nov, 2018 12:47 PM
@Ilya,
check https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/20... and https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/20... . I think that some processes end (as they last ~30secs) during all of these
Start-Process
commands.But why to start 26 processes requires ~5mins? They had to start immediately (~1sec per process).
I didn't understand this with
RDP
you said. Where should I connect?5 Posted by Ilya Finkelshte... on 23 Nov, 2018 01:19 PM
Regarding RDP, please follow the link I sent in previous message. Regarding process start speed, I believe that it is because of number of cores on VM, which has two of them. I think the same happens much faster on your dev box simpler because it is much beefier than build VM. Does this start time prevents you from implementing your scenario, or you just do not like the speed?
6 Posted by doublebeep7 on 23 Nov, 2018 01:26 PM
No worrries, this doesn't prevent me from my project, I would like to make build time shorter.
doublebeep7 closed this discussion on 23 Nov, 2018 01:26 PM.