函数逻辑报告 |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-27 19:31:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Update the read/write peak rate (the main quantity used for* auto-tuning, see update_thr_responsiveness_params())
函数原型:static void bfq_update_peak_rate(struct bfq_data *bfqd, struct request *rq)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bfq_data * | bfqd | |
struct request * | rq |
3180 | now_ns等于ktime_get_ns() |
3182 | 如果 number of samples in current observation interval 恒等于0则 |
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 | 转到:update_last_values |
3201 | 如果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则转到: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 | 如果 time elapsed from first dispatch in current observ. interval (us) 小于Target observation time interval for a peak-rate update (ns) 则转到:update_last_values |
3228 | update_rate_and_reset : |
3229 | bfq_update_rate_reset(bfqd, rq) |
3230 | update_last_values : |
3232 | 如果RQ_BFQQ(rq)恒等于 bfq_queue in service 则 position of the last served request for the in-service queue 等于 on-disk position of the last served request |
名称 | 描述 |
---|---|
bfq_dispatch_remove | Remove request from internal lists. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |