Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
u64bps
u64seqiops
u64randiops
u64 *page
u64 *seqio
u64 *randio
786  page = seqio = randio = 0
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)
794  If v > page Then seqio = v - page
798  If randiops Then
799  v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, randiops)
800  If v > page Then randio = v - page
Caller
NameDescribe
ioc_refresh_lcoefs