From patchwork Tue Jul 24 12:17:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonid Bloch X-Patchwork-Id: 10542185 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0A8413BB for ; Tue, 24 Jul 2018 13:42:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AA39289F5 for ; Tue, 24 Jul 2018 13:42:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8787928998; Tue, 24 Jul 2018 13:42:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A4831289C4 for ; Tue, 24 Jul 2018 13:41:59 +0000 (UTC) Received: from localhost ([::1]:40611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhxZe-0002Jr-7L for patchwork-qemu-devel@patchwork.kernel.org; Tue, 24 Jul 2018 09:41:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhwGv-00052T-Q5 for qemu-devel@nongnu.org; Tue, 24 Jul 2018 08:18:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhwGu-0006HA-JC for qemu-devel@nongnu.org; Tue, 24 Jul 2018 08:18:33 -0400 Received: from mail-co1nam04on070a.outbound.protection.outlook.com ([2a01:111:f400:fe4d::70a]:43456 helo=NAM04-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fhwGu-0006Gp-9r; Tue, 24 Jul 2018 08:18:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janustech.onmicrosoft.com; s=selector1-janustech-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i+Ib2CSExQ6fscep3kkhaiszrqdfHG11qZeOaHvFeWA=; b=WOmVjGBhlq97RPSB3yLmVlI9mrX0t5Pcjk1WSFa9bPNsr87fdg4qcgHlr1XOD4zjRclQaxMCyPPx/X86TWc0FLlvCmt7q1ZA0gBu+rw2y4+yCsruIE+uwmH+g4Y63urJATqBkF47TDx9BFAFb5Nu22E65qt64GQAiVnW/nF4lmM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=lbloch@janustech.com; Received: from Jupiter.local (141.226.29.227) by CO2PR07MB2614.namprd07.prod.outlook.com (2603:10b6:102:14::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Tue, 24 Jul 2018 12:18:28 +0000 From: Leonid Bloch To: qemu-devel@nongnu.org Date: Tue, 24 Jul 2018 15:17:51 +0300 Message-Id: <20180724121753.5753-3-lbloch@janustech.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180724121753.5753-1-lbloch@janustech.com> References: <20180724121753.5753-1-lbloch@janustech.com> MIME-Version: 1.0 X-Originating-IP: [141.226.29.227] X-ClientProxiedBy: DB6PR0202CA0009.eurprd02.prod.outlook.com (2603:10a6:4:29::19) To CO2PR07MB2614.namprd07.prod.outlook.com (2603:10b6:102:14::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 584f725c-ad4f-473e-77b1-08d5f15f9129 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(5600073)(711020)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:CO2PR07MB2614; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2614; 3:dhxMpLDqWcSicn8X4AdjvhmvbdKgU2gindBNas/JjE7sI23zwjyJTCEn5ReRLRpj1X4W58OfDae44DtYL+3CWoCgNZ+MRwmHouV7vZVLRVOKTHFbZmpdVKC7fqQQX9z1H5FRkbDOmdkW1ua43BOCctOJNyBqaSXvt360nA1qJvly+UI/3RZS9ZH+9Zz16CH0j30Y0Rw26gUM8q4E/0CxTLoDMW6jwFWRGtQPw2u+8FbCLIlD8rhwFbvMGadKjn1M; 25:AQg8++AarOPEo/fCM3aCUfVAD5KZGVpfRf0e2i5AXLPULzafzt7lk+CL04uw57+6nwqPFgjDAai/i11FFuc3rqttBIMWol9a2nHjH+7W/XE45pGDL3WDMpRTW0gUJeGxXHKLZfEMN20EJoUVkNXWkgcKLp/OR1O4uU3zDrRDhG0mUqLogNcH7fVVJK2fFSTcvjjaztn7w8Gu+EFd1L2h8snvBhsHF9M0gBv766dJqXqXJArt+P6coyiQW36xWOm6bdOdp2J1aEfLllupPvsyoKZ5C9OlIS/FR71N27++cK3R9gQfpnumJqVbkqGNoV9OMkL1eRhNFNJkZFti0XTB+Q==; 31:XQvOXidIBvMyyXKG/cwvTciKtcn+fHL4813enSARW6Ot3rNyASCKGpMwtZQmW8eIO5/2IhqsPHEjy4G9/UUBfxUeNiAewuun2OHxiAj4YAXWiOsFxRAXzsiZPyxqtvB1pMf58K8PiPjbSa2dVTN7mqnsSuq+izsRwgxF79BCP/WdZvXSgXHK/E6RiIrQ9uCNtRGaj34ZLrF8RjXQkLiC4RGU+NFt8Ik4eegsG+o03ZA= X-MS-TrafficTypeDiagnostic: CO2PR07MB2614: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(2016111802025)(6072148)(6043046)(201708071742011)(7699016); SRVR:CO2PR07MB2614; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2614; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2614; 4:pEqET7gU4iZh5LxMLxMiHPULzm4JI/m5Fl8WbtuPDoHwWQgZT2R52LtYTC/DgdBfyZquJWyMQbWY8fxJMJV84mKCVdSjZkeBeuxhEFnoZ1Xu7VDJyf/MXaDCqqy6EVUQA54TRCJgkMhkMI9B915Epd32PMfCy8epx6UBvaY17imLmtny8bdVBh8BAvNaTAS+sUpXHbEV+b7U6K6xKWqeul9lhEhYPd9Rc5Zibb9JPy6lr8hri23sfI89PHZLqrwkHHJ7nKBYShsj5oEV1lGB1g== X-Forefront-PRVS: 0743E8D0A6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(136003)(366004)(376002)(346002)(396003)(39830400003)(199004)(189003)(6506007)(66066001)(6116002)(6666003)(86362001)(6916009)(2616005)(476003)(956004)(52116002)(47776003)(2351001)(3846002)(6512007)(478600001)(2361001)(5660300001)(316002)(106356001)(76176011)(16586007)(105586002)(50226002)(25786009)(4326008)(11346002)(54906003)(446003)(68736007)(51416003)(1076002)(7736002)(36756003)(48376002)(575784001)(53936002)(305945005)(16526019)(2906002)(186003)(8936002)(50466002)(6486002)(97736004)(26005)(81156014)(81166006)(8676002)(486006)(386003); DIR:OUT; SFP:1102; SCL:1; SRVR:CO2PR07MB2614; H:Jupiter.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: janustech.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2614; 23:q3XZwXNhs+ek17Uo65tfBFGLgLvTGm5g0Lmit3Rsi?= AbOfRE8K87EWXNKZurdK97lT05WAh5Edo6NQjo81IgFkWi1LahwmRHmTq0NSXQtcdafa/TeDELNsCDAhhHVhc2F+fr5DP1bJvMHYYPMrvFoU7IAzGwjyDnbb046dpT1/NId6IZhmhU+ceZPnpfQLUA6BufYBs+PCSlYZGeRsuSoAOvJrs9AxdPihXlEXHySb+edqGmvQrPUCZW0cc9c94QjAxpLnq0f8McmMq55LuJX2iHS84DuX1PWoTVxoP7ZNZbbVipbxJOQszgrj6LUl8OTeRbQ9Esu/xYeetIC+2s63baWnIMSuXecIfrrI3HFgA6FiajEJ38puFr/QInSU5SKv51rOkv7fwGRZeCr///gfkIFhsHNKgRtfSJJThzi7iYHtGmRxoJwWn2AZiog5uvIyh0bkCdTQm9NyLNjXd6yh0WoHY4gzuDJ3KyklErSNaepc2tM3XdDh1ZoB3i/aalJK2j0bfURhOvGCBDiLLG0LyR7t5YDccbEmSLwxqP0PABIFphXRzA3pHAn8psffe+kTg7dZuBbc4jlGXh8BDwjzAAXJ+GN8H8ElEKm4PKW9dWJGZHwORL4nc8iXz+gw7z+Xf2T+I0zbt+kFWflnDTLotynnvXSExC52hp8RITcm9+bFznFXN3kHZwZAr/gwhnHxcAqIXqTTqjdv9lhY1OWq9+sHvuXHjnzLktyuJLSeu8ENnfQrd64Sy6ODRs91lJGiTuApHGQZc5uRuszIk7CHiY2UiGmHBwoI2HWXT/wQhB3YYgat6AotJBTuvIrOO6vRPvJzSaJU8kdsr8DnpnQ3x+XQQn+KQq77peD6YmtYjjc4+99oM+/NFU5LHkDbHRwMi1TmVE52PvAKf2WJNLIdepcFGmovUlsV+pk76IoP3c6ApL6F5I9cmY3l6NREIPx1YHrBIgSu9x2xG4Fv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ulCdFDapY8fmOmoJqdlMXE+ladLHG1+OTTMIEzbVBOclKP4I1RPI6/78M0f6ue9nTPd8Yam+PfY3bKsFcyGbjqZh07+Y9lMiMR6nHsQ8sSJUCyaA==; 5:16WhGKuwPt1OLDUeo7pXTXnryk+KdbYWRG9S9KwR75YmqMhQ3E6ybwigHtWEvSLm+9rMYz+wKfnJaKt1X2Nqea9sK+ll9JKcWgrItyDA3oNuamgvX1mwEJlUnZXC6h9WqKm171j5OzYE9Ys0H691W56D0nVoD6AaEy3VCz47v60=; 7:UzZPDTJgv2P+Ekjk2noOLaRIEhtV9YnELOeUPYAA1ncZG42UICsboaT46gRdTdrbdMcOlv2peMB/ddPa7WK9LeyhClyTrmJHZGCFQHR0NshYtOlMTO6/f/hazabmERgRtrnn6ahnxA9TmxQlKbm4os5zf675VP8hkxOnMZz3W8Q/k1OROsDf/kEsIIpMdNY/6qKaT3KYYu2xVBcdMpMvaaGe3pf24ILc0sCLETm20kIVhoVKBs5z3+EfXYix27AK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: janustech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 12:18:28.4581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 584f725c-ad4f-473e-77b1-08d5f15f9129 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 34eb020e-3cf3-43a1-afeb-f5cf1310628e X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2614 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 2a01:111:f400:fe4d::70a X-Mailman-Approved-At: Tue, 24 Jul 2018 09:40:43 -0400 Subject: [Qemu-devel] [PATCH 2/4] docs: Fix an inaccuracy due to recent changes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Leonid Bloch --- docs/qcow2-cache.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt index 8a09a5cc5f..a0a1267482 100644 --- a/docs/qcow2-cache.txt +++ b/docs/qcow2-cache.txt @@ -97,9 +97,9 @@ need: l2_cache_size = disk_size_GB * 131072 refcount_cache_size = disk_size_GB * 32768 -QEMU has a default L2 cache of 1MB (1048576 bytes) and a refcount -cache of 256KB (262144 bytes), so using the formulas we've just seen -we have +QEMU has a default L2 cache of 1MB (1048576 bytes) or 8 clusters (whichever +is larger) and a refcount cache of 256KB (262144 bytes), so using the +formulas we've just seen we have (assuming the L2 cache is 1MB): 1048576 / 131072 = 8 GB of virtual disk covered by that cache 262144 / 32768 = 8 GB