Received: from eggs.gnu.org ([2001:4830:134:3::10]:45847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adwOj-0003UZ-Hm for qemu-devel@nongnu.org; Thu, 10 Mar 2016 03:56:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adwOd-0007So-U4 for qemu-devel@nongnu.org; Thu, 10 Mar 2016 03:56:45 -0500 Received: from g9t5009.houston.hp.com ([15.240.92.67]:50374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adwOd-0007Sh-Ou for qemu-devel@nongnu.org; Thu, 10 Mar 2016 03:56:39 -0500 From: Jitendra Kolhe Date: Thu, 10 Mar 2016 14:27:39 +0530 Message-Id: <1457600259-2662-1-git-send-email-jitendra.kolhe@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v1] migration: skip sending ram pages released by virtio-balloon driver. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eblake@redhat.com Cc: simhan@hpe.com, mohan_parthasarathy@hpe.com, qemu-devel@nongnu.org, dgilbert@redhat.com On 3/7/2016 10:35 PM, Eric Blake wrote: > On 03/04/2016 02:02 AM, Jitendra Kolhe wrote: >> While measuring live migration performance for qemu/kvm guest, it >> was observed that the qemu doesn=E2=80=99t maintain any intelligence f= or the >> guest ram pages which are release by the guest balloon driver and >> treat such pages as any other normal guest ram pages. This has direct >> impact on overall migration time for the guest which has released >> (ballooned out) memory to the host. >> > >> Signed-off-by: Jitendra Kolhe >> --- >> balloon.c | 253 ++++++++++++++++++++++++++++= ++++++++- >> exec.c | 3 + >> hw/virtio/virtio-balloon.c | 35 ++++- >> include/hw/virtio/virtio-balloon.h | 1 + >> include/migration/migration.h | 1 + >> include/sysemu/balloon.h | 15 ++- >> migration/migration.c | 9 ++ >> migration/ram.c | 23 +++- >> qapi-schema.json | 5 +- >> 9 files changed, 337 insertions(+), 8 deletions(-) >> > >> +++ b/qapi-schema.json >> @@ -544,11 +544,14 @@ >> # been migrated, pulling the remaining pages along as needed= . NOTE: If >> # the migration fails during postcopy the VM will fail. (si= nce 2.5) >> # >> +# @skip-balloon: Skip scaning ram pages released by virtio-balloon dr= iver. > > s/scaning/scanning/ > >> +# (since 2.5) > > You've missed 2.5. In fact, this is borderline between new feature and > bug fix, so you may have even missed 2.6 since soft freeze has already > passed, in which case this should read 2.7. Thanks for sharing the timeline was not aware of it. I think making chang= es to=20 version 2.7 should be fine. However the version string "(since 2.5)" is part of existing code. I have added a new option "skip-balloon" below it. > > Does this need to be an option, or should it be unconditionally enabled= ? > That's a good point, ideally we should be able to enable the option uncon= ditionally. In which case, we may not even need to have the new capability. Currently= we have disabled the option by default just to make sure that we don't break any = migration compatibility. Although I have not seen any such breakage during my testi= ng, I am not sure whether we are taking care of all subcomponents, expecting some comm= ents this part. Thanks, - Jitendra