# High CPU usage with Ansible 2.0.0.2

**URL:** <https://forum.ansible.com/t/high-cpu-usage-with-ansible-2-0-0-2/20389>\
**Category:** Ansible Project\
**Created:** [January 29, 2016, 7:40pm UTC](https://forum.ansible.com/t/high-cpu-usage-with-ansible-2-0-0-2/20389 "2016-01-29T19:40:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Budric](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@Budric](https://forum.ansible.com/u/Budric)\
**Post date:** [January 29, 2016, 7:40pm UTC](https://forum.ansible.com/t/high-cpu-usage-with-ansible-2-0-0-2/20389/1 "2016-01-29T19:40:14Z")

</div>

Hi,

After upgrading to 2.0.0.2 I notice that there are 2 python processes “python /usr/bin/ansible-playbook stress.yml” taking up ~20% of the CPU each on the host machine that ran the playbook. Eating up resources like this for a long running playbook (I use playbooks to backup, and do virus scanning on a bunch of machines which can take hours) is not ideal. This didn’t happen with 1.9.2.

Here’s a basic playbook I used to reproduce this using gnu stress utility

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 29, 2016, 10:19pm UTC](https://forum.ansible.com/t/high-cpu-usage-with-ansible-2-0-0-2/20389/2 "2016-01-29T22:19:59Z")

</div>

I would not call it a bug nor expected behavior but this is something  
we should improve on, open a ticket on github using teh template and  
minimal examples for us to reproduce.

---

<div class="post-metadata">

**Author:** ![Budric](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@Budric](https://forum.ansible.com/u/Budric)\
**Post date:** [January 29, 2016, 10:51pm UTC](https://forum.ansible.com/t/high-cpu-usage-with-ansible-2-0-0-2/20389/3 "2016-01-29T22:51:12Z")

</div>

Ok thank you.  
[https://github.com/ansible/ansible/issues/14219](https://github.com/ansible/ansible/issues/14219)

---

<div class="post-metadata">

**Author:** ![Mirko\_Friedenhagen](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Post date:** [January 31, 2016, 11:15am UTC](https://forum.ansible.com/t/high-cpu-usage-with-ansible-2-0-0-2/20389/4 "2016-01-31T11:15:51Z")

</div>

I stated this in the issue as well: I saw an increase in the sum of  
user+sys time of 300%, so with 1.9.4 I hardly noticed a playbook run  
on my Macbook and now it feels sluggish.  
Regards Mirko
