函数逻辑报告 |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-27 19:20:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:scale_amount
函数原型:static inline unsigned long scale_amount(unsigned long qd, bool up)
返回类型:unsigned long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned long | qd | |
| bool | up |
| 311 | 返回:两数取大(up ? qd >> SCALE_UP_FACTOR : qd >> SCALE_DOWN_FACTOR, 1UL) |
| 名称 | 描述 |
|---|---|
| scale_cookie_change | We scale the qd down faster than we scale up, so we need to use this helper* to adjust the scale_cookie accordingly so we don't prematurely get* scale_cookie at DEFAULT_SCALE_COOKIE and unthrottle too much |
| scale_change | Change the queue depth of the iolatency_grp. We add/subtract 1/16th of the* queue depth at a time so we don't get wild swings and hopefully dial in to* fairer distribution of the overall queue depth. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |