Ejemplo n.º 1
0
 /// Constructor. Creates the integer map.
 lazy_dht(distributed_control &dc, 
          size_t max_cache_size = 65536):rmi(dc, this),data(11) {
   cache.rehash(max_cache_size);
   maxcache = max_cache_size;
   logger(LOG_INFO, "%d Creating distributed_hash_table. Cache Limit = %d", 
          dc.procid(), maxcache);
   reqs = 0;
   misses = 0;
   dc.barrier();
 }
    distributed_batch_ingress(distributed_control& dc, graph_type& graph, 
        size_t bufsize = 50000, bool usehash = false, bool userecent = false) :
      base_type(dc, graph), rpc(dc, this), 
      num_edges(0), bufsize(bufsize), query_set(dc.numprocs()),
      proc_num_edges(dc.numprocs()), usehash(usehash), userecent(userecent) { 
       rpc.barrier(); 

      INITIALIZE_TRACER(batch_ingress_add_edge, "Time spent in add edge");
      INITIALIZE_TRACER(batch_ingress_add_edges, "Time spent in add block edges" );
      INITIALIZE_TRACER(batch_ingress_compute_assignments, "Time spent in compute assignment");
      INITIALIZE_TRACER(batch_ingress_request_degree_table, "Time spent in requesting assignment");
      INITIALIZE_TRACER(batch_ingress_get_degree_table, "Time spent in retrieve degree table");
      INITIALIZE_TRACER(batch_ingress_update_degree_table, "Time spent in update degree table");
     }
Ejemplo n.º 3
0
 /// Constructor. Creates the integer map.
 caching_dht(distributed_control &dc, 
                        size_t max_cache_size = 1024):rpc(dc, this),data(11) {
   cache.rehash(max_cache_size);
   maxcache = max_cache_size;
   logger(LOG_INFO, "%d Creating distributed_hash_table. Cache Limit = %d", 
          dc.procid(), maxcache);
   reqs = 0;
   misses = 0;
 }
Ejemplo n.º 4
0
  async_consensus::async_consensus(distributed_control &dc,
                                   size_t required_threads_in_done,
                                   const dc_impl::dc_dist_object_base *attach)
    :rmi(dc, this), attachedobj(attach),
     last_calls_sent(0), last_calls_received(0),
     required_threads_in_done(required_threads_in_done),
     threads_in_done(0),
     cancelled(0), complete(false), hastoken(dc.procid() == 0) {

    cur_token.total_calls_sent = 0;
    cur_token.total_calls_received = 0;
    cur_token.last_change = (procid_t)(rmi.numprocs() - 1);
  }
  fiber_async_consensus::fiber_async_consensus(distributed_control &dc,
                                   size_t required_fibers_in_done,
                                   const dc_impl::dc_dist_object_base *attach)
    :rmi(dc, this), attachedobj(attach),
     last_calls_sent(0), last_calls_received(0),
     numactive(required_fibers_in_done),
     ncpus(required_fibers_in_done),
     done(false),
     trying_to_sleep(0),
     critical(ncpus, 0),
     sleeping(ncpus, 0),
     hastoken(dc.procid() == 0),
     cond(ncpus, 0){

    cur_token.total_calls_sent = 0;
    cur_token.total_calls_received = 0;
    cur_token.last_change = (procid_t)(rmi.numprocs() - 1);
  }
Ejemplo n.º 6
0
 simple_engine_test(distributed_control &dc):rmi(dc, this), cons(dc, 4) {
   numactive.value = 4; 
   dc.barrier();
 }
    distributed_oblivious_ingress(distributed_control& dc, graph_type& graph, bool usehash = false, bool userecent = false) :
      base_type(dc, graph),
      dht(-1),proc_num_edges(dc.numprocs()), usehash(usehash), userecent(userecent) { 

      INITIALIZE_TRACER(ob_ingress_compute_assignments, "Time spent in compute assignment");
     }
 distributed_constrained_oblivious_ingress(distributed_control& dc, graph_type& graph, bool usehash = false, bool userecent = false) :
   base_type(dc, graph),
   dht(-1),proc_num_edges(dc.numprocs()), usehash(usehash), userecent(userecent) { 
     constraint = new sharding_constraint(dc.numprocs(), "grid"); 
  }
Ejemplo n.º 9
0
 teststruct(distributed_control &dc):rmi(dc, this) {
   dc.barrier();
 }