mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
c71da496c0
Add a 'rate_limiter/group' module that defines the RateLimiterGroup and a RateLimiterGroupHandle types. The RateLimiterGroupHandle can be used in place of a RateLimiter to limit the aggregate bandwidth and/or ops of multiple virtio-blk or virtio-net queues. Each RateLimiterGroup has an associated worker thread that broadcasts an event to each RateLimiterGroupHandle when a RateLimiter is unblocked. Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com>
12 lines
176 B
TOML
12 lines
176 B
TOML
[package]
|
|
name = "rate_limiter"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
epoll = "4.3.3"
|
|
libc = "0.2.147"
|
|
log = "0.4.20"
|
|
thiserror = "1.0.40"
|
|
vmm-sys-util = "0.11.0"
|