Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp16871ybe; Tue, 10 Sep 2019 13:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2Rs2/FMQqUXdYK8nEPiQa75iBH1ZYsWfOa/Ja4+h4oF0o+tDgvhdMw1bufh9uqC7yLpli X-Received: by 2002:a17:906:400c:: with SMTP id v12mr26271839ejj.15.1568148144261; Tue, 10 Sep 2019 13:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568148144; cv=none; d=google.com; s=arc-20160816; b=Bm4wYtIZ8HST0MWJkrPeYAD0hWUiBOZ5D2sCYjGN+WfaOCTIrW+LDocWVPaLfgC3Qk w6oGYdzmbeu/JCPc4MX40MFgxym7rAlcmPVXY3Y/PTt924cZMTm3xytPoGTa85+3idxb COQL+JN8mH//T01LFpiUAymq/eOHRGqRMvBUdoKnnJ5kYeRBxgOtzUfrS35k21tIAs7k qHwM/iTnfVj7tihyTzBHgxu82PS7l+ow7TfpqcPO7rzhSAwFkB0JzjZxATM23IbQTLPL znBsWLwxyYEdRt5zb4BdOrVdCmrdTR0o2X85lntGKklQLkQ/k557pqj9h6SWo4ny/atr qv4g== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=BMZJ3V6098vw13DGcuoSx60EhRSQNFJx01QWuTY2qXM=; b=K7mRYb9KibxHEfDeSn/XvlqFNtlIWq06hyGtl/JV46zv8zy5o4M9KHwTE4Lu1DYi+Z WXGepV1PS5itxxs95k/oVXU8u143ICVxLXhk2wbd6ijl30iHVYvwm+PcDDHCwJEMDguW DRluiHla3lmsIqqA9c5aTLOdh4rNU7TvLyjqM2glTydl1JIR2BPMVoDjz0XiEaXls3Kl EFSMZq/UXlEUDlMLRvnm3tATA58aX5JKKj4QDKroF7PD2f4HNaOj2p7Uzh07UeB48Muo qbmcC0y8XbBj33ADepTVjHi74RMChbu8e1evSD9G/WEAbityjdIbO5dACk+JgmufEhAF YC+Q== 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 jp18si9862578ejb.276.2019.09.10.13.41.59; Tue, 10 Sep 2019 13:42:24 -0700 (PDT) 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 S1726316AbfIJUht (ORCPT + 99 others); Tue, 10 Sep 2019 16:37:49 -0400 Received: from mga12.intel.com ([192.55.52.136]:57487 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfIJUhs (ORCPT ); Tue, 10 Sep 2019 16:37:48 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 13:37:48 -0700 X-IronPort-AV: E=Sophos;i="5.64,490,1559545200"; d="scan'208";a="175432349" Received: from ahduyck-desk1.jf.intel.com ([10.7.198.76]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 13:37:48 -0700 Message-ID: <9b1c34e8b846e2d9ede6879bce47c7d704c89bd3.camel@linux.intel.com> Subject: Re: [PATCH v9 0/8] stg mail -e --version=v9 \ From: Alexander Duyck To: Michal Hocko , Alexander Duyck Cc: virtio-dev@lists.oasis-open.org, kvm list , "Michael S. Tsirkin" , Catalin Marinas , David Hildenbrand , Dave Hansen , LKML , Matthew Wilcox , linux-mm , Andrew Morton , will@kernel.org, linux-arm-kernel@lists.infradead.org, Oscar Salvador , Yang Zhang , Pankaj Gupta , Konrad Rzeszutek Wilk , Nitesh Narayan Lal , Rik van Riel , lcapitulino@redhat.com, "Wang, Wei W" , Andrea Arcangeli , ying.huang@intel.com, Paolo Bonzini , Dan Williams , Fengguang Wu , "Kirill A. Shutemov" Date: Tue, 10 Sep 2019 13:37:47 -0700 In-Reply-To: <20190910180026.GE4023@dhcp22.suse.cz> References: <20190907172225.10910.34302.stgit@localhost.localdomain> <20190910124209.GY2063@dhcp22.suse.cz> <20190910144713.GF2063@dhcp22.suse.cz> <20190910175213.GD4023@dhcp22.suse.cz> <20190910180026.GE4023@dhcp22.suse.cz> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-09-10 at 20:00 +0200, Michal Hocko wrote: > On Tue 10-09-19 19:52:13, Michal Hocko wrote: > > On Tue 10-09-19 09:05:43, Alexander Duyck wrote: > [...] > > > All this is providing is just a report and it is optional if the > > > hypervisor will act on it or not. If the hypervisor takes some sort of > > > action on the page, then the expectation is that the hypervisor will > > > use some sort of mechanism such as a page fault to discover when the > > > page is used again. > > > > OK so the baloon driver is in charge of this metadata and the allocator > > has to live with that. Isn't that a layer violation? > > Another thing that is not clear to me is how these marked pages are > different from any other free pages. All of them are unused and you are > losing your metadata as soon as the page gets allocated because the page > changes its owner and the struct page belongs to it. Really they aren't any different then other free pages other than they are marked. Us losing the metadata as soon as the page is allocated is fine as we will need to re-report it when it is returned so we no longer need the metadata once it is allocated.