コード例 #1
0
ファイル: 1a_fairness.py プロジェクト: AsherBond/sirikata
    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"

    # Use pack across multiple ohs
    cs.num_random_objects = 0
    cs.num_pack_objects = nobjects / cs.num_oh
    cs.object_pack = packname
    cs.pack_dump = True

    cs.object_connect_phase = '20s'

    cs.object_static = 'static'
    cs.object_query_frac = 0.0

    cs.duration = '400s'

    rates = sys.argv[1:]
コード例 #2
0
ファイル: oseg_flood.py プロジェクト: krazylegz/sirikata
    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"

    cs.oseg_lookup_queue_size = 50
    #for now

    # Use pack across multiple ohs
    cs.num_random_objects = 0
    cs.num_pack_objects = nobjects / cs.num_oh
    cs.object_pack = packname
    cs.pack_dump = True

    cs.object_connect_phase = '20s'

    cs.object_static = 'static'
    cs.object_query_frac = 0.0
コード例 #3
0
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'
    cs.object_query_frac = 0.0

    cs.oseg_cache_entry_lifetime = '300s'

    cs.duration = '100s'

    rates = sys.argv[1:]
    plan = BandwidthByLoad(cc, cs, local_messages=False, remote_messages=True)
    for rate in rates:
        plan.run(rate)
        plan.analysis()
コード例 #4
0
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'
    cs.object_query_frac = 0.0

    cs.oseg_cache_entry_lifetime = '300s'

    cs.duration = '100s'

    rates = sys.argv[1:]
    plan = BandwidthByLoad(cc, cs, local_messages=False, remote_messages=True)
    for rate in rates:
        plan.run(rate)
        plan.analysis()