#include <LBDBManager.h>
Definition at line 62 of file LBDBManager.h.
typedef CkVec<LBOM*> LBDB::OMList [private] |
Definition at line 267 of file LBDBManager.h.
typedef std::vector<LBObjEntry> LBDB::ObjList [private] |
Definition at line 268 of file LBDBManager.h.
typedef CkVec<MigrateCB*> LBDB::MigrateCBList [private] |
Definition at line 269 of file LBDBManager.h.
typedef CkVec<StartLBCB*> LBDB::StartLBCBList [private] |
Definition at line 270 of file LBDBManager.h.
typedef CkVec<MigrationDoneCB*> LBDB::MigrationDoneCBList [private] |
Definition at line 271 of file LBDBManager.h.
LBDB::~LBDB | ( | ) | [inline] |
Definition at line 65 of file LBDBManager.h.
void LBDB::SetPeriod | ( | double | secs | ) | [inline] |
Definition at line 67 of file LBDBManager.h.
References batsync, and LBDB::batsyncer::setPeriod().
Referenced by LDSetLBPeriod().
double LBDB::GetPeriod | ( | ) | [inline] |
Definition at line 68 of file LBDBManager.h.
References batsync, and LBDB::batsyncer::getPeriod().
Referenced by LDGetLBPeriod().
void LBDB::insert | ( | LBOM * | om | ) |
void LBDB::LocalBarrierOn | ( | void | ) | [inline] |
Definition at line 82 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOn().
Referenced by LDLocalBarrierOn(), and TurnManualLBOff().
void LBDB::LocalBarrierOff | ( | void | ) | [inline] |
Definition at line 84 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOff().
Referenced by LDLocalBarrierOff(), and TurnManualLBOn().
LBOM* LBDB::LbOM | ( | LDOMHandle | h | ) | [inline] |
Definition at line 87 of file LBDBManager.h.
References LDOMHandle::handle, and oms.
Referenced by LDOMUserData().
LBObj* LBDB::LbObj | ( | const LDObjHandle & | h | ) | const [inline] |
Definition at line 89 of file LBDBManager.h.
References LDObjHandle::handle, and objs.
Referenced by LBDatabase::EstObjLoad(), LDAsyncMigrate(), LDCollectStatsOn(), LDDBObjUserData(), LDGetObjLoad(), LDMigratable(), LDNonMigratable(), LDObjectStart(), LDObjectStop(), LDObjTime(), LDObjUserData(), LDQueryKnownObjLoad(), and LDSetPupSize().
Definition at line 91 of file LBDBManager.h.
References objs.
Referenced by LDGetObjHandle().
void LBDB::TurnStatsOn | ( | void | ) | [inline] |
Definition at line 95 of file LBDBManager.h.
References machineUtil, statsAreOn, and LBMachineUtil::StatsOn().
Referenced by LDCollectStatsOn().
void LBDB::TurnStatsOff | ( | void | ) | [inline] |
Definition at line 97 of file LBDBManager.h.
References machineUtil, statsAreOn, and LBMachineUtil::StatsOff().
Referenced by LDCollectStatsOff().
bool LBDB::StatsOn | ( | void | ) | const [inline] |
Definition at line 99 of file LBDBManager.h.
References statsAreOn.
Referenced by LDCollectingStats(), LDCollectStatsOn(), LDMulticastSend(), LDObjectStart(), LDObjectStop(), and LDSend().
void LBDB::TurnPredictorOn | ( | void * | model | ) | [inline] |
Definition at line 103 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::on, and predictCBFn.
Referenced by LDTurnPredictorOn(), and LDTurnPredictorOnWin().
void LBDB::TurnPredictorOn | ( | void * | model, | |
int | wind | |||
) | [inline] |
Definition at line 107 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::onWin, and predictCBFn.
void LBDB::TurnPredictorOff | ( | void | ) | [inline] |
Definition at line 111 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::off, and predictCBFn.
Referenced by LDTurnPredictorOff().
void LBDB::ChangePredictor | ( | void * | model | ) | [inline] |
Definition at line 116 of file LBDBManager.h.
References LBDB::PredictCB::change, CmiPrintf(), LBDB::PredictCB::data, and predictCBFn.
Referenced by LDChangePredictor().
int LBDB::CommDataCount | ( | ) | [inline] |
Definition at line 125 of file LBDBManager.h.
References LBCommTable::CommCount(), and commTable.
Referenced by LDGetCommDataSz().
void LBDB::GetCommData | ( | LDCommData * | data | ) | [inline] |
Definition at line 130 of file LBDBManager.h.
References commTable, and LBCommTable::GetCommData().
Referenced by LDGetCommData().
void LBDB::GetCommInfo | ( | int & | bytes, | |
int & | msgs, | |||
int & | withinbytes, | |||
int & | acrossbytes, | |||
int & | num_nghbors, | |||
int & | hops, | |||
int & | hopbytes | |||
) | [inline] |
Definition at line 133 of file LBDBManager.h.
References commTable, and LBCommTable::GetCommInfo().
Referenced by MetaBalancer::ContributeStats(), and LDGetCommInfo().
void LBDB::TurnOnNotifyMigrated | ( | int | handle | ) | [inline] |
void LBDB::TurnOffNotifyMigrated | ( | int | handle | ) | [inline] |
void LBDB::TurnManualLBOn | ( | ) | [inline] |
Definition at line 149 of file LBDBManager.h.
References LocalBarrierOff(), and useBarrier.
Referenced by LDTurnManualLBOn().
void LBDB::TurnManualLBOff | ( | ) | [inline] |
Definition at line 151 of file LBDBManager.h.
References LocalBarrierOn(), oms_registering, and useBarrier.
Referenced by LDTurnManualLBOff().
void LBDB::TurnOnStartLBFn | ( | int | handle | ) | [inline] |
void LBDB::TurnOffStartLBFn | ( | int | handle | ) | [inline] |
void LBDB::IdleTime | ( | LBRealType * | walltime | ) | [inline] |
Definition at line 166 of file LBDBManager.h.
References LBMachineUtil::IdleTime(), and machineUtil.
Referenced by BackgroundLoad(), GetTime(), and LDIdleTime().
void LBDB::TotalTime | ( | LBRealType * | walltime, | |
LBRealType * | cputime | |||
) | [inline] |
Definition at line 168 of file LBDBManager.h.
References machineUtil, and LBMachineUtil::TotalTime().
Referenced by BackgroundLoad(), GetTime(), and LDTotalTime().
void LBDB::SetRunningObj | ( | const LDObjHandle & | _h | ) | [inline] |
runningObj records the obj handler index so that load balancer knows if an event(e.g.
Send) is in an entry function or not. An index is enough here because LDObjHandle can be retrieved from objs array. Copying LDObjHandle is expensive.
Definition at line 181 of file LBDBManager.h.
References LDObjHandle::handle, obj_running, and runningObj.
Referenced by LDObjectStart().
const LDObjHandle& LBDB::RunningObj | ( | ) | const [inline] |
Definition at line 183 of file LBDBManager.h.
References objs, and runningObj.
Referenced by LDCollectStatsOn(), LDObjectStart(), LDRunningObject(), MulticastSend(), LBDatabase::RunningObject(), and Send().
void LBDB::NoRunningObj | ( | ) | [inline] |
Definition at line 185 of file LBDBManager.h.
References obj_running.
Referenced by LDObjectStop().
bool LBDB::ObjIsRunning | ( | ) | const [inline] |
Definition at line 187 of file LBDBManager.h.
References obj_running.
Referenced by LDCollectStatsOn(), LDObjectStart(), LDRunningObject(), and LBDatabase::RunningObject().
LDBarrierClient LBDB::AddLocalBarrierClient | ( | LDResumeFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 190 of file LBDBManager.h.
References LocalBarrier::AddClient(), and localBarrier.
Referenced by LBDB::batsyncer::init(), and LDAddLocalBarrierClient().
void LBDB::RemoveLocalBarrierClient | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 192 of file LBDBManager.h.
References localBarrier, and LocalBarrier::RemoveClient().
Referenced by LDRemoveLocalBarrierClient().
LDBarrierReceiver LBDB::AddLocalBarrierReceiver | ( | LDBarrierFn | fn, | |
void * | data | |||
) | [inline] |
Definition at line 194 of file LBDBManager.h.
References LocalBarrier::AddReceiver(), and localBarrier.
Referenced by LDAddLocalBarrierReceiver().
void LBDB::RemoveLocalBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 196 of file LBDBManager.h.
References localBarrier, and LocalBarrier::RemoveReceiver().
Referenced by LDRemoveLocalBarrierReceiver().
void LBDB::TurnOnBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 198 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOnReceiver().
void LBDB::TurnOffBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 200 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOffReceiver().
void LBDB::AtLocalBarrier | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 202 of file LBDBManager.h.
References LocalBarrier::AtBarrier(), and localBarrier.
Referenced by LBDB::batsyncer::gotoSync(), and LDAtLocalBarrier().
void LBDB::DecreaseLocalBarrier | ( | LDBarrierClient | h, | |
int | c | |||
) | [inline] |
Definition at line 204 of file LBDBManager.h.
References LocalBarrier::DecreaseBarrier(), and localBarrier.
Referenced by LDDecreaseLocalBarrier().
void LBDB::ResumeClients | ( | void | ) | [inline] |
Definition at line 206 of file LBDBManager.h.
References localBarrier, and LocalBarrier::ResumeClients().
Referenced by LDResumeClients().
void LBDB::MeasuredObjTime | ( | double | wtime, | |
double | ctime | |||
) | [inline] |
Definition at line 208 of file LBDBManager.h.
References obj_cputime, obj_walltime, and statsAreOn.
Referenced by LDObjectStop(), and LDObjTime().
int LBDB::validObjHandle | ( | LDObjHandle | h | ) | [inline] |
Definition at line 307 of file LBDBManager.h.
References LDObjHandle::handle, and objs.
Referenced by CentralLB::ProcessReceiveMigration().
const ObjList& LBDB::getObjs | ( | ) | [inline] |
Definition at line 318 of file LBDBManager.h.
References objs.
Referenced by controlPointManager::gotoNextPhase().
LBCommTable* LBDB::commTable [private] |
Definition at line 273 of file LBDBManager.h.
Referenced by ClearLoads(), CommDataCount(), GetCommData(), GetCommInfo(), LBDB(), MulticastSend(), Send(), and useMem().
Definition at line 274 of file LBDBManager.h.
Referenced by AddOM(), DoneRegisteringObjects(), LbOM(), MetaLBCallLBOnChares(), MetaLBResumeWaitingChares(), Migrate(), RegisteringObjects(), RemoveOM(), and useMem().
int LBDB::omCount [private] |
Definition at line 275 of file LBDBManager.h.
Referenced by AddOM(), DumpDatabase(), LBDB(), and RemoveOM().
int LBDB::oms_registering [private] |
Definition at line 276 of file LBDBManager.h.
Referenced by DoneRegisteringObjects(), LBDB(), RegisteringObjects(), and TurnManualLBOff().
LDObjIndex LBDB::objsEmptyHead [private] |
ObjList LBDB::objs [private] |
Definition at line 279 of file LBDBManager.h.
Referenced by AddObj(), ClearLoads(), DumpDatabase(), GetObjData(), getObjs(), LbObj(), LbObjIdx(), MetaLBCallLBOnChares(), MetaLBResumeWaitingChares(), Migrate(), ObjDataCount(), RunningObj(), UnregisterObj(), and validObjHandle().
bool LBDB::statsAreOn [private] |
Definition at line 281 of file LBDBManager.h.
Referenced by LBDB(), MeasuredObjTime(), StatsOn(), TurnStatsOff(), and TurnStatsOn().
MigrateCBList LBDB::migrateCBList [private] |
Definition at line 282 of file LBDBManager.h.
Referenced by Migrated(), NotifyMigrated(), RemoveNotifyMigrated(), TurnOffNotifyMigrated(), TurnOnNotifyMigrated(), and useMem().
MigrationDoneCBList LBDB::migrationDoneCBList [private] |
Definition at line 284 of file LBDBManager.h.
Referenced by AddMigrationDoneFn(), MigrationDone(), and RemoveMigrationDoneFn().
PredictCB* LBDB::predictCBFn [private] |
Definition at line 286 of file LBDBManager.h.
Referenced by ChangePredictor(), LBDB(), SetupPredictor(), TurnPredictorOff(), and TurnPredictorOn().
bool LBDB::obj_running [private] |
Definition at line 288 of file LBDBManager.h.
Referenced by LBDB(), MulticastSend(), NoRunningObj(), ObjIsRunning(), Send(), and SetRunningObj().
int LBDB::runningObj [private] |
batsyncer LBDB::batsync [private] |
LocalBarrier LBDB::localBarrier [private] |
Definition at line 293 of file LBDBManager.h.
Referenced by AddLocalBarrierClient(), AddLocalBarrierReceiver(), AtLocalBarrier(), DecreaseLocalBarrier(), DoneRegisteringObjects(), LocalBarrierOff(), LocalBarrierOn(), RegisteringObjects(), RemoveLocalBarrierClient(), RemoveLocalBarrierReceiver(), ResumeClients(), TurnOffBarrierReceiver(), and TurnOnBarrierReceiver().
bool LBDB::useBarrier [private] |
Definition at line 294 of file LBDBManager.h.
Referenced by DoneRegisteringObjects(), TurnManualLBOff(), and TurnManualLBOn().
LBMachineUtil LBDB::machineUtil [private] |
Definition at line 296 of file LBDBManager.h.
Referenced by ClearLoads(), IdleTime(), TotalTime(), TurnStatsOff(), and TurnStatsOn().
double LBDB::obj_walltime [private] |
Definition at line 297 of file LBDBManager.h.
Referenced by BackgroundLoad(), ClearLoads(), GetTime(), LBDB(), and MeasuredObjTime().
double LBDB::obj_cputime [private] |
Definition at line 299 of file LBDBManager.h.
Referenced by BackgroundLoad(), ClearLoads(), GetTime(), LBDB(), and MeasuredObjTime().
StartLBCBList LBDB::startLBFnList [private] |
Definition at line 302 of file LBDBManager.h.
Referenced by AddStartLBFn(), RemoveStartLBFn(), StartLB(), TurnOffStartLBFn(), TurnOnStartLBFn(), and useMem().
int LBDB::startLBFn_count [private] |
Definition at line 303 of file LBDBManager.h.
Referenced by AddStartLBFn(), LBDB(), RemoveStartLBFn(), and StartLB().