Re: [PATCH v14 7/7] softmmu/dirtylimit: Implement dirty page rate limit

2022-02-14 Thread Hyman Huang
在 2022/2/14 16:25, Peter Xu 写道: On Fri, Feb 11, 2022 at 12:17:41AM +0800, huang...@chinatelecom.cn wrote: +static struct DirtyLimitInfoList *dirtylimit_query_all(void) +{ +int i, index; +DirtyLimitInfo *info = NULL; +DirtyLimitInfoList *head = NULL, **tail = &head; + +dirtylim

Re: [PATCH v14 7/7] softmmu/dirtylimit: Implement dirty page rate limit

2022-02-14 Thread Peter Xu
On Fri, Feb 11, 2022 at 12:17:41AM +0800, huang...@chinatelecom.cn wrote: > +static struct DirtyLimitInfoList *dirtylimit_query_all(void) > +{ > +int i, index; > +DirtyLimitInfo *info = NULL; > +DirtyLimitInfoList *head = NULL, **tail = &head; > + > +dirtylimit_state_lock(); > + > +

Re: [PATCH v14 7/7] softmmu/dirtylimit: Implement dirty page rate limit

2022-02-11 Thread Markus Armbruster
huang...@chinatelecom.cn writes: > From: Hyman Huang(黄勇) > > Implement dirtyrate calculation periodically basing on > dirty-ring and throttle virtual CPU until it reachs the quota > dirty page rate given by user. > > Introduce qmp commands "set-vcpu-dirty-limit", > "cancel-vcpu-dirty-limit", "que

[PATCH v14 7/7] softmmu/dirtylimit: Implement dirty page rate limit

2022-02-10 Thread huangy81
From: Hyman Huang(黄勇) Implement dirtyrate calculation periodically basing on dirty-ring and throttle virtual CPU until it reachs the quota dirty page rate given by user. Introduce qmp commands "set-vcpu-dirty-limit", "cancel-vcpu-dirty-limit", "query-vcpu-dirty-limit" to enable, disable, query d