# Why So Slow?

**URL:** <https://forum.ansible.com/t/why-so-slow/15824>\
**Category:** Ansible Project\
**Created:** [July 31, 2014, 8:17pm UTC](https://forum.ansible.com/t/why-so-slow/15824 "2014-07-31T20:17:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Post date:** [July 31, 2014, 8:17pm UTC](https://forum.ansible.com/t/why-so-slow/15824/1 "2014-07-31T20:17:57Z")

</div>

Trying Ansible for app deployment. It’s nice but why so slow? This below involves copying four files and it takes minutes !!! I am running on Solaris 11.

- name: Populate conf directory

copy: src=“{{ item }}” dest=/tcpcore/conf

with\_fileglob: /commutil/conf/\*

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 31, 2014, 8:20pm UTC](https://forum.ansible.com/t/why-so-slow/15824/2 "2014-07-31T20:20:40Z")

</div>

That’s pretty crazy and not typical.

Please supply your ansible version, what OS you are running from, and what connection type we are using.

Also have you tried accelerated mode, ControlPersist or pipelining yet?

I assume these are smallish files and that shouldn’t matter. It will just be doing sftp/scp by default, so … not sure what may be a factor on your end but let’s start with that and explore.

---

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Post date:** [August 1, 2014, 5:35pm UTC](https://forum.ansible.com/t/why-so-slow/15824/3 "2014-08-01T17:35:36Z")

</div>

I am using Ansible 1.6.6 on Solaris 10. Target system is Solaris 11 in a VM, that is mostly idle; both in the company LAN.

I am just getting started. I don’t think Solaris takes ControlPersist. I had to make ssh\_args = “”

I can’t use unarchive either, it seems, as it uses the wrong tar, I tried changing the PATH throught .bashrc so /usr/gnu/bin comes before /usr/bin, but it does not seem to source it. I’ve got issues…

Thanks

---

<div class="post-metadata">

**Author:** ![Greg\_Andrews](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Greg\_Andrews](https://forum.ansible.com/u/Greg_Andrews)\
**Post date:** [August 1, 2014, 6:47pm UTC](https://forum.ansible.com/t/why-so-slow/15824/4 "2014-08-01T18:47:17Z")

</div>

In the past, I’ve seen ssh connections into Solaris machines take a long time because the Solaris ssh daemon was doing a reverse DNS lookup on the connecting machine and there was no DNS for the machine. 30 seconds later, the DNS lookup timed out, and the connection continued.

If you have root on the target system, a quick way to confirm/deny this is to create an /etc/hosts entry with the IP address and hostname of your Ansible machine. (create the /etc/hosts line on the target machine, not the Ansible machine).

-Greg

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 1, 2014, 7:17pm UTC](https://forum.ansible.com/t/why-so-slow/15824/5 "2014-08-01T19:17:02Z")

</div>

I have seen reverse DNS lookup issues before, that can be a thing, so +1 Greg!

If using SSH without ControlPersist do also turn on pipelining.

---

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Post date:** [August 1, 2014, 7:44pm UTC](https://forum.ansible.com/t/why-so-slow/15824/6 "2014-08-01T19:44:15Z")

</div>

Thank you for your replies.

I just tried that, no effect. Turned on pipelining, same.

It does seem like a 30 sec or so wait at least before it transfers each file.

It’s not useless, but it’s going to slow playbook development.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 1, 2014, 7:52pm UTC](https://forum.ansible.com/t/why-so-slow/15824/7 "2014-08-01T19:52:01Z")

</div>

I forget what other network issues could exist at this time, though should be able to discover from general network and SSH type debugging.

(Make sure you turned off that check on the remote, not the control machine, if not already)
