#NEWLINE# def estimate_instance_overhead( self , instance_info ) : #NEWLINE# #INDENT# 'Get virtualization overhead required to build an instance of the\n        given flavor.\n\n        :param instance_info: Instance/flavor to calculate overhead for.\n        :returns: Overhead memory in MB.\n        ' #NEWLINE# memory_mb = instance_info [ 'memory_mb' ] #NEWLINE# vcpus = instance_info . get ( 'vcpus' , 1 ) #NEWLINE# overhead = ( ( ( memory_mb * OVERHEAD_PER_MB ) + ( vcpus * OVERHEAD_PER_VCPU ) ) + OVERHEAD_BASE ) #NEWLINE# overhead = math . ceil ( overhead ) #NEWLINE# return { #NEWLINE# #INDENT# 'memory_mb' : overhead , #NEWLINE# #UNINDENT# }