Skip to content

Commit 826c765

Browse files
authored
Merge 4a67aff into 736e7ff
2 parents 736e7ff + 4a67aff commit 826c765

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ const TDiskOperationCostEstimator TBsCostModelBase::HDDEstimator{
88
{ 6.089e+06, 8.1 }, // HugeWriteCoefficients
99
};
1010

11+
const TDiskOperationCostEstimator TBsCostModelBase::SSDEstimator{
12+
{ 180000, 3.00 }, // ReadCoefficients
13+
{ 430, 4.2 }, // WriteCoefficients
14+
{ 110000, 3.6 }, // HugeWriteCoefficients
15+
};
16+
1117
const TDiskOperationCostEstimator TBsCostModelBase::NVMEEstimator{
1218
{ 10000, 1.3 }, // ReadCoefficients
1319
{ 3300, 1.5 }, // WriteCoefficients

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

+10
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class TBsCostModelBase {
6363
ui64 PDiskWriteBlockSize = 4ull * 1'000'000; // 4MB
6464

6565
static const TDiskOperationCostEstimator HDDEstimator;
66+
static const TDiskOperationCostEstimator SSDEstimator;
6667
static const TDiskOperationCostEstimator NVMEEstimator;
6768

6869
private:
@@ -100,6 +101,9 @@ class TBsCostModelBase {
100101
case NPDisk::DEVICE_TYPE_ROT: {
101102
return HDDEstimator.Write(chunkSize);
102103
}
104+
case NPDisk::DEVICE_TYPE_SSD: {
105+
return SSDEstimator.Write(chunkSize);
106+
}
103107
case NPDisk::DEVICE_TYPE_NVME: {
104108
return NVMEEstimator.Write(chunkSize);
105109
}
@@ -116,6 +120,9 @@ class TBsCostModelBase {
116120
case NPDisk::DEVICE_TYPE_ROT: {
117121
return HDDEstimator.HugeWrite(chunkSize);
118122
}
123+
case NPDisk::DEVICE_TYPE_SSD: {
124+
return SSDEstimator.HugeWrite(chunkSize);
125+
}
119126
case NPDisk::DEVICE_TYPE_NVME: {
120127
return NVMEEstimator.HugeWrite(chunkSize);
121128
}
@@ -133,6 +140,9 @@ class TBsCostModelBase {
133140
case NPDisk::DEVICE_TYPE_ROT: {
134141
return HDDEstimator.Read(chunkSize);
135142
}
143+
case NPDisk::DEVICE_TYPE_SSD: {
144+
return SSDEstimator.Read(chunkSize);
145+
}
136146
case NPDisk::DEVICE_TYPE_NVME: {
137147
return NVMEEstimator.Read(chunkSize);
138148
}

0 commit comments

Comments
 (0)