Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3437259ybv; Sun, 9 Feb 2020 23:27:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyuENIurvAcalXM+F9oehTeu/pf9+6WH0f7PeQ5wF2tLrrhyuA3GhvfPW8aKTnR4S1H1VaF X-Received: by 2002:a05:6830:114c:: with SMTP id x12mr111024otq.324.1581319668594; Sun, 09 Feb 2020 23:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581319668; cv=none; d=google.com; s=arc-20160816; b=JshqFlkUuYVmrc0rmw9q5oALJiv6FOSKiqxWaInY+dkll0t1V0PcMneLViqjZHFifx EXSXk7b/nWc8BX2PArkoCEA2MUsyBbNh1ZyPVfc2/k3SkpDNqC4/oNf7fdg26lFc52by ZKDGPb+eQkjKXxvZ2E+CnUbTLVc62CzHFi325xb+FB+PrD7DL/gkm4hZ9NrvdDLUz9Y+ mtweCUvRAOr2TP9u7DNpGrHktSsZsRcGtfwnMCfc9d9Ff7p0WFP9NfQ6IKBTycqON+1q t1RRBT+m4yG66yMfAEGY4Ok0JJO9IFvGb6++r3OE7aD3FAfVZQMCKSkoGqSt93tMKSPI H+sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=2wWTY6bNVtQyORuHdk+C7BKG/gO3kZ1T8YidjS5EaEY=; b=TVQrZvCPCscdtUVvn//JmL4dZSYRddFFPH3maJRcFPxWKslAzxaFbKC2CiRQExwYvp xkOmNdQlXu1xcdyhGpWAcOAhVw60xNRFSESmq1diVC3gfHzHTHFEXNC6RrRn6Rq7eq7L TQFnI9qAMwF2dpM5pllUODnOqEYqSYQwnYPNcSQmxxjp5+a/H5sSlOTRsrcfpBYHj3Zx mguY/G5Gd4Kqb2TCg65de9mYzjiTuchx75SvZVBl8Pt1TP+omXINTmFGZsQjl60hX6YM CqF763fWugIIfQ/wmi7BRG6UNshm7eH8gHNcrfGl3fDQYAKcJXSO9GKWY5mirVwsWqt+ 1RIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si7195824oij.35.2020.02.09.23.27.37; Sun, 09 Feb 2020 23:27:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726796AbgBJH13 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Feb 2020 02:27:29 -0500 Received: from mga12.intel.com ([192.55.52.136]:63909 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbgBJH13 (ORCPT ); Mon, 10 Feb 2020 02:27:29 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2020 23:27:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,424,1574150400"; d="scan'208";a="346993403" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 09 Feb 2020 23:27:28 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 23:27:27 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 23:27:27 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.126]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.46]) with mapi id 14.03.0439.000; Mon, 10 Feb 2020 15:27:25 +0800 From: "Wang, Wei W" To: Tetsuo Handa CC: "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "tysand@google.com" , "mst@redhat.com" , "david@redhat.com" , "alexander.h.duyck@linux.intel.com" , "rientjes@google.com" , "mhocko@kernel.org" , "namit@vmware.com" Subject: RE: [PATCH RFC] virtio_balloon: conservative balloon page shrinking Thread-Topic: [PATCH RFC] virtio_balloon: conservative balloon page shrinking Thread-Index: AQHV3Mq/N+pHUOUW3kyXc/hsfZBMQqgQuBMAgAL6SVD//5pYgIAAuzDw Date: Mon, 10 Feb 2020 07:27:25 +0000 Message-ID: <286AC319A985734F985F78AFA26841F73E42AD6D@shsmsx102.ccr.corp.intel.com> References: <345addae-0945-2f49-52cf-8e53446e63b2@i-love.sakura.ne.jp> <286AC319A985734F985F78AFA26841F73E429F32@shsmsx102.ccr.corp.intel.com> <202002100357.01A3vNNU089831@www262.sakura.ne.jp> In-Reply-To: <202002100357.01A3vNNU089831@www262.sakura.ne.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, February 10, 2020 11:57 AM, Tetsuo Handa wrote: > Then, "node-A's NR_FILE_PAGES is already 0 and node-B's NR_FILE_PAGES is > not 0, but allocation request which triggered this shrinker wants to allocate > from only node-A" > would be confused by this change, for the pagecache pages for allocating > thread's interested node are already depleted but the balloon cannot shrink > when it should because the pagecache pages for allocating thread's > uninterested nodes are not yet depleted. The existing balloon isn't numa aware. "but the balloon cannot shrink " - even we let balloon to shrink, it could shrink pages from the uninterested node. When we have a numa aware balloon, we could further update the shrinker to check with the per node counter , node_page_state(NR_FILE_PAGES). > > > > Well, my comment is rather: "Do not try to reserve guest's memory. In other > words, do not try to maintain balloons on the guest side. Since host would > be able to cache file data on the host's cache, guests would be able to > quickly fetch file data from host's cache via normal I/O requests." ;-) Didn't this one. The discussion was about guest pagecache pages v.s. guest balloon pages. Why is host's pagecache here? Best, Wei