self.cs.traces['simoh'].append('ping') if 'message' not in self.cs.traces['all']: self.cs.traces['all'].append('message') cluster_sim = ClusterSim(self.cc, self.cs, io=io) return cluster_sim if __name__ == "__main__": nss = 9 nobjects = 1500 * nss packname = '1a_objects.pack' numoh = 2 cc = ClusterConfig() cs = ClusterSimSettings(cc, nss, (nss, 1), numoh) cs.region_weight_options = '--flatness=8' cs.debug = True cs.valgrind = False cs.profile = False cs.oprofile = False cs.loglevels["oh"] = "insane" cs.loc = 'standard' cs.blocksize = 110 cs.tx_bandwidth = 50000000 cs.rx_bandwidth = 5000000 cs.oseg_cache_size = 65536 cs.oseg_cache_clean_group = 25 cs.oseg_cache_entry_lifetime = "1000s"
# [get_stage_samples_filename(x) for x in self._all_rates] # ) #samples_files = [x for x in samples_files # if os.path.exists(x[0]) and # os.path.exists(x[1])] #graph_stages_raw_samples(samples_files) pass if __name__ == "__main__": nobjects = 50 packname = 'objects.pack' numoh = 1 cc = ClusterConfig() cs = ClusterSimSettings(cc, 8, (8, 1), numoh) cs.debug = True cs.valgrind = False cs.profile = True cs.oprofile = False cs.loc = 'standard' cs.blocksize = 110 cs.tx_bandwidth = 50000000 cs.rx_bandwidth = 5000000 # Use pack across multiple ohs cs.num_random_objects = 0 cs.num_pack_objects = nobjects / cs.num_oh cs.object_pack = packname
labels = ['%s pps' % (x) for x in self._all_rates] graph_message_latency(log_files, labels, 'latency_stacked_bar.pdf') samples_files = zip( [get_stage_samples_filename(x) for x in self._all_rates], [get_stage_samples_filename(x) for x in self._all_rates]) samples_files = [ x for x in samples_files if os.path.exists(x[0]) and os.path.exists(x[1]) ] graph_stages_raw_samples(samples_files) if __name__ == "__main__": cc = ClusterConfig() cs = ClusterSimSettings(cc, 4, (4, 1), 1) cs.debug = False cs.valgrind = False cs.profile = True cs.loc = 'standard' cs.blocksize = 100 cs.tx_bandwidth = 500000 cs.rx_bandwidth = 500000 cs.num_random_objects = 50 cs.num_pack_objects = 0 cs.object_connect_phase = '0s' cs.object_static = 'static'
return cluster_sim if __name__ == "__main__": nss = 16 nobjects = 1000 #19000#326 packname = '1a_objects.pack' numoh = 1 cc = ClusterConfig() import math edgex = int(math.sqrt(nss)) edgey = int(nss / int(math.sqrt(nss))) cs = ClusterSimSettings(cc, nss, (edgex, edgey), numoh) cs.region_weight_options = '--flatness=8' cs.debug = True cs.valgrind = False cs.profile = False cs.oprofile = False cs.loglevels["oh"] = "insane" cs.loc = 'standard' cs.blocksize = 256 cs.tx_bandwidth = 50000000 cs.rx_bandwidth = 5000000 cs.oseg_cache_clean_group = 25 cs.oseg_cache_entry_lifetime = "10000s"