forked from projectacrn/acrn-hypervisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The idea of event throttle is to allow only curtain mounts of vm_events to be emitted per second. This feature is implemented with an event counter and a timer_fd periodic timer. Event counter increases until it reaches the throttle rate limit, then the periodic timer resets the counter in each time window. Events exceed the throttle rate are dropped. Tracked-On: projectacrn#8547 Signed-off-by: Wu Zhou <wu.zhou@intel.com> Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>
- Loading branch information
Showing
1 changed file
with
113 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters