Skip to content

Commit

Permalink
Update cost model (ydb-platform#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
serbel324 authored and adameat committed Dec 29, 2023
1 parent 9109d3f commit 0bba9fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ydb/core/blobstorage/vdisk/common/blobstorage_cost_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ class TBsCostModelBase {

// Estimated Coefficients
// cost = A + B * size
double WriteA = 2520;
double WriteB = 5.7668;
double WriteA = 6500;
double WriteB = 11.1;

double ReadA = WriteA;
double ReadB = WriteB;

double HugeWriteA = 1.26748409e+06;
double HugeWriteB = 2.69514462e+01;
double HugeWriteA = 6.089e+06;
double HugeWriteB = 8.1;

private:
enum class EMemoryOperationType {
Expand Down Expand Up @@ -206,9 +206,9 @@ class TBsCostModelBase {
// WRITES
ui64 GetCost(const NPDisk::TEvChunkWrite& ev) const {
if (ev.PriorityClass == NPriPut::Log) {
return EstimatedWriteCost(ev.PartsPtr->Size());
return EstimatedWriteCost(ev.PartsPtr->ByteSize());
} else {
return EstimatedHugeWriteCost(ev.PartsPtr->Size());
return EstimatedHugeWriteCost(ev.PartsPtr->ByteSize());
}
}
};
Expand Down

0 comments on commit 0bba9fa

Please sign in to comment.