From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: madvise() not triggering page discard with MMU-notifiers Date: Tue, 19 Aug 2008 22:16:55 -0300 Message-ID: <20080820011655.GA11137@dmt.cnet> References: <48A9F1E9.6040907@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Andrea Arcangeli , kvm-devel To: Anthony Liguori Return-path: Received: from mx1.redhat.com ([66.187.233.31]:51683 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbYHTBTz (ORCPT ); Tue, 19 Aug 2008 21:19:55 -0400 Content-Disposition: inline In-Reply-To: <48A9F1E9.6040907@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Anthony, On Mon, Aug 18, 2008 at 05:04:25PM -0500, Anthony Liguori wrote: > Attached is an updated migration patch. It does not appear, however, > that madvise() is triggering discarding of pages even with an > MMU-notifier enabled kernel. I take it that this is because we're still > holding a reference count to the page when it is in the shadow page > table? Any ETA on when this will change? Shadow references should be dropped via kvm_unmap_rmapp -> rmap_remove. So the symptom is that RSS for the task does not decrease accordingly to the ballooned down size?