RexOps / Rex

Rex, the friendly automation framework
https://www.rexify.org
716 stars 223 forks source link

try to find out why sudo tests on centos systems are so much slower #880

Open krimdomu opened 8 years ago

krimdomu commented 8 years ago

The sudo tests on build.rexify.org for CentOS / Fedora systems are slower (2x) than on debian/ubuntu systems.

We need to figure out if this is a problem with rex or a problem with the system.

tmolnar0831 commented 8 years ago

At the first glance it seems to be a problem with the remote system detection. It checks again and again a lot of things on CentOS. Probably it does not fill the connection cache well, or something like that.

tmolnar0831 commented 8 years ago

$ time rex -mddG ubuntu System:update 2>log.log

real 0m20.455s user 0m0.616s sys 0m0.432s

$ time rex -mddG centos System:update 2>log2.log

real 0m29.083s user 0m1.860s sys 0m3.340s

$ grep 'sudo: exec:' log.log |wc -l 25 $ grep 'sudo: exec:' log2.log |wc -l 291