From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6EC03ECAAD5 for ; Mon, 5 Sep 2022 13:38:35 +0000 (UTC) Received: from localhost ([::1]:49616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVCJ8-00088a-86 for qemu-devel@archiver.kernel.org; Mon, 05 Sep 2022 09:38:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVBv0-0004Ar-HT for qemu-devel@nongnu.org; Mon, 05 Sep 2022 09:13:39 -0400 Received: from prt-mail.chinatelecom.cn ([42.123.76.226]:52973 helo=chinatelecom.cn) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVBux-0004hE-Jw for qemu-devel@nongnu.org; Mon, 05 Sep 2022 09:13:38 -0400 HMM_SOURCE_IP: 172.18.0.218:60912.21186381 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-171.223.99.60 (unknown [172.18.0.218]) by chinatelecom.cn (HERMES) with SMTP id B2DD128008F; Mon, 5 Sep 2022 21:13:24 +0800 (CST) X-189-SAVE-TO-SEND: huangy81@chinatelecom.cn Received: from ([172.18.0.218]) by app0025 with ESMTP id 88d347422e964f30ab8eeff6a9ba85dc for armbru@redhat.com; Mon, 05 Sep 2022 21:13:27 CST X-Transaction-ID: 88d347422e964f30ab8eeff6a9ba85dc X-Real-From: huangy81@chinatelecom.cn X-Receive-IP: 172.18.0.218 X-MEDUSA-Status: 0 Message-ID: <4797d938-4638-b12b-c75b-47d291efb6d6@chinatelecom.cn> Date: Mon, 5 Sep 2022 21:13:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v1 3/8] migration: Introduce dirty-limit capability To: Markus Armbruster Cc: qemu-devel , Peter Xu , Juan Quintela , "Dr. David Alan Gilbert" , Eric Blake , Thomas Huth , Laurent Vivier , Paolo Bonzini , "Daniel P. Berrange" References: <87y1v2w65q.fsf@pond.sub.org> <87y1uykvyu.fsf@pond.sub.org> From: Hyman Huang In-Reply-To: <87y1uykvyu.fsf@pond.sub.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=42.123.76.226; envelope-from=huangy81@chinatelecom.cn; helo=chinatelecom.cn X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.716, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 在 2022/9/5 17:32, Markus Armbruster 写道: > Hyman Huang writes: > >> 在 2022/9/2 16:07, Markus Armbruster 写道: >>> huangy81@chinatelecom.cn writes: >>> >>>> From: Hyman Huang(黄勇) >>>> >>>> Introduce migration dirty-limit capability, which can >>>> be turned on before live migration and limit dirty >>>> page rate durty live migration. >>>> >>>> Introduce migrate_dirty_limit function to help check >>>> if dirty-limit capability enabled during live migration. >>>> >>>> Meanwhile, refactor vcpu_dirty_rate_stat_collect >>>> so that period can be configured instead of hardcoded. >>>> >>>> dirty-limit capability is kind of like auto-converge >>>> but using dirty limit instead of traditional cpu-throttle >>>> to throttle guest down. To enable this feature, turn on >>>> the dirty-limit capability before live migration using >>>> migratioin-set-capabilities, and set the parameters >>> >>> migrate-set-capabilities >>> >>>> "x-vcpu-dirty-limit-period", "vcpu-dirty-limit" suitably >>> >>> "x-vcpu-dirty-limit" >>> >>>> to speed up convergence. >>>> >>>> Signed-off-by: Hyman Huang(黄勇) >>> >>> Hmm. You make dirty-limiting as a whole a stable interface (evidence: >>> capability "dirty-limit" is stable), but keep its two parameters >>> unstable. Rationale behind that? >>> >> Thanks Markus's comments. :) >> >> x-vcpu-dirty-limit-period is an experimental parameter indeed, as to x-vcpu-dirty-limit, i think it's resonable to be a stable parameter. >> These 2 parameters are introduced first time and none of them suffer heavily tests, so i also made vcpu-dirty-limit experimental last version. >> >> For dirty-limit interface, it improves the vCPU computational performance during migration indeed(see the test results in cover >> letter), so it sounds ok to be an stable interface. >> >> The 'x-vcpu-dirty-limit-period' parameter can be dropped, IMHO, after being proved insignificant for migration in the future, and meanwhile, >> x-vcpu-dirty-limit be made stable. >> >> Since I don't have much experience to introducing fresh new interface, >> any suggestions are welcome. > > Is the new interface fit for purpose without use of any experimental > parameter? > > If the answer is something like "command dirty-limit improves things > even without use of experimental parameters, but using them may well > improve things more (but we need more testing to know for sure)", then > your current use of 'unstable' may make sense. > Yes, with the default value of parameter,the new interface works ok and improve performance. For x-vcpu-dirty-limit, we provide it because user may not want virtual CPU throttle heavily, x-vcpu-dirty-limit is kind of like cpu-throttle-percentage, which is used to setup the threshold when making guest down. For x-vcpu-dirty-limit-period, it is just as you said: "command dirty-limit improves things even without use of experimental parameters, but using them may wellimprove things more (but we need more testing to know for sure)" So, should i make x-vcpu-dirty-limit non-experimental next version? -- Best regard Hyman Huang(黄勇)