@@ -819,8 +819,8 @@ pub struct RafsConfigV2 {
819
819
/// Filesystem metadata cache mode.
820
820
#[ serde( default = "default_rafs_mode" ) ]
821
821
pub mode : String ,
822
- /// Batch size to read data from storage cache layer .
823
- #[ serde( rename = "batch_size" , default = "default_batch_size " ) ]
822
+ /// Amplified user IO request batch size to read data from remote storage backend / local cache .
823
+ #[ serde( rename = "batch_size" , default = "default_user_io_batch_size " ) ]
824
824
pub user_io_batch_size : usize ,
825
825
/// Whether to validate data digest.
826
826
#[ serde( default ) ]
@@ -874,7 +874,7 @@ pub struct PrefetchConfigV2 {
874
874
/// Number of data prefetching working threads.
875
875
#[ serde( rename = "threads" , default = "default_prefetch_threads_count" ) ]
876
876
pub threads_count : usize ,
877
- /// The batch size to prefetch data from backend.
877
+ /// The amplify batch size to prefetch data from backend.
878
878
#[ serde( default = "default_prefetch_batch_size" ) ]
879
879
pub batch_size : usize ,
880
880
/// Network bandwidth rate limit in unit of Bytes and Zero means no limit.
@@ -1194,11 +1194,11 @@ fn default_work_dir() -> String {
1194
1194
"." . to_string ( )
1195
1195
}
1196
1196
1197
- pub fn default_batch_size ( ) -> usize {
1198
- 128 * 1024
1197
+ pub fn default_user_io_batch_size ( ) -> usize {
1198
+ 1024 * 1024
1199
1199
}
1200
1200
1201
- fn default_prefetch_batch_size ( ) -> usize {
1201
+ pub fn default_prefetch_batch_size ( ) -> usize {
1202
1202
1024 * 1024
1203
1203
}
1204
1204
@@ -1363,8 +1363,9 @@ struct RafsConfig {
1363
1363
/// Record file name if file access trace log.
1364
1364
#[ serde( default ) ]
1365
1365
pub latest_read_files : bool ,
1366
+ // Amplified user IO request batch size to read data from remote storage backend / local cache.
1366
1367
// ZERO value means, amplifying user io is not enabled.
1367
- #[ serde( rename = "amplify_io" , default = "default_batch_size " ) ]
1368
+ #[ serde( rename = "amplify_io" , default = "default_user_io_batch_size " ) ]
1368
1369
pub user_io_batch_size : usize ,
1369
1370
}
1370
1371
@@ -1410,8 +1411,8 @@ struct FsPrefetchControl {
1410
1411
#[ serde( default = "default_prefetch_threads_count" ) ]
1411
1412
pub threads_count : usize ,
1412
1413
1413
- /// Window size in unit of bytes to merge request to backend.
1414
- #[ serde( rename = "merging_size" , default = "default_batch_size " ) ]
1414
+ /// The amplify batch size to prefetch data from backend.
1415
+ #[ serde( rename = "merging_size" , default = "default_prefetch_batch_size " ) ]
1415
1416
pub batch_size : usize ,
1416
1417
1417
1418
/// Network bandwidth limitation for prefetching.
@@ -1449,7 +1450,7 @@ struct BlobPrefetchConfig {
1449
1450
pub enable : bool ,
1450
1451
/// Number of data prefetching working threads.
1451
1452
pub threads_count : usize ,
1452
- /// The maximum size of a merged IO request .
1453
+ /// The amplify batch size to prefetch data from backend .
1453
1454
#[ serde( rename = "merging_size" ) ]
1454
1455
pub batch_size : usize ,
1455
1456
/// Network bandwidth rate limit in unit of Bytes and Zero means no limit.
0 commit comments