From nobody Sat Nov 15 17:48:31 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1749823856; cv=none; d=zohomail.com; s=zohoarc; b=QwZpUi1A7EDVxCM2se0zEgMrI5hwswIdCo44GqqjIQAYCiDk2YwpcfJ9RkFN4UQ62JFxqc9F8WCYMgfh0iH4m7VH8tmR/mAWV0nvM+6RWYlcEWLgNNYRK1K5f1Ch1KRHem34AhBQyOyGNfbW/eDqBVlqUUQaMGiFJKD/4ePIvRY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749823856; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hT+PxuMKRJ8Bh39RMhUF6/Cm7/wGAILL/wn1CqdT0Rg=; b=cAVVZ6v0LbmPGN9PlOBxtAJaMyRSvMEGacW1f4isgy0NkiJ7uAD6aarak10Kf2LPTv+2TM4PG4lQ9Oc/z9qVY+ksJBpa42Hl3xX+8MN+n2XiZCCFqvnSCgZrUkMNsUjwu3oNmcrTYM9/G3aUv6w+HlOceFfWONAWtOg3oi1omI4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1749823856048945.7960803251572; Fri, 13 Jun 2025 07:10:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uQ54u-00048g-Pl; Fri, 13 Jun 2025 10:08:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uQ54q-00047S-Rt for qemu-devel@nongnu.org; Fri, 13 Jun 2025 10:08:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uQ54o-0001T7-Qe for qemu-devel@nongnu.org; Fri, 13 Jun 2025 10:08:16 -0400 Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-158-IErH_cxnMOm46BSBeis90Q-1; Fri, 13 Jun 2025 10:08:09 -0400 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-4a4403a6996so36788051cf.0 for ; Fri, 13 Jun 2025 07:08:09 -0700 (PDT) Received: from x1.com ([85.131.185.92]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4a72a52a1ddsm17384111cf.81.2025.06.13.07.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jun 2025 07:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1749823690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hT+PxuMKRJ8Bh39RMhUF6/Cm7/wGAILL/wn1CqdT0Rg=; b=gVkHEBQdr4EP9lf/MLIXosrHU74fM0BLqdSphhK7Sy+bXuJzpUmByPwG2rN8KNaEMNheK5 eyqCUBm8O32+VfuLQiaOKjLEyiEwzjjvJIGB8eLWSiXgVKEekdXPP6S2AhkXFAyuMM3so3 M8+NRIZWxJSv+cNBBUNzm3iXVmkL2C4= X-MC-Unique: IErH_cxnMOm46BSBeis90Q-1 X-Mimecast-MFC-AGG-ID: IErH_cxnMOm46BSBeis90Q_1749823689 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749823689; x=1750428489; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hT+PxuMKRJ8Bh39RMhUF6/Cm7/wGAILL/wn1CqdT0Rg=; b=Gm/fMSfn6SMnXoVmHUDB+Oy5un8rMBFWssLGbl/iMRhLsWYjMuDcFsSv6+scjiLyy5 MX3nKIX6ALZ5CSxsv7+UvIZNYXKXGY8NcT2YTRtCnZ2+6Z0nkFAoE9GBbk8tQlfaU3ii CNZR/6BaWkm/+77HoPNO8V7LFnP1dKtjk/xqgqSHs1Xqv/N7ZFlPVFKFgrOmugu3QRgB RZ8iBKOG6/CcjoQdFjmsypm5LcmTsYspPSlHrcZcz5ejMgRMy2uGSfHXSHRMONjiIKRU 2ILWVYfkyNVapeIjPSaH5JwALJ2yB4UMCyVDDF/A3hpwtLIVeOiaJHkHXb+Urytcb4Q4 tENA== X-Gm-Message-State: AOJu0YxNxgvEtXQJjtiyFOtwYL93XZW61s6emn1R8vOpqreqK5pJJLdp HWFcYIQgzClrVy+wWrLuELfDw1S1a33kAeJ+fn5psJLEyzhfoemdeY1ZhtUg/9EnSxhUKwZ+e/t PXYNtUlktZ0u24k59fhsSvykG6cHUA6AlaSI1yRgOmPIDjSklnPAltkYvPd5VngsFI5Svf035E0 +HvC/s8XRTnmd2PzvsdtWeXoZornqVTe+bNuLKTQ== X-Gm-Gg: ASbGncttCKvaE77XqYf3I7ZlBIVYeNULuF+TKnXu/gBFn7xDQs7Iz36D4YA9GrE5+BD 1lsGG40wYFQ7EGKcT0lUnGCxpqX3nBEpLaayhAr/r5rCZwNNkPmj7v5yIWvyJQrhHc0+jX+D2rn kIC8CNxQyXxT9sSWJX1Y1RvfWGJDuHzXiC7nNdajpsPdP8PnID90N/hUBWusczksR4sqfkGdaA4 WKXGDHs6O7Yv688zW0OfEceMEoNbqTiB/ac07XM33soZPQwV9eMworB6R4yRcupA42nrN0j1foo lcdroH2pBsU= X-Received: by 2002:a05:622a:a13:b0:497:6a94:dba0 with SMTP id d75a77b69052e-4a72ff2b054mr49205991cf.25.1749823688826; Fri, 13 Jun 2025 07:08:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGX/OhDRG0j7TAQTY7XwZhcR31JIiFgJNZqzcwSt4AWT8k/Zn/iuzHvytgbPv2QUzibcQHesA== X-Received: by 2002:a05:622a:a13:b0:497:6a94:dba0 with SMTP id d75a77b69052e-4a72ff2b054mr49205591cf.25.1749823688324; Fri, 13 Jun 2025 07:08:08 -0700 (PDT) From: Peter Xu To: qemu-devel@nongnu.org Cc: peterx@redhat.com, Juraj Marcin , Mario Casquero , Fabiano Rosas , "Dr . David Alan Gilbert" Subject: [PATCH v3 03/11] migration/docs: Move docs for postcopy blocktime feature Date: Fri, 13 Jun 2025 10:07:53 -0400 Message-ID: <20250613140801.474264-4-peterx@redhat.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250613140801.474264-1-peterx@redhat.com> References: <20250613140801.474264-1-peterx@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=peterx@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1749823858000116600 Content-Type: text/plain; charset="utf-8" Move it out of vanilla postcopy session, but instead a standalone feature. When at it, removing the NOTE because it's incorrect now after introduction of max-postcopy-bandwidth, which can control the throughput even for postcopy phase. Reviewed-by: Juraj Marcin Signed-off-by: Peter Xu --- docs/devel/migration/postcopy.rst | 36 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/docs/devel/migration/postcopy.rst b/docs/devel/migration/postc= opy.rst index 82e7a848c6..e319388d8f 100644 --- a/docs/devel/migration/postcopy.rst +++ b/docs/devel/migration/postcopy.rst @@ -33,25 +33,6 @@ will now cause the transition from precopy to postcopy. It can be issued immediately after migration is started or any time later on. Issuing it after the end of a migration is harmless. =20 -Blocktime is a postcopy live migration metric, intended to show how -long the vCPU was in state of interruptible sleep due to pagefault. -That metric is calculated both for all vCPUs as overlapped value, and -separately for each vCPU. These values are calculated on destination -side. To enable postcopy blocktime calculation, enter following -command on destination monitor: - -``migrate_set_capability postcopy-blocktime on`` - -Postcopy blocktime can be retrieved by query-migrate qmp command. -postcopy-blocktime value of qmp command will show overlapped blocking -time for all vCPU, postcopy-vcpu-blocktime will show list of blocking -time per vCPU. - -.. note:: - During the postcopy phase, the bandwidth limits set using - ``migrate_set_parameter`` is ignored (to avoid delaying requested pages = that - the destination is waiting for). - Postcopy internals =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 @@ -312,3 +293,20 @@ explicitly) to be sent in a separate preempt channel, = rather than queued in the background migration channel. Anyone who cares about latencies of page faults during a postcopy migration should enable this feature. By default, it's not enabled. + +Postcopy blocktime statistics +----------------------------- + +Blocktime is a postcopy live migration metric, intended to show how +long the vCPU was in state of interruptible sleep due to pagefault. +That metric is calculated both for all vCPUs as overlapped value, and +separately for each vCPU. These values are calculated on destination +side. To enable postcopy blocktime calculation, enter following +command on destination monitor: + +``migrate_set_capability postcopy-blocktime on`` + +Postcopy blocktime can be retrieved by query-migrate qmp command. +postcopy-blocktime value of qmp command will show overlapped blocking +time for all vCPU, postcopy-vcpu-blocktime will show list of blocking +time per vCPU. --=20 2.49.0