Skip to content

Commit b8d820d

Browse files
authored
Update cost model (#697)
1 parent 192168b commit b8d820d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ydb/core/blobstorage/vdisk/common/blobstorage_cost_tracker.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class TBsCostModelBase {
2828

2929
// Estimated Coefficients
3030
// cost = A + B * size
31-
double WriteA = 2520;
32-
double WriteB = 5.7668;
31+
double WriteA = 6500;
32+
double WriteB = 11.1;
3333

3434
double ReadA = WriteA;
3535
double ReadB = WriteB;
3636

37-
double HugeWriteA = 1.26748409e+06;
38-
double HugeWriteB = 2.69514462e+01;
37+
double HugeWriteA = 6.089e+06;
38+
double HugeWriteB = 8.1;
3939

4040
private:
4141
enum class EMemoryOperationType {
@@ -206,9 +206,9 @@ class TBsCostModelBase {
206206
// WRITES
207207
ui64 GetCost(const NPDisk::TEvChunkWrite& ev) const {
208208
if (ev.PriorityClass == NPriPut::Log) {
209-
return EstimatedWriteCost(ev.PartsPtr->Size());
209+
return EstimatedWriteCost(ev.PartsPtr->ByteSize());
210210
} else {
211-
return EstimatedHugeWriteCost(ev.PartsPtr->Size());
211+
return EstimatedHugeWriteCost(ev.PartsPtr->ByteSize());
212212
}
213213
}
214214
};

0 commit comments

Comments
 (0)