self._last_rate = rate self._all_rates.append(rate) cluster_sim = self._setup_cluster_sim(rate, io) run_trial(cluster_sim) def analysis(self, io=util.stdio.StdIO()): rate = self._last_rate cluster_sim = self._setup_cluster_sim(rate, io) run_bandwidth_analysis(cluster_sim, get_histogram_file_name(rate) ) 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'
if 'object' not in self.cs.traces['simoh']: self.cs.traces['simoh'].append('object') if 'ping' not in self.cs.traces['simoh']: 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"
if 'object' not in self.cs.traces['simoh']: self.cs.traces['simoh'].append('object') if 'ping' not in self.cs.traces['simoh']: 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 = 3 cc = ClusterConfig() cs = ClusterSimSettings(cc, nss, (nss,1), numoh) cs.region_weight = "const"; cs.region_weight_options = '--radius=false' #cs.region_weight_options = '--flatness=.0085' cs.debug = True cs.valgrind = False cs.profile = False cs.oprofile = False cs.loglevels["oh"]="error"; 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;
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"
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'
# [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
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"
# [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) 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
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"