Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/api/CDataFrameAnalysisRunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ void CDataFrameAnalysisRunner::computeAndSaveExecutionStrategy() {
auto roundMb = [](std::size_t memory) {
return 0.01 * static_cast<double>((100 * memory) / BYTES_IN_MB);
};

// Report rounded up to the nearest MB.
HANDLE_FATAL(<< "Input error: memory limit " << roundMb(memoryLimit)
<< "MB is too low to perform analysis. You need to give the process"
<< " at least " << std::ceil(roundMb(memoryUsage))
<< "MB, but preferably more.");

} else if (m_NumberPartitions > 1) {
// Simply log the limit being configured too low.
// If we exceed the limit during the process, we will fail and the user
// will have to update the limit and attempt to re-run
LOG_DEBUG(<< "Memory limit " << roundMb(memoryLimit) << "MB is configured lower than estimate "
<< std::ceil(roundMb(memoryUsage)) << "MB."
<< "Analytics process may fail due to low memory limit");
}
if (m_NumberPartitions > 1) {
// The maximum number of rows is found by binary search in the interval
// [numberRows / m_NumberPartitions, numberRows / (m_NumberPartitions - 1)).

Expand Down