Function report |
Source Code:block\blk-iocost.c |
Create Date:2022-07-28 17:47:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Take the followings as input*@bps maximum sequential throughput*@seqiops maximum sequential 4k iops*@randiops maximum random 4k iops* and calculate the linear model cost coefficients
Proto:static void calc_lcoefs(u64 bps, u64 seqiops, u64 randiops, u64 *page, u64 *seqio, u64 *randio)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u64 | bps | |
| u64 | seqiops | |
| u64 | randiops | |
| u64 * | page | |
| u64 * | seqio | |
| u64 * | randio |
| 788 | If bps Then page = DIV64_U64_ROUND_UP(VTIME_PER_SEC, DIV_ROUND_UP_ULL(bps, IOC_PAGE_SIZE)) |
| 792 | If seqiops Then |
| 793 | v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, seqiops) |
| 798 | If randiops Then |
| 799 | v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, randiops) |
| Name | Describe |
|---|---|
| ioc_refresh_lcoefs |
| 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 |