Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MemoryConfig Class Reference

Detailed Description

Definition at line 48 of file context.hpp.

#include <context.hpp>

Public Member Functions

void apply ()
 
MemoryConfig divide (size_t hosts) const
 
void print (size_t workers_per_host) const
 
void setup (size_t ram)
 setup memory size More...
 
int setup_detect ()
 detect memory configuration from environment More...
 

Public Attributes

size_t ram_
 total amount of physical ram detected or THRILL_RAM More...
 
size_t ram_block_pool_hard_
 amount of RAM dedicated to data::BlockPool – hard limit More...
 
size_t ram_block_pool_soft_
 amount of RAM dedicated to data::BlockPool – soft limit More...
 
size_t ram_floating_
 remaining free-floating RAM used for user and Thrill data structures. More...
 
size_t ram_workers_
 
bool verbose_ = true
 StageBuilder verbosity flag. More...
 

Member Function Documentation

void setup ( size_t  ram)
int setup_detect ( )

detect memory configuration from environment

Definition at line 935 of file context.cpp.

References MemoryConfig::apply(), tlx::parse_si_iec_units(), MemoryConfig::ram_, and sLOG1.

Referenced by thrill::api::RunBackendLoopback().

Member Data Documentation

size_t ram_

total amount of physical ram detected or THRILL_RAM

Definition at line 63 of file context.hpp.

Referenced by MemoryConfig::apply(), MemoryConfig::divide(), MemoryConfig::print(), MemoryConfig::setup(), and MemoryConfig::setup_detect().

size_t ram_block_pool_hard_

amount of RAM dedicated to data::BlockPool – hard limit

Definition at line 66 of file context.hpp.

Referenced by MemoryConfig::apply(), MemoryConfig::divide(), and MemoryConfig::print().

size_t ram_block_pool_soft_

amount of RAM dedicated to data::BlockPool – soft limit

Definition at line 69 of file context.hpp.

Referenced by MemoryConfig::apply(), and MemoryConfig::divide().

size_t ram_floating_

remaining free-floating RAM used for user and Thrill data structures.

Definition at line 76 of file context.hpp.

Referenced by MemoryConfig::apply(), and MemoryConfig::print().

size_t ram_workers_

total amount of RAM for DIANode data structures such as the reduce tables. divide by the number of worker threads before use.

Definition at line 73 of file context.hpp.

Referenced by MemoryConfig::apply(), MemoryConfig::divide(), MemoryConfig::print(), and HostContext::worker_mem_limit().

bool verbose_ = true

StageBuilder verbosity flag.

Definition at line 79 of file context.hpp.

Referenced by HostContext::ConstructLoopback(), MemoryConfig::print(), thrill::api::RunLocalSameThread(), and thrill::api::RunLocalTests().


The documentation for this class was generated from the following files: