Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5069824ybv; Tue, 11 Feb 2020 08:37:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzlJUgfvdXDmfj88pKyewwFSFWSPo87xJLgXiEaVQUW667AUC1+XUOH4sIbXYdFD5E4+MtQ X-Received: by 2002:a05:6808:611:: with SMTP id y17mr3292226oih.146.1581439069519; Tue, 11 Feb 2020 08:37:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581439069; cv=none; d=google.com; s=arc-20160816; b=0Lth+7GLz5KDknaGkiSsCJKmTz0a3gmH9jnSiaAHyz0hBlEVp92Gx8G0O+3/dyz15u GChmBTheXSUV5XihUSFxY6MzUIsV0fUDE4g9SbrYg+9t3GY8xPQ+/ffT9priQhgmGs/h 1ycyTZcew7F/CQ470DVNAzrvE+W2z419lewnZkw+F7wFAKi3bQoatfSvK4qsX9120t4b A1RHbmZ7+EFs3J0oDEHD4l3zl9vcTJsOpG/Q8WzJ3J3m4ir54t4JPvr2uGSmlUgaOV34 353VHRiM2EMrbho4wQ4trr/cNnFy6dq0pijC2rQm3xveipAMZTYC6/j9qmChKwu4p+sJ UaOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bDmdI4LQLyi/aCxiZTQcw62d8hDRR485wTuW0hTkJfA=; b=Z9lgdHsrc5IQbPz4bt/BJ4kGbYrreIoKF0mpIBdJL1C963DgqjaMMuTNimn/K4+XXd U0/NhcgHltgQZ2HMwE8NxDA1Hu05EqDxed0PgebXEs9j6FQJaUOeu/+6N2bq1XYc8VTE HKf1yfnBrUzNLiPZmau/c2/fAmNJJwHrqW/wJy8E2S3AyKV2SiTHHZgWIQRiMY40b/09 gKPl8KqMmUjA1mInMYVk68j6TCxKcxCi15bIQRg/BIWBiytCDSImt6gVv9M6O3C9hRcI NXEymjo0wXaou1UMx1QEirMiGaZ4nhoNTMrV9EHyUQv4DOGZ4S9S6xbUAOKPu/+l/304 Cpcw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si2247158otq.223.2020.02.11.08.37.37; Tue, 11 Feb 2020 08:37:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729782AbgBKOUk (ORCPT + 99 others); Tue, 11 Feb 2020 09:20:40 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:57047 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728124AbgBKOUk (ORCPT ); Tue, 11 Feb 2020 09:20:40 -0500 Received: from fsav105.sakura.ne.jp (fsav105.sakura.ne.jp [27.133.134.232]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 01BEIxQr052722; Tue, 11 Feb 2020 23:18:59 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav105.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav105.sakura.ne.jp); Tue, 11 Feb 2020 23:18:59 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav105.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 01BEIxhe052716 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Feb 2020 23:18:59 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH RFC] virtio_balloon: conservative balloon page shrinking To: "Wang, Wei W" 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" References: <345addae-0945-2f49-52cf-8e53446e63b2@i-love.sakura.ne.jp> <286AC319A985734F985F78AFA26841F73E429F32@shsmsx102.ccr.corp.intel.com> <202002100357.01A3vNNU089831@www262.sakura.ne.jp> <286AC319A985734F985F78AFA26841F73E42AD6D@shsmsx102.ccr.corp.intel.com> From: Tetsuo Handa Message-ID: <51306985-90ac-6e6b-d085-4e076698c48c@i-love.sakura.ne.jp> Date: Tue, 11 Feb 2020 23:18:56 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <286AC319A985734F985F78AFA26841F73E42AD6D@shsmsx102.ccr.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/02/10 16:27, Wang, Wei W wrote: >> 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? I'm expecting a mode: "Guests should try to minimize pagecache pages (and teach host to treat reclaimed pages as if POSIX_FADV_DONTNEED) instead of managing guest balloon pages". In other words, as if while :; sleep 5; echo 1 > /proc/sys/vm/drop_caches; done is running in the guest's kernel. And as if echo 2 > /proc/sys/vm/drop_caches is triggered in the guest's kernel when host requested guests to reclaim memory. No long-life balloons. Guest balloons do not need to care about NUMA. Just leave the management of pagecache pages to the host.