Hermes
0.9.5-beta
Hierarchical Distributed I/O Buffering System
|
Go to the source code of this file.
Classes | |
struct | hermes::testing::TargetViewState |
Namespaces | |
hermes | |
Macros | |
#define | HERMES_BEGIN_TIMED_BLOCK(func_name) |
#define | HERMES_END_TIMED_BLOCK() |
Enumerations | |
enum class | hermes::testing::BlobSizeRange { kSmall , kMedium , kLarge , kXLarge , kHuge } |
Functions | |
size_t | hermes::RoundUpToMultiple (size_t val, size_t multiple) |
size_t | hermes::RoundDownToMultiple (size_t val, size_t multiple) |
void | hermes::InitDefaultConfig (Config *config) |
void | hermes::FailedLibraryCall (std::string func) |
TargetViewState | hermes::testing::InitDeviceState (u64 total_target, bool homo_dist) |
u64 | hermes::testing::UpdateDeviceState (PlacementSchema &schema, TargetViewState &node_state) |
void | hermes::testing::PrintNodeState (TargetViewState &node_state) |
std::vector< TargetID > | hermes::testing::GetDefaultTargets (size_t n) |
std::vector< size_t > | hermes::testing::GenFixedTotalBlobSize (size_t total_size, BlobSizeRange range) |
Utility classes and functions for Hermes.
#define HERMES_BEGIN_TIMED_BLOCK | ( | func_name | ) |
begin timing
#define HERMES_END_TIMED_BLOCK | ( | ) |
end timing
|
strong |
A class to represent BLOB size
TargetViewState hermes::testing::InitDeviceState | ( | u64 | total_target = 4 , |
bool | homo_dist = true |
||
) |
Initialize device state with default values.
total_target | Total number of target. |
homo_dist | The device distribution is homogeneous or not. |
Use Megabytes
Use Megabytes/Sec
< MB
< MB
u64 hermes::testing::UpdateDeviceState | ( | PlacementSchema & | schema, |
TargetViewState & | node_state | ||
) |
Update device state.
schema | The PlacementSchema return from a data placement engine calculation. |
node_state | The device status after schema is placed. |
void hermes::testing::PrintNodeState | ( | TargetViewState & | node_state | ) |
Print device state.
node_state | The TargetViewState with current state. |
< MB
std::vector< TargetID > hermes::testing::GetDefaultTargets | ( | size_t | n | ) |
Get default targets.
n | The number of target type. |
@
std::vector< size_t > hermes::testing::GenFixedTotalBlobSize | ( | size_t | total_size, |
BlobSizeRange | range | ||
) |
Generate a vector of blob size with fixed total blob size.
total_size | The number of target type. |
range | The blob size range for test. |
@