
----- Original Message -----
From: "Francesco Romani" <fromani@redhat.com> To: devel@ovirt.org Cc: "Nir Soffer" <nsoffer@redhat.com>, "Martin Sivak" <msivak@redhat.com> Sent: Monday, June 30, 2014 12:14:34 PM Subject: Re: [ovirt-devel] XML benchmarks
----- Original Message -----
From: "Francesco Romani" <fromani@redhat.com> To: "Nir Soffer" <nsoffer@redhat.com> Cc: devel@ovirt.org Sent: Monday, June 30, 2014 8:47:15 AM Subject: Re: [ovirt-devel] XML benchmarks
----- Original Message -----
From: "Nir Soffer" <nsoffer@redhat.com> To: "Francesco Romani" <fromani@redhat.com> Cc: devel@ovirt.org, "Martin Sivak" <msivak@redhat.com> Sent: Sunday, June 29, 2014 10:34:08 AM Subject: Re: [ovirt-devel] XML benchmarks
CPU measurement: just opened a terminal and run 'htop' on it. CPU profile: clustered around the sampling interval. Usage negligible most of time, peak on sampling as shown below
300 VMs minidom: ~38% CPU cElementTree: ~5% CPU
What is 38% - (38% of one core? how may cores are on the machine?)
4 cores: 2 physical, 2 logical. I'm prepping a more precise test using a better and less ambiguous indicator.
Here. Attached un updated script (xmlbench2.py) which uses 'psutil' (https://pypi.python.org/pypi/psutil) to gather the samples.
CPU sampled each 500ms (half a second). 100% is one core. My laptop reports 4 core (dualcore with hyperthreading).
See attached some graphs for easier comsumption and their gnuplot recipe.
cpu_300t_3m.png: load using the test script with 300 threads, each thread runs ~3 minutes cpu_500t_3m.png: load using the test script with 500 threads, each thread runs ~3 minutes
sampling is not really accurate but it is more than enough to get an idea.
Nice!