Thrill
0.1
|
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... | |
void apply | ( | ) |
Definition at line 1082 of file context.cpp.
References thrill::mem::set_memory_limit_indication().
MemoryConfig divide | ( | size_t | hosts | ) | const |
Definition at line 1095 of file context.cpp.
References MemoryConfig::ram_, MemoryConfig::ram_block_pool_hard_, MemoryConfig::ram_block_pool_soft_, and MemoryConfig::ram_workers_.
Referenced by thrill::api::RunLoopbackThreads().
void print | ( | size_t | workers_per_host | ) | const |
Definition at line 1107 of file context.cpp.
References tlx::format_iec_units().
Referenced by thrill::api::RunBackendLoopback(), thrill::api::RunLocalSameThread(), and thrill::api::RunLoopbackThreads().
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().
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().
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().
size_t ram_ |
total amount of physical ram detected or THRILL_RAM
Definition at line 63 of file context.hpp.
Referenced by MemoryConfig::divide().
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().
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().
size_t ram_floating_ |
remaining free-floating RAM used for user and Thrill data structures.
Definition at line 76 of file context.hpp.
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().
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().