Re: [PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-09 Thread Kunkun Jiang
Hi, On 2021/3/10 0:15, Peter Xu wrote: On Tue, Mar 09, 2021 at 10:33:04PM +0800, Kunkun Jiang wrote: Hi, On 2021/3/9 5:12, Peter Xu wrote: On Mon, Mar 08, 2021 at 06:34:58PM +0800, Kunkun Jiang wrote: Hi, On 2021/3/5 22:22, Peter Xu wrote: Kunkun, On Fri, Mar 05, 2021 at 03:50:34PM +0800,

Re: [PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-09 Thread Peter Xu
On Tue, Mar 09, 2021 at 10:33:04PM +0800, Kunkun Jiang wrote: > Hi, > > On 2021/3/9 5:12, Peter Xu wrote: > > On Mon, Mar 08, 2021 at 06:34:58PM +0800, Kunkun Jiang wrote: > > > Hi, > > > > > > On 2021/3/5 22:22, Peter Xu wrote: > > > > Kunkun, > > > > > > > > On Fri, Mar 05, 2021 at 03:50:34PM

Re: [PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-09 Thread Kunkun Jiang
Hi, On 2021/3/9 5:12, Peter Xu wrote: On Mon, Mar 08, 2021 at 06:34:58PM +0800, Kunkun Jiang wrote: Hi, On 2021/3/5 22:22, Peter Xu wrote: Kunkun, On Fri, Mar 05, 2021 at 03:50:34PM +0800, Kunkun Jiang wrote: When the host page is a huge page and something is sent in the current iteration,

Re: [PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-08 Thread Peter Xu
On Mon, Mar 08, 2021 at 06:34:58PM +0800, Kunkun Jiang wrote: > Hi, > > On 2021/3/5 22:22, Peter Xu wrote: > > Kunkun, > > > > On Fri, Mar 05, 2021 at 03:50:34PM +0800, Kunkun Jiang wrote: > > > When the host page is a huge page and something is sent in the > > > current iteration, the migration_

Re: [PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-08 Thread Kunkun Jiang
Hi, On 2021/3/5 22:22, Peter Xu wrote: Kunkun, On Fri, Mar 05, 2021 at 03:50:34PM +0800, Kunkun Jiang wrote: When the host page is a huge page and something is sent in the current iteration, the migration_rate_limit() should be executed. If not, this function can be omitted to save time. Rena

Re: [PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-05 Thread Peter Xu
Kunkun, On Fri, Mar 05, 2021 at 03:50:34PM +0800, Kunkun Jiang wrote: > When the host page is a huge page and something is sent in the > current iteration, the migration_rate_limit() should be executed. > If not, this function can be omitted to save time. > > Rename tmppages to pages_this_iterati

[PATCH v3 2/3] migration/ram: Reduce unnecessary rate limiting

2021-03-04 Thread Kunkun Jiang
When the host page is a huge page and something is sent in the current iteration, the migration_rate_limit() should be executed. If not, this function can be omitted to save time. Rename tmppages to pages_this_iteration to express its meaning more clearly. Signed-off-by: Keqian Zhu Signed-off-by