Thrill  0.1
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

bool enable_proc_profiler_ = true
 enable Linux /proc stats profiler (default: on) More...
 
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

◆ apply()

void apply ( )

Definition at line 1082 of file context.cpp.

References thrill::mem::set_memory_limit_indication().

◆ divide()

◆ print()

void print ( size_t  workers_per_host) const

◆ setup()

void setup ( size_t  ram)

setup memory size

Definition at line 1018 of file context.cpp.

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

◆ setup_detect()

int setup_detect ( )

detect memory configuration from environment

Definition at line 1023 of file context.cpp.

References tlx::parse_si_iec_units(), and sLOG1.

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

Member Data Documentation

◆ enable_proc_profiler_

bool enable_proc_profiler_ = true

enable Linux /proc stats profiler (default: on)

Definition at line 82 of file context.hpp.

Referenced by HostContext::HostContext(), and thrill::api::RunLocalTests().

◆ ram_

size_t ram_

total amount of physical ram detected or THRILL_RAM

Definition at line 63 of file context.hpp.

Referenced by MemoryConfig::divide().

◆ ram_block_pool_hard_

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::divide().

◆ ram_block_pool_soft_

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::divide().

◆ ram_floating_

size_t ram_floating_

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

Definition at line 76 of file context.hpp.

◆ ram_workers_

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::divide().

◆ verbose_

bool verbose_ = true

StageBuilder verbosity flag.

Definition at line 79 of file context.hpp.

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


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