@@ -707,6 +707,8 @@ impl Eq for MetadataCacheConfig {}
707707
708708impl Default for MetadataCacheConfig {
709709 fn default ( ) -> Self {
710+ let min_clean_fraction = if cfg ! ( h5_have_parallel) { 0.3_f32 } else { 0.01_f32 } ;
711+ let flash_multiple = if cfg ! ( h5_have_parallel) { 1.0_f32 } else { 1.4_f32 } ;
710712 Self {
711713 rpt_fcn_enabled : false ,
712714 open_trace_file : false ,
@@ -715,28 +717,28 @@ impl Default for MetadataCacheConfig {
715717 evictions_enabled : true ,
716718 set_initial_size : true ,
717719 initial_size : 1 << 21 ,
718- min_clean_fraction : 0.30000001192092896 ,
720+ min_clean_fraction : min_clean_fraction as _ ,
719721 max_size : 1 << 25 ,
720722 min_size : 1 << 20 ,
721723 epoch_length : 50_000 ,
722724 incr_mode : CacheIncreaseMode :: Threshold ,
723- lower_hr_threshold : 0.8999999761581421 ,
725+ lower_hr_threshold : 0.9_f32 as _ ,
724726 increment : 2.0 ,
725727 apply_max_increment : true ,
726728 max_increment : 1 << 22 ,
727729 flash_incr_mode : FlashIncreaseMode :: AddSpace ,
728- flash_multiple : 1.0 ,
730+ flash_multiple : flash_multiple as _ ,
729731 flash_threshold : 0.25 ,
730732 decr_mode : CacheDecreaseMode :: AgeOutWithThreshold ,
731- upper_hr_threshold : 0.9990000128746033 ,
732- decrement : 0.8999999761581421 ,
733+ upper_hr_threshold : 0.999_f32 as _ ,
734+ decrement : 0.9_f32 as _ ,
733735 apply_max_decrement : true ,
734736 max_decrement : 1 << 20 ,
735737 epochs_before_eviction : 3 ,
736738 apply_empty_reserve : true ,
737- empty_reserve : 0.10000000149011612 ,
739+ empty_reserve : 0.1_f32 as _ ,
738740 dirty_bytes_threshold : 1 << 18 ,
739- metadata_write_strategy : MetadataWriteStrategy :: Distributed ,
741+ metadata_write_strategy : MetadataWriteStrategy :: default ( ) ,
740742 }
741743 }
742744}
0 commit comments