@@ -60,12 +60,10 @@ TPDisk::TPDisk(std::shared_ptr<TPDiskCtx> pCtx, const TIntrusivePtr<TPDiskConfig
60
60
0 , 64 * 1024 * 1024 );
61
61
ForsetiMaxLogBatchNs = TControlWrapper ((PDiskCategory.IsSolidState () ? 50'000ll : 500'000ll ), 0 , 100'000'000ll );
62
62
ForsetiMaxLogBatchNsCached = ForsetiMaxLogBatchNs;
63
- ForsetiOpPieceSizeSsd = TControlWrapper (64 * 1024 , 1 , Cfg-> BufferPoolBufferSizeBytes );
64
- ForsetiOpPieceSizeRot = TControlWrapper (512 * 1024 , 1 , Cfg-> BufferPoolBufferSizeBytes );
63
+ ForsetiOpPieceSizeSsd = TControlWrapper (64 * 1024 , 1 , 512 * 1024 );
64
+ ForsetiOpPieceSizeRot = TControlWrapper (512 * 1024 , 1 , 512 * 1024 );
65
65
ForsetiOpPieceSizeCached = PDiskCategory.IsSolidState () ? ForsetiOpPieceSizeSsd : ForsetiOpPieceSizeRot;
66
66
67
-
68
-
69
67
if (Cfg->SectorMap ) {
70
68
auto diskModeParams = Cfg->SectorMap ->GetDiskModeParams ();
71
69
if (diskModeParams) {
@@ -3421,12 +3419,12 @@ void TPDisk::Update() {
3421
3419
Mon.UpdateDurationTracker .UpdateStarted ();
3422
3420
LWTRACK (PDiskUpdateStarted, UpdateCycleOrbit, PCtx->PDiskId );
3423
3421
3424
- ForsetiMaxLogBatchNsCached = ForsetiMaxLogBatchNs;
3425
- ForsetiOpPieceSizeCached = PDiskCategory.IsSolidState () ? ForsetiOpPieceSizeSsd : ForsetiOpPieceSizeRot;
3426
- ForsetiOpPieceSizeCached = Min<i64 >(ForsetiOpPieceSizeCached, Cfg->BufferPoolBufferSizeBytes );
3427
- ForsetiOpPieceSizeCached = AlignDown<i64 >(ForsetiOpPieceSizeCached, Format.SectorSize );
3428
3422
{
3429
3423
TGuard<TMutex> guard (StateMutex);
3424
+ ForsetiMaxLogBatchNsCached = ForsetiMaxLogBatchNs;
3425
+ ForsetiOpPieceSizeCached = PDiskCategory.IsSolidState () ? ForsetiOpPieceSizeSsd : ForsetiOpPieceSizeRot;
3426
+ ForsetiOpPieceSizeCached = Min<i64 >(ForsetiOpPieceSizeCached, Cfg->BufferPoolBufferSizeBytes );
3427
+ ForsetiOpPieceSizeCached = AlignDown<i64 >(ForsetiOpPieceSizeCached, Format.SectorSize );
3430
3428
// Switch the scheduler when possible
3431
3429
ForsetiScheduler.SetIsBinLogEnabled (EnableForsetiBinLog);
3432
3430
0 commit comments