Thank you for the prompt reply.. Just a curious question: Is the threading 
work that is underway based on python threads or pthreads or any other 
threading mechanism? As you mentioned that the threading model is not going 
to be performant, was the reason being the python's GIL?


On Friday, June 5, 2020 at 12:01:14 AM UTC+5:30, Matt Martz wrote:
>
> The only current process model is forking.  There has been some work done 
> to add a threaded process model, but there are some large hurdles to 
> overcome.
>
> In practice, it is not necessarily more performant, and in many cases it 
> was less performant, as it causes more CPU contention on a single core that 
> is already resource constrained.
>
> On Thu, Jun 4, 2020 at 1:18 PM Jagadeeshkumar Dittakavi <
> d.jagad...@gmail.com <javascript:>> wrote:
>
>> I am a newbie to ansible but I got to explore how to run a tasks in 
>> parallel by spawing a thread for each task instead of a process. My 
>> requirement is to run the playbook on my localhost and there is no remote 
>> task execution needed.
>> I also would like to wait for all threads to complete before I move on to 
>> a task that has to be serialised.
>>
>> Can I chose thread vs process when it comes to parallel task execution?
>> If it is possible to spawn threads from ansible, are they equivalent to 
>> python greenthreads or pthreads or something else?
>>
>> Thank you in advance!
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/0d59cf96-b053-4390-8dbb-663c70403104o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/0d59cf96-b053-4390-8dbb-663c70403104o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/48f0ed5f-83c7-4bf4-a991-94ec78ce832eo%40googlegroups.com.

Reply via email to