Message ID | 202010291356.09TDuvkj005427@vz7build.vvs.sw.ru |
---|---|
State | New |
Series | "ploop: Reduce batch size in populate_holes_bitmap()" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from imap.gmail.com [108.177.119.109] by patchwork.criu.org with IMAP (fetchmail-6.4.8) for <root@localhost> (single-drop); Thu, 12 Nov 2020 11:40:37 +0100 (CET) Received: by 2002:a9a:2f:0:b029:91:d28a:c332 with SMTP id 44csp378288lka; Thu, 29 Oct 2020 06:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhLwRJPtNrGNB/xQn8NtZcmnH9tJqgJsKZ+2e2CE5dhw0INlJ8R2eExe5P3g9pYsLp1zHL X-Received: by 2002:a2e:80d7:: with SMTP id r23mr2005734ljg.390.1603979845951; Thu, 29 Oct 2020 06:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603979845; cv=none; d=google.com; s=arc-20160816; b=It20dUwiZVn/F8CuC8d2207TK4IcFJgNJjep+A565vtcaKEA71qk6JC3KXZYHU98hX cvp9FQq/ZZcHRxd1RlGu4l1zBS5K55axlwIU7o0cqPgw9V3+V+98UVRPsmmHkly5LfZi BqJRPjeItSTQ/Vd3m/SVLsRLGXIYcTtqoiN5A8EuBjbSpJdAhCg+kgC+OYQwbMp/TA7r Asb1Pwqo2iphmxYHAGHrCB9DoEQv+ebBMPVb6RAiWPbtzWVlGTqYgM0caCXvHyL8csc5 ULvYpylKCEX2H20NBmE/rCZ/xDH9UXlio+iGInK6Bm/Mc6Y+lPTMkd5tbxv1VXk1zvYI Y1zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:in-reply-to:to:from:message-id:date; bh=kmI6eBYUlnxUSyBTo3EadlHfegbogL7cNpTLr31G0s0=; b=C7Kwy7d2mDNv2f2sB+cpIWeI380nqoAlx1HgXAKeL9UZn/IJl8xY/yxxhQaiWDgpQV 0UqkTtX4H5zDwoFX9bGFVloEgM27hsQREskMdmfBkHxBnZRaoDbL67yi6pzdK+66olxA G5Ck+t9mleE5GozRpAtfzDFlEw0xLaiClWq1AD4z3NfZ7OojO1+6QIELSWig2zA4Zhwr 0ALGJ/zIjxVW0b62WaUqWZb/522y8HX0AI1ZIA5OMEqR3DnhMPrKrjxu+Z/1QruR4v2h 7F4Y+Ntr8tK2b7uSx+vZJDS0vTmYnq84MGNU/Wb1ulOEgCs/jLLeRTUGocPz2YJBVOyT n01g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: <devel-bounces@openvz.org> Received: from mail.openvz.org (mail.openvz.org. [185.231.241.50]) by mx.google.com with ESMTPS id v20si1288273lfa.413.2020.10.29.06.57.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Oct 2020 06:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) client-ip=185.231.241.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 09TDvB4u016663; Thu, 29 Oct 2020 16:57:11 +0300 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2106.outbound.protection.outlook.com [104.47.18.106]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 09TDv9CI016660 for <devel@openvz.org>; Thu, 29 Oct 2020 16:57:09 +0300 Received: from DB9PR02CA0030.eurprd02.prod.outlook.com (2603:10a6:10:1d9::35) by VI1PR08MB4494.eurprd08.prod.outlook.com (2603:10a6:803:f4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Thu, 29 Oct 2020 13:57:11 +0000 Received: from DB5EUR01FT027.eop-EUR01.prod.protection.outlook.com (2603:10a6:10:1d9:cafe::b9) by DB9PR02CA0030.outlook.office365.com (2603:10a6:10:1d9::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 29 Oct 2020 13:57:10 +0000 Authentication-Results: spf=pass (sender IP is 185.231.240.75) smtp.mailfrom=virtuozzo.com; openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=pass action=none header.from=virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of virtuozzo.com designates 185.231.240.75 as permitted sender) receiver=protection.outlook.com; client-ip=185.231.240.75; helo=relay3.sw.ru; Received: from relay3.sw.ru (185.231.240.75) by DB5EUR01FT027.mail.protection.outlook.com (10.152.5.1) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3520.15 via Frontend Transport; Thu, 29 Oct 2020 13:57:10 +0000 Received: from [172.16.53.199] (helo=vz7build.vvs.sw.ru) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from <vvs@virtuozzo.com>) id 1kY8QD-006hKH-2v; Thu, 29 Oct 2020 16:56:57 +0300 Received: from vz7build.vvs.sw.ru (localhost [127.0.0.1]) by vz7build.vvs.sw.ru (8.14.7/8.14.7) with ESMTP id 09TDuveB005428; Thu, 29 Oct 2020 16:56:57 +0300 Received: (from vvs@localhost) by vz7build.vvs.sw.ru (8.14.7/8.14.7/Submit) id 09TDuvkj005427; Thu, 29 Oct 2020 16:56:57 +0300 Date: Thu, 29 Oct 2020 16:56:57 +0300 Message-Id: <202010291356.09TDuvkj005427@vz7build.vvs.sw.ru> X-Authentication-Warning: vz7build.vvs.sw.ru: vvs set sender to vvs@virtuozzo.com using -f From: Vasily Averin <vvs@virtuozzo.com> To: Kirill Tkhai <ktkhai@virtuozzo.com> In-Reply-to: <160390077323.875719.17964116632829343248.stgit@localhost.localdomain> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 1efa02ea-bde9-4b53-451c-08d87c128800 X-MS-TrafficTypeDiagnostic: VI1PR08MB4494: X-Forefront-Antispam-Report: CIP:185.231.240.75; CTRY:RU; LANG:en; SCL:-1; SRV:; IPV:CAL; SFV:SKN; H:relay3.sw.ru; PTR:relay.sw.ru; CAT:NONE; SFS:; DIR:INB; X-MS-Oob-TLC-OOBClassifiers: OLM:389; X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?KpWzTvY+XLXVgNt5tf7ScbK4QO/VycSwCT8xMvZfevtkEci/5v8IihJCTkcX?= =?us-ascii?Q?8MEACvT0g3tQF66hzY8/NdVS5jCxC5L86ctty5ycYKWHPnKHqiyPuQfh9gqa?= =?us-ascii?Q?VlwkLokNr3tnRkFZGV74profM3lAE9h2o4TSH5YDDqQCwI0YuccHjUeAatid?= =?us-ascii?Q?4XK2f4mn8/r8wH97XzyLs4NqZRaS4dKOv6ExwI0FyIVOucs74GAIecq00fUq?= =?us-ascii?Q?XWYmX/TUCepj+4qcqbJPGfofXsHJrgfxPJiTfDZxDrcvB3AylASuORzYTU3S?= =?us-ascii?Q?KQNnYT2OdzXo7SB13ZvYHraaZLthOIIcviHNvNQwqCnhjnYWcOHNI6SAcWtz?= =?us-ascii?Q?iAXKtCa/BtyaUnr4jlkHPwYBPdtZuCpXphuraJztqCbrmphWq2wwLo324sJg?= =?us-ascii?Q?tRSU3rW/tupFOsVnwHp7nfd0x83nKEjXxSmsJtdDyI5Q/G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X6kazabDwtUAuKDIRpGZe+kwQbPwhpRUEZYR?= =?us-ascii?Q?D2ZxP9n9qkuGpX0RYlTF98TL4+7g2I1rzTHHSsJgkDYhcPO+AtQFSd/dmHGe?= =?us-ascii?Q?IOYr93A4Js2Z74oAFBkQ8FFOvp9VM5vt?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2020 13:57:10.5814 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1efa02ea-bde9-4b53-451c-08d87c128800 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0bc7f26d-0264-416e-a6fc-8352af79c58f; Ip=[185.231.240.75]; Helo=[relay3.sw.ru] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT027.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4494 X-MS-Exchange-CrossPremises-OriginalClientIPAddress: 185.231.240.75 X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-AuthSource: DB5EUR01FT027.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossPremises-AuthAs: Anonymous X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-Processed-By-Journaling: Journal Agent X-OrganizationHeadersPreserved: VI1PR08MB4494.eurprd08.prod.outlook.com Cc: OpenVZ devel <devel@openvz.org> Subject: [Devel] [PATCH RHEL7 COMMIT] ploop: Reduce batch size in populate_holes_bitmap() X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development <devel.openvz.org> List-Unsubscribe: <https://lists.openvz.org/mailman/options/devel>, <mailto:devel-request@openvz.org?subject=unsubscribe> List-Archive: <http://lists.openvz.org/pipermail/devel/> List-Post: <mailto:devel@openvz.org> List-Help: <mailto:devel-request@openvz.org?subject=help> List-Subscribe: <https://lists.openvz.org/mailman/listinfo/devel>, <mailto:devel-request@openvz.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org |
diff --git a/drivers/block/ploop/fmt_ploop1.c b/drivers/block/ploop/fmt_ploop1.c index 99acad2..4fad1ba 100644 --- a/drivers/block/ploop/fmt_ploop1.c +++ b/drivers/block/ploop/fmt_ploop1.c @@ -176,8 +176,8 @@ static int populate_holes_bitmap(struct ploop_delta *delta, return 0; ret = -ENOMEM; - /* Use multiplier 10 for bigger batch and better performance */ - nr_all_pages = 10 * cluster_size_in_bytes(delta->plo) / PAGE_SIZE; + /* Use multiplier 4 for bigger batch and better performance */ + nr_all_pages = 4 * cluster_size_in_bytes(delta->plo) / PAGE_SIZE; pages = kvzalloc(sizeof(struct page *) * nr_all_pages, GFP_KERNEL); if (!pages) return ret;
The commit is pushed to "branch-rh7-3.10.0-1127.18.2.vz7.163.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-1127.18.2.vz7.163.41 ------> commit c8d87f9b868d0b1017e97b769a37861afc305062 Author: Kirill Tkhai <ktkhai@virtuozzo.com> Date: Thu Oct 29 16:56:57 2020 +0300 ploop: Reduce batch size in populate_holes_bitmap() .sync_read_many->kaio_sync_io() allocates bvec for passed pages, and high order warning fires. kaio_sync_io() uses GFP_NOIO, so kvmalloc() will be useless. Thus, we reduce batch size to fit order 2 in kaio_sync_io()->kmalloc(). https://jira.sw.ru/browse/PSBM-121839 Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- drivers/block/ploop/fmt_ploop1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)