Re: [PATCH 1/2] optimize the dirtylimit_throttle_pct trace event

2025-01-06 Thread fuqiang wang
On 2025/1/6 21:38, fuqiang wang wrote: I'm sorry for getting back to you after a few days. 在 2025/1/3 00:40, Yong Huang 写道: > > > On Tue, Dec 31, 2024 at 9:56 AM fuqiang wang wrote: > > The current dirtylimit_throttle_pct trace event is triggered when the > th

[PATCH 2/2] improve precision of throttle_pct

2024-12-30 Thread fuqiang wang
Using the current algorithm, there are issues with precision not being handled correctly during division operations. (Even though double type casting is used in the function, it does not seem to have any effect.) Refer to the results of the test program from [1]. When there is a large discrepancy b

[PATCH 0/2] some optimize in dirtylimit_throttle_pct

2024-12-30 Thread fuqiang wang
From: fuqiang Patch 1 optimizes the trace event dirtylimit_throttle_pct, making it print the throttle percentage and throttle adjustment more reasonably. Patch 2 improves the precision of the throttle percentage, allowing it to decrease more quickly during linear adjustments. fuqiang wang (2

[PATCH 1/2] optimize the dirtylimit_throttle_pct trace event

2024-12-30 Thread fuqiang wang
The current dirtylimit_throttle_pct trace event is triggered when the throttle time is adjusted linearly. Modify the trace event so that it can record non-linear adjustments. Additionally, since the throttle time might be adjusted again at the end of the dirtylimit_set_throttle function, move the t

Re: [PATCH 2/2] improve precision of throttle_pct

2025-01-22 Thread fuqiang wang
On 2025/1/21 20:25, Yong Huang wrote: On Tue, Dec 31, 2024 at 9:56 AM fuqiang wang wrote: Using the current algorithm, there are issues with precision not being handled correctly during division operations. (Even though double type casting is used in the function, it does not seem to have