wrench::BatchService Class Reference

A batch-scheduled compute service that manages a set of compute hosts and controls access to their resource via a batch queue. More...

#include <BatchService.h>

Inheritance diagram for wrench::BatchService:
wrench::ComputeService wrench::Service

Public Member Functions

 BatchService (std::string &hostname, std::vector< std::string > compute_hosts, double scratch_space_size, std::map< std::string, std::string > property_list={}, std::map< std::string, std::string > messagepayload_list={})
 Constructor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from wrench::ComputeService
static constexpr unsigned long ALL_CORES = ULONG_MAX
 A convenient constant to mean "use all cores of a physical host" whenever a number of cores is needed when instantiating compute services.
 
static constexpr double ALL_RAM = DBL_MAX
 A convenient constant to mean "use all ram of a physical host" whenever a ram capacity is needed when instantiating compute services.
 

Detailed Description

A batch-scheduled compute service that manages a set of compute hosts and controls access to their resource via a batch queue.

In the current implementation of this service, like for many of its real-world counterparts, memory partitioning among jobs on the same host is not handled. When multiple jobs share hosts, which can happen when jobs require only a few cores per host and can thus be co-located on the same hosts in a non-exclusive fashion, each job simply runs as if it had access to the full RAM of each compute host it is scheduled on. The simulation of these memory contended scenarios is thus, for now, not realistic as there is no simulation of the effects of memory sharing (e.g., swapping).

Constructor & Destructor Documentation

wrench::BatchService::BatchService ( std::string &  hostname,
std::vector< std::string >  compute_hosts,
double  scratch_space_size,
std::map< std::string, std::string >  property_list = {},
std::map< std::string, std::string >  messagepayload_list = {} 
)

Constructor.

Parameters
hostnamethe hostname on which to start the service
compute_hoststhe list of names of the available compute hosts
  • the hosts must be homogeneous (speed, number of cores, and RAM size)
  • all cores are usable by the batch service on each host
  • all RAM is usable by the batch service on each host
scratch_space_sizethe size for the scratch storage space for the service (0 means "no scratch space")
property_lista property list that specifies BatchServiceProperty values ({} means "use all defaults")
messagepayload_lista message payload list that specifies BatchServiceMessagePayload values ({} means "use all defaults")

The documentation for this class was generated from the following files:
  • /home/wrench/wrench/include/wrench/services/compute/batch/BatchService.h
  • /home/wrench/wrench/src/wrench/services/compute/batch/BatchService.cpp