Home
last modified time | relevance | path

Searched refs:ewma (Results 1 – 9 of 9) sorted by relevance

/linux/Documentation/translations/zh_CN/scheduler/
H A Dschedutil.rst31 ewma(u) = ewma_sum(u) / ewma_sum(1)
33 由于这本质上是一个无限几何级数的累加,结果是可组合的,即ewma(A) + ewma(B) = ewma(A+B)。
/linux/drivers/md/bcache/
H A Dutil.h346 #define ewma_add(ewma, val, weight, factor) \ argument
348 (ewma) *= (weight) - 1; \
349 (ewma) += (val) << factor; \
350 (ewma) /= (weight); \
351 (ewma) >> factor; \
/linux/Documentation/scheduler/
H A Dschedutil.rst24 ewma(u) = ewma_sum(u) / ewma_sum(1)
27 results are composable, that is ewma(A) + ewma(B) = ewma(A+B). This property
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00link.c25 static inline int rt2x00link_get_avg_rssi(struct ewma_rssi *ewma) in rt2x00link_get_avg_rssi() argument
29 avg = ewma_rssi_read(ewma); in rt2x00link_get_avg_rssi()
/linux/fs/bcachefs/
H A Dutil.h222 #define ewma_add(ewma, val, weight) \ argument
224 typeof(ewma) _ewma = (ewma); \
/linux/Documentation/networking/
H A Dgen_stats.rst95 and ewma log need to be converted to the appropriate values.
/linux/block/
H A Dblk-mq.c1979 unsigned int ewma; in blk_mq_update_dispatch_busy() local
1981 ewma = hctx->dispatch_busy; in blk_mq_update_dispatch_busy()
1983 if (!ewma && !busy) in blk_mq_update_dispatch_busy()
1986 ewma *= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT - 1; in blk_mq_update_dispatch_busy()
1988 ewma += 1 << BLK_MQ_DISPATCH_BUSY_EWMA_FACTOR; in blk_mq_update_dispatch_busy()
1989 ewma /= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT; in blk_mq_update_dispatch_busy()
1991 hctx->dispatch_busy = ewma; in blk_mq_update_dispatch_busy()
/linux/kernel/sched/
H A Dfair.c4983 unsigned int ewma, dequeued, last_ewma_diff; in util_est_update() local
4996 ewma = READ_ONCE(p->se.avg.util_est); in util_est_update()
5002 if (ewma & UTIL_AVG_UNCHANGED) in util_est_update()
5012 if (ewma <= dequeued) { in util_est_update()
5013 ewma = dequeued; in util_est_update()
5021 last_ewma_diff = ewma - dequeued; in util_est_update()
5056 ewma <<= UTIL_EST_WEIGHT_SHIFT; in util_est_update()
5057 ewma -= last_ewma_diff; in util_est_update()
5058 ewma >>= UTIL_EST_WEIGHT_SHIFT; in util_est_update()
5060 ewma |= UTIL_AVG_UNCHANGED; in util_est_update()
[all …]
/linux/mm/
H A Dksm.c376 static unsigned long ewma(unsigned long prev, unsigned long curr)
439 change = ewma(advisor_ctx.change, change); in scan_time_advisor()
377 static unsigned long ewma(unsigned long prev, unsigned long curr) ewma() function