From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759223Ab2HWSue (ORCPT ); Thu, 23 Aug 2012 14:50:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22451 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754566Ab2HWSub (ORCPT ); Thu, 23 Aug 2012 14:50:31 -0400 Message-ID: <50366F72.3040700@redhat.com> Date: Thu, 23 Aug 2012 13:59:14 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Rafael Aquini CC: "Michael S. Tsirkin" , "Paul E. McKenney" , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Rusty Russell , Mel Gorman , Andi Kleen , Andrew Morton , Konrad Rzeszutek Wilk , Minchan Kim Subject: Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility References: <20120822000741.GI9027@redhat.com> <20120822011930.GA23753@t510.redhat.com> <20120822093317.GC10680@redhat.com> <20120823021903.GA23660@x61.redhat.com> <20120823100107.GA17409@redhat.com> <20120823121338.GA3062@t510.redhat.com> <20120823123432.GA25659@redhat.com> <20120823130606.GB3746@t510.redhat.com> <20120823135328.GB25709@redhat.com> <20120823162504.GA1522@redhat.com> <20120823172844.GC10777@t510.redhat.com> In-Reply-To: <20120823172844.GC10777@t510.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/23/2012 01:28 PM, Rafael Aquini wrote: > What about keep a conter at virtio_balloon structure on how much pages are > isolated from balloon's list and check it at leak time? > if the counter gets > 0 than we can safely put leak_balloon() to wait until > balloon page list gets completely refilled. We only have to wait if we failed to leak enough pages, and then only for as many additional pages as we require.