@@ -187,64 +187,16 @@ void MclockConfig::set_config_defaults_from_profile()
187187 return ;
188188 }
189189
190- /* *
191- * high_client_ops
192- *
193- * Client Allocation:
194- * reservation: 60% | weight: 2 | limit: 0 (max) |
195- * Background Recovery Allocation:
196- * reservation: 40% | weight: 1 | limit: 0 (max) |
197- * Background Best Effort Allocation:
198- * reservation: 0 (min) | weight: 1 | limit: 70% |
199- */
200- static constexpr profile_t high_client_ops_profile{
201- { .6 , 2 , 0 },
202- { .4 , 1 , 0 },
203- { 0 , 1 , .7 }
204- };
205-
206- /* *
207- * high_recovery_ops
208- *
209- * Client Allocation:
210- * reservation: 30% | weight: 1 | limit: 0 (max) |
211- * Background Recovery Allocation:
212- * reservation: 70% | weight: 2 | limit: 0 (max) |
213- * Background Best Effort Allocation:
214- * reservation: 0 (min) | weight: 1 | limit: 0 (max) |
215- */
216- static constexpr profile_t high_recovery_ops_profile{
217- { .3 , 1 , 0 },
218- { .7 , 2 , 0 },
219- { 0 , 1 , 0 }
220- };
221-
222- /* *
223- * balanced
224- *
225- * Client Allocation:
226- * reservation: 50% | weight: 1 | limit: 0 (max) |
227- * Background Recovery Allocation:
228- * reservation: 50% | weight: 1 | limit: 0 (max) |
229- * Background Best Effort Allocation:
230- * reservation: 0 (min) | weight: 1 | limit: 90% |
231- */
232- static constexpr profile_t balanced_profile{
233- { .5 , 1 , 0 },
234- { .5 , 1 , 0 },
235- { 0 , 1 , .9 }
236- };
237-
238190 const profile_t *profile = nullptr ;
239191 auto mclock_profile = cct->_conf .get_val <std::string>(" osd_mclock_profile" );
240192 if (mclock_profile == " high_client_ops" ) {
241- profile = &high_client_ops_profile ;
193+ profile = &HIGH_CLIENT_OPS ;
242194 dout (10 ) << " Setting high_client_ops profile " << *profile << dendl;
243195 } else if (mclock_profile == " high_recovery_ops" ) {
244- profile = &high_recovery_ops_profile ;
196+ profile = &HIGH_RECOVERY_OPS ;
245197 dout (10 ) << " Setting high_recovery_ops profile " << *profile << dendl;
246198 } else if (mclock_profile == " balanced" ) {
247- profile = &balanced_profile ;
199+ profile = &BALANCED ;
248200 dout (10 ) << " Setting balanced profile " << *profile << dendl;
249201 } else if (mclock_profile == " custom" ) {
250202 dout (10 ) << " Profile set to custom, not setting defaults" << dendl;
0 commit comments