When I fire off 100 copies of date, I hardly see any change in memory usage. I even fired 100 copies of the following script, but I donot see any change in memory usage even when 100 such processes are running in parallel ------------------------------------------------------- #!/bin/bash COUNT=1000000
for ((i=1;i<=$COUNT;i++)); do : done ------------------------------------------------------- On Wednesday, December 12, 2018 at 12:26:04 PM UTC+5:30, Karl Auer wrote: > > what happens if you leave Ansible out and just fire off 100 copies of date? > > On Wed, Dec 12, 2018 at 5:54 PM pradeep.hk <[email protected] > <javascript:>> wrote: > >> I have a requirement to run lots of playbooks parallely on localhost. >> When I run 100 playbooks parallely (a simple one that executes the a >> shell command - date) , I see that >> it consumes lot of resources (memory ~ 7GiB and CPU ~ 200%) >> Is this on expected lines ? >> >> here is what I am trying to run >> --------------------main.yml----------------------------------------- >> >> - hosts: 127.0.0.1 >> >> connection: local >> >> gather_facts: no >> >> >> >> tasks: >> >> - name: Get date >> >> shell: date >> >> register: result >> >> >> >> - debug: >> >> var: result.stdout >> ------------------------------------------------------------- >> >> I execute multiple of them with the following script >> >> ------------------------------------------------------------- >> #!/bin/bash >> COUNT=1 >> >> if [ $# -ne 0 ] >> then >> COUNT=$1 >> fi >> >> for ((i=1;i<=$COUNT;i++)); >> do >> ansible-playbook main.yml & >> done >> ------------------------------------------------------------- >> >> >> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Karl Auer > > Email : [email protected] <javascript:> > Website: http://2pisoftware.com > > GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816 > Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/132ce039-63c5-4f0d-9ab6-051a0d630a26%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
