Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3924393ybl; Mon, 9 Dec 2019 02:25:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxrLZUPebiCMAxIf7hrHF8LsOnlPgob11URLpqEVBBSWBpEbio8WGRMVcVVqS7XZOFaq8kl X-Received: by 2002:aca:de88:: with SMTP id v130mr23846685oig.108.1575887154382; Mon, 09 Dec 2019 02:25:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575887154; cv=none; d=google.com; s=arc-20160816; b=FYAxvKF53aLf6to70999e8HZXTUZQaR0ELHTJxXQAjBXfCy+qKveqebOX0a2gr12VU rjzIRHOmZud4kxueqeBApKuOfFMLTDsVWIfeWX4XPaEPi6uR9lGh16thS0c4gI1XrlAV 8zpSWfcRiUknbKQkRPs6x9HgdOxnfjln/Xa4viLOF8VYVW8dMPPuT8302St0bvYRZvU3 86019rQo5iNH03aVeisavBcWzjdtNj7P+NmnT7ab6XJ//o1NijxTl//PvNfxfFfAHTrt +4eY529A68gdSPkno7mMJQ7CgQb5+f3Vn1aIyVDiDDQW6pZna2NO6Bx68LsukrraUgt/ KH6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:references :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=TFhrQ8TsGCVpfe7qixLlviznfKMBnnGyy14ZJutL01Q=; b=Ijqc5zMFBWQoeOzei+4nRpag9yf0mKf+Q8xUz/MZBfNIiRM7wAb/MguA/ALf7Mrzk3 WdcPcb8pbHiw9RJGOj02Km2NlQiEk/rgzkDnh0xaQ7FxVIqCL8ofe37HAqclPWZ6UtcR zmvxt/wPZZmN9zhKj393w/pv4wQVYC1hk8VWM5lLV9SASO9oi6TssnmJa6ZL/BgMbZQg BEMNzb6Ny86QEQVf7f1kytbPUsAglQZnf7CASpUwGHa8COV5brTV3S/cwA6PmBUGeSnQ hGHUG5wnom8MuDI7vYqV38b1Lr4imU5bMdxZOMASiPRfWEsXdOIUd/riUDMAxz/qIjA6 AfXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="LzYyV/QZ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d206si10334794oif.203.2019.12.09.02.25.42; Mon, 09 Dec 2019 02:25:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="LzYyV/QZ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727387AbfLIKYc (ORCPT + 99 others); Mon, 9 Dec 2019 05:24:32 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:41315 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbfLIKYc (ORCPT ); Mon, 9 Dec 2019 05:24:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1575887072; x=1607423072; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=TFhrQ8TsGCVpfe7qixLlviznfKMBnnGyy14ZJutL01Q=; b=LzYyV/QZZc3sH1e7KGUGZXEsHI2keOD53LJXnCoKJSsJx8PT0TqLjlhs pR6kNwefBMlDDX8PTNfa6Ssld8ZRnMY4xbwdZ7waq4sVOyUrwgThSvVHG kI2X8R7dsUBCIyBCURi42nQt9ecL38zGlG7PzgtVYIn4jeN5lC7MBK6em c=; IronPort-SDR: LhN+WuCUR0utaUbkSbqVuYjmhb2X6P9gEQoHKVbHuK6WeSYVaDGlSMQBcTUtdx6mHGX7twf2Sl tjgcW2EmOvsA== X-IronPort-AV: E=Sophos;i="5.69,294,1571702400"; d="scan'208";a="3990731" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 09 Dec 2019 10:24:21 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com (Postfix) with ESMTPS id B074CA0766; Mon, 9 Dec 2019 10:24:20 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 9 Dec 2019 10:24:20 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.100) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 9 Dec 2019 10:24:16 +0000 From: SeongJae Park To: CC: , , , , Subject: Re: Re: [PATCH v3 0/1] xen/blkback: Squeeze page pools if a memory pressure Date: Mon, 9 Dec 2019 11:23:47 +0100 Message-ID: <20191209102347.17337-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 References: <954f7beb-9d40-253e-260b-4750809bf808@suse.com> In-Reply-To: <954f7beb-9d40-253e-260b-4750809bf808@suse.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.100] X-ClientProxiedBy: EX13D22UWC003.ant.amazon.com (10.43.162.250) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Dec 2019 10:39:02 +0100 Juergen wrote: >On 09.12.19 09:58, SeongJae Park wrote: >> Each `blkif` has a free pages pool for the grant mapping. The size of >> the pool starts from zero and be increased on demand while processing >> the I/O requests. If current I/O requests handling is finished or 100 >> milliseconds has passed since last I/O requests handling, it checks and >> shrinks the pool to not exceed the size limit, `max_buffer_pages`. >> >> Therefore, `blkfront` running guests can cause a memory pressure in the >> `blkback` running guest by attaching a large number of block devices and >> inducing I/O. > >I'm having problems to understand how a guest can attach a large number >of block devices without those having been configured by the host admin >before. > >If those devices have been configured, dom0 should be ready for that >number of devices, e.g. by having enough spare memory area for ballooned >pages. As mentioned in the original message as below, administrators _can_ avoid this problem, but finding the optimal configuration is hard, especially if the number of the guests is large. System administrators can avoid such problematic situations by limiting the maximum number of devices each guest can attach. However, finding the optimal limit is not so easy. Improper set of the limit can results in the memory pressure or a resource underutilization. Thanks, SeongJae Park > >So either I'm missing something here or your reasoning for the need of >the patch is wrong. > > >Juergen >