On Wed, Apr 26, 2017 at 4:52 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Wed, Apr 26, 2017 at 4:28 PM, Simone Tiraboschi <stirabos@redhat.com> wrote:



On 4.1.1, the 96% of the cpu time of ovirt-ha-agent is still spent in connect() in /usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py
and the 95.98% is in Schema.__init__ in /usr/lib/python2.7/site-packages/vdsm/api/vdsmapi.py

So it's still the parsing of the api yaml schema.
On master we already merged a patch to reuse an existing connection if available and this should mitigate/resolve the issue: https://gerrit.ovirt.org/73757/

It's still not that clear why we are facing this kind of performance regression.


Does this mean that I could try to patch the   ovirt_hosted_engine_ha/lib/util.py file also in my 4.1.1 install and verify if it solves...?

Unfortunately it's not enough by itself since it also requires https://gerrit.ovirt.org/#/c/58029/
 
Or do I have to wait an official patched rpm?

Gianluca