Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2158714imj; Fri, 8 Feb 2019 13:39:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IZdF9m4B+KrWHnuatQUOrQ9FZyph76Jsy+7v2KIKnX9i+jUcqadPOVaLOt3YWHv4f0KdVc2 X-Received: by 2002:a17:902:988b:: with SMTP id s11mr8185305plp.162.1549661987763; Fri, 08 Feb 2019 13:39:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549661987; cv=none; d=google.com; s=arc-20160816; b=045HwZ3EIOvAIeUmA+OdtwS1okJriPKmCfZvfTGlz2xYh5IoiFK09qCp4/8cJijUJN dYbzD/fn7cUQgf7PITIU9GqDc0+38ftqo8PIpgJ2GejjMJ0q3ZWJ3hhGYIFQI2zcAGRS ISFKiqCvSmB/LYm8AOQwh4a9iGB/UCBt+1km+ew9U2qAxDv9fYBqvP6QpPgD9KBbQ8jQ H0Xw+eVZDW8+1WX9JjnrGjFUPzNPtwMfRGJEXH6xe2YKdhAXldGgY0RYH8X2zm6P1Xen lhOf8uuvaBhP6AfzSqc9nhVMAOPeEwQ/4EN6jB8zVq7SQbJueiL0/UyqZMTXEPOF7Vyu 7svQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=G5Pv6iBpz4UAFMvsa+Z4jhDBDBBgEdM56DJ6JZQc9+w=; b=WHcFP1xWGIzXGUJVK5j8hi95X4QoHODUPRV2NPDwAmKFOpn3okzLm3ezBLDFWKNxxs VJigRZjSS3de88S2MeC7OipmaZuDDwG30wFVunIkMwDDq7eKyAr53FuwIVNuwfSZQoNv jVF2IapqvEdNiCmQsAi32okGKMIx+naEJ8AXnqSzcy1i4pPxEq+tBhICHtNRPZgj2lxu 7DFrSfxaRzV+TEd7tqDNFjdOPFACzRSe0b0isWMdU0Wbdl/y7lP9Q8AdnTNLtfPo0yTg hIEg615KiRLvbfRZtqSCLesnGX5N7MkT15tGV4Nzzs3we8oFJtfU+VE7UmWYTbQ2FPe6 /Grw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si3126445plk.328.2019.02.08.13.39.31; Fri, 08 Feb 2019 13:39:47 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbfBHViO (ORCPT + 99 others); Fri, 8 Feb 2019 16:38:14 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:39521 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfBHViN (ORCPT ); Fri, 8 Feb 2019 16:38:13 -0500 Received: by mail-qt1-f195.google.com with SMTP id o6so5669600qtk.6 for ; Fri, 08 Feb 2019 13:38:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=G5Pv6iBpz4UAFMvsa+Z4jhDBDBBgEdM56DJ6JZQc9+w=; b=YCjvGMP1r2AF9hvqMUm7XtbZ9NVjYsHKiUQdecziUM8RHrGZoI3exiQ0UDHHnamBhN nKJmBxOqInJ0rXJ+pFpM/I51tS3mx1UtdHaB6RpYorQkEWHBuZpjv1YYueNf85aOT3wX Be9ej7jbLTdFihdKCNii/Ptl4t/nzaEjmbLTWpcCqaFimMnQ5aDZyPSH0QtIdljgcya/ Fw/e0riw3df5UIe3M4CSqK0rYAHgs4KWPOsjr2g9XRvNaXGp6Ox68MKuQ9GkOVTell/v zH6Qn87sqMMx2uYWxuA4LPhNZQWySLg6UIGTttFZDeNiTcCGakPCVIc8Vh+Yn7nQfGL3 OchQ== X-Gm-Message-State: AHQUAuZUwlrF9Zc9eSapFSHFhOJSSPT9PiKsqFaQs8M8G+v6kHemdBH4 RauUIrdvOVkKZbfcz2CVr3RbDA== X-Received: by 2002:ad4:4182:: with SMTP id e2mr4308819qvp.9.1549661892895; Fri, 08 Feb 2019 13:38:12 -0800 (PST) Received: from redhat.com (pool-173-76-246-42.bstnma.fios.verizon.net. [173.76.246.42]) by smtp.gmail.com with ESMTPSA id y33sm4352864qty.11.2019.02.08.13.38.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 13:38:12 -0800 (PST) Date: Fri, 8 Feb 2019 16:38:09 -0500 From: "Michael S. Tsirkin" To: Nitesh Narayan Lal Cc: Alexander Duyck , kvm list , LKML , Paolo Bonzini , lcapitulino@redhat.com, pagupta@redhat.com, wei.w.wang@intel.com, Yang Zhang , Rik van Riel , david@redhat.com, dodgen@google.com, Konrad Rzeszutek Wilk , dhildenb@redhat.com, Andrea Arcangeli Subject: Re: [RFC][Patch v8 6/7] KVM: Enables the kernel to isolate and report free pages Message-ID: <20190208163601-mutt-send-email-mst@kernel.org> References: <20190204201854.2328-1-nitesh@redhat.com> <20190204201854.2328-7-nitesh@redhat.com> <20190205153607-mutt-send-email-mst@kernel.org> <20190205165514-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 03:41:55PM -0500, Nitesh Narayan Lal wrote: > >> I am also planning to try Michael's suggestion of using MAX_ORDER - 1. > >> However I am still thinking about a workload which I can use to test its > >> effectiveness. > > You might want to look at doing something like min(MAX_ORDER - 1, > > HUGETLB_PAGE_ORDER). I know for x86 a 2MB page is the upper limit for > > THP which is the most likely to be used page size with the guest. > Sure, thanks for the suggestion. Given current hinting in balloon is MAX_ORDER I'd say share code. If you feel a need to adjust down the road, adjust both of them with actual testing showing gains. -- MST