[Openstack] speed up unittest in Nova

Hengqing Hu hudayou at hotmail.com
Fri Mar 9 09:13:09 UTC 2012


Hi,

May not be the proper time to throw this out, but ...

Last few weeks I spend some time to speed up unittest in Nova.
Made some progress but need your help to improve.
Currently with the speed up, it takes 197 seconds for the whole unittest,
ideally it will take about 60 seconds.
Because there are some test cases that are not re-entrant for 
parellelized testing
that could be divide and conquered.

The idea behind these changes is to use bug-fixed multiprocess(a nose 
plugin)
for parrellelized testing.

Here are the changes:
https://review.openstack.org/5137
https://review.openstack.org/5138
https://review.openstack.org/5139


Paste shows the speed up(Test host is a virtual machine with 8 cpus):
original:
http://paste.openstack.org/show/7724/
boosted:
http://paste.openstack.org/show/7725/

Best Regards
Hengqing Hu




More information about the Openstack mailing list