Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1324861ybv; Thu, 6 Feb 2020 02:02:08 -0800 (PST) X-Google-Smtp-Source: APXvYqw3xjfubnJ1gt8vgLYE2F/1W4Z6lxbFOpVqnVmSygWsoOsJG78DO4IV3KfwUiv4h5tMrplC X-Received: by 2002:a9d:66d1:: with SMTP id t17mr2011583otm.233.1580983327975; Thu, 06 Feb 2020 02:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580983327; cv=none; d=google.com; s=arc-20160816; b=J9g1OXhmqfzL0fUxXn3+0Wo7QYv+f/R1iIMr6CH2gj6t5LheI1Luh6kDrhRhMAe+vE N0ip32fsvzqJ88MeBYBWNhT/xLpHQgo0/+QmLQKAOPz8ibX6QcxmHhrsCxdzTBRtLxgK 2BViqheuXGOXYXZCS+psHp+Ff9Y5JDF2xsFeq4dNiHvGHkUnufXHbxMR+7YxfeD7ktRA 3qfukybVxh+HMZQizwzQ5MpkqniTdVHZU6Ae/HNo5mpB3X3c1K5iDfUjI5lMBS2luBOb vXJ85aj13uENHiqwuj5Ay7UBohlrK9Me6kVL5+G4XV0eMT2HQ4NFXIdFi8SlLUxoaF62 elCg== 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=zJcP54qkbSuQetlexOvSoyLDbxarww6649FNEoPlNuI=; b=fg2rejvdM4SNABmdxm0Vg/Z1H3SPObazhM3+xnGxClKppvzhNdFM1kGeKDXAi8I/xQ ybcn1H8OvjclcYxBss27FE8Ab5Pi/mpx3zNAwlELQozsZesanKUwYlsa20UZjA45k5XG /sWyyBWYw8DNCNYto0fixvymluFFj78fVK4+D4SnrFsvoKtNLUpBhcvI9Xf2bi8L1Fy/ Aln8vYE5EuMEJBlxKCxWXTHbLkJmrz11s/dpJOzf2yiffllCwohd2W1k4D7cU0BO6VJD 9ABfQQrpjbbmYoX3ywlzQDtn6fGdEdMdQOGNLt0kTHLpgwyEYnO3GCSM/0eBMaSuuFPE q0ZA== 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 r1si1466832ota.259.2020.02.06.02.01.56; Thu, 06 Feb 2020 02:02:07 -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 S1728265AbgBFJoU convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Feb 2020 04:44:20 -0500 Received: from mga12.intel.com ([192.55.52.136]:40881 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgBFJoU (ORCPT ); Thu, 6 Feb 2020 04:44:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2020 01:44:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,409,1574150400"; d="scan'208";a="311645461" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 06 Feb 2020 01:44:19 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 6 Feb 2020 01:44:19 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.126]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.225]) with mapi id 14.03.0439.000; Thu, 6 Feb 2020 17:44:17 +0800 From: "Wang, Wei W" To: David Hildenbrand , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" CC: "tysand@google.com" , "mst@redhat.com" , "alexander.h.duyck@linux.intel.com" , "rientjes@google.com" , "mhocko@kernel.org" , "namit@vmware.com" , "penguin-kernel@I-love.SAKURA.ne.jp" 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/hsfZBMQqgNWrYAgACKBvD//3w6AIAAhvTQ Date: Thu, 6 Feb 2020 09:44:17 +0000 Message-ID: <286AC319A985734F985F78AFA26841F73E42397C@shsmsx102.ccr.corp.intel.com> References: <1580976107-16013-1-git-send-email-wei.w.wang@intel.com> <6ccbfeea-de66-20d7-0e08-a5834a3c3d3f@redhat.com> <286AC319A985734F985F78AFA26841F73E4238BA@shsmsx102.ccr.corp.intel.com> <80f975c9-5f18-a613-6412-292dafd34dfe@redhat.com> In-Reply-To: <80f975c9-5f18-a613-6412-292dafd34dfe@redhat.com> 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 Thursday, February 6, 2020 5:32 PM, David Hildenbrand wrote: > > If the page cache is empty, a drop_slab() will deflate the whole balloon if I > am not wrong. > > Especially, a echo 3 > /proc/sys/vm/drop_caches > > will first drop the page cache and then drop_slab() Then that's the problem of "echo 3 > /proc/sys/vm/drop_cache" itself. It invokes other shrinkers as well (if considered an issue), need to be tweaked in the mm. Best, Wei