Function report |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-28 17:56:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Update the read/write peak rate (the main quantity used for* auto-tuning, see update_thr_responsiveness_params())
Proto:static void bfq_update_peak_rate(struct bfq_data *bfqd, struct request *rq)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct bfq_data * | bfqd | |
struct request * | rq |
3180 | now_ns = ktime_get_ns() |
3182 | If number of samples in current observation interval == 0 Then |
3183 | bfq_log(bfqd, "update_peak_rate: goto reset, samples %d", number of samples in current observation interval ) |
3185 | bfq_reset_rate_computation(bfqd, rq) |
3186 | Go to update_last_values |
3201 | If now_ns - time of last rq dispatch in current observation interval (ns) > 100 * NSEC_PER_MSEC && number of requests dispatched and waiting for completion == 0 Then Go to update_rate_and_reset |
3222 | time elapsed from first dispatch in current observ. interval (us) = now_ns - time of first rq dispatch in current observation interval (ns) |
3225 | If time elapsed from first dispatch in current observ. interval (us) < Target observation time interval for a peak-rate update (ns) Then Go to update_last_values |
3228 | update_rate_and_reset : |
3229 | bfq_update_rate_reset(bfqd, rq) |
3230 | update_last_values : |
3232 | If RQ_BFQQ(rq) == bfq_queue in service Then position of the last served request for the in-service queue = on-disk position of the last served request |
Name | Describe |
---|---|
bfq_dispatch_remove | Remove request from internal lists. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |