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.h409 #define ewma_add(ewma, val, weight, factor) \ argument
411 (ewma) *= (weight) - 1; \
412 (ewma) += (val) << factor; \
413 (ewma) /= (weight); \
414 (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/Documentation/networking/
H A Dgen_stats.rst95 and ewma log need to be converted to the appropriate values.
/linux/block/
H A Dblk-mq.c2015 unsigned int ewma; in blk_mq_update_dispatch_busy() local
2017 ewma = hctx->dispatch_busy; in blk_mq_update_dispatch_busy()
2019 if (!ewma && !busy) in blk_mq_update_dispatch_busy()
2022 ewma *= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT - 1; in blk_mq_update_dispatch_busy()
2024 ewma += 1 << BLK_MQ_DISPATCH_BUSY_EWMA_FACTOR; in blk_mq_update_dispatch_busy()
2025 ewma /= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT; in blk_mq_update_dispatch_busy()
2027 hctx->dispatch_busy = ewma; in blk_mq_update_dispatch_busy()
/linux/kernel/sched/
H A Dfair.c4837 unsigned int ewma, dequeued, last_ewma_diff; in util_est_update() local
4850 ewma = READ_ONCE(p->se.avg.util_est); in util_est_update()
4856 if (ewma & UTIL_AVG_UNCHANGED) in util_est_update()
4866 if (ewma <= dequeued) { in util_est_update()
4867 ewma = dequeued; in util_est_update()
4875 last_ewma_diff = ewma - dequeued; in util_est_update()
4903 ewma <<= UTIL_EST_WEIGHT_SHIFT; in util_est_update()
4904 ewma -= last_ewma_diff; in util_est_update()
4905 ewma >>= UTIL_EST_WEIGHT_SHIFT; in util_est_update()
4907 ewma |= UTIL_AVG_UNCHANGED; in util_est_update()
[all …]
/linux/net/ipv4/
H A Dtcp_input.c506 u32 ewma; in __tcp_accecn_process() local
517 ewma = delivered_pkts << PKTS_ACKED_PREC; in __tcp_accecn_process()
519 ewma = tp->pkts_acked_ewma; in __tcp_accecn_process()
520 ewma = (((ewma << PKTS_ACKED_WEIGHT) - ewma) + in __tcp_accecn_process()
524 tp->pkts_acked_ewma = min_t(u32, ewma, 0xFFFFU); in __tcp_accecn_process()
/linux/mm/
H A Dksm.c376 static unsigned long ewma(unsigned long prev, unsigned long curr) in ewma() function
439 change = ewma(advisor_ctx.change, change); in scan_time_advisor()