Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2738420imj; Mon, 18 Feb 2019 11:14:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IaPR+ah8HJIpSdLdT1WCx5XGWUZ2AjXDQAtw6mbpEnACUwSqxmylAP3NoWkwutBmiWsmEKj X-Received: by 2002:a62:76d4:: with SMTP id r203mr25989797pfc.15.1550517259379; Mon, 18 Feb 2019 11:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550517259; cv=none; d=google.com; s=arc-20160816; b=PpNzm2b0r5Z7jnP+O8NeO8AhiPBKTp9aDjH/OU2yO7xNenzyjkCJidQWs/L9SpGvKh Yj96AFMZeVWIiRwF7aJnzcSf5t2vBG0OAWgRbQb3WUmtrqWHFG7OoU74hHzX039kDBxD mekyf/zoG6FXTg2k+afPPjFo0a6/d1eXoYyGDzMdOF5znNU2t8kgd+ZyPcgk2hUfPYo6 FeCrYgBrvb0jcR8PusFKfhwSM8y1R98bqJKcrSp4HDXyWPBwOF1NLYWXZ1kZ1LvsMkP1 svbmrCAY+CvFwmLEwq76u8s5oiMmri+sQQa7ANVFBzU7VZvmahV8QuOXov458DdR+E8W ARBQ== 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=n+lUg0FjYKjVVNOiBok5yuGwwfOjuaZM6OCfyQUBVQU=; b=HGTgObTUsFwqWSxloNE6iM76Mdrj/nA5VlRsJPUY9////Wd9wbJiueZFNW3d7iF+I/ ki31fRnhxIEJHAh6kIYUy0E0gdRcv1rpAAJtghL4xfA8Hm0svXkQN431u+hzoTL817so kx6KPv9OMmPHH3LdmcJiBbKunfo5PLzzpKVkVMuCp63nboV3BAbKBV9l2RLx9+9nH09+ vW9ngoX2qpoOLNz3U/k3PobpLuAPR12W+arUarlImeazMSaQiScw1hq4bA65OeqwfRyt dtsOkfB7E+a+Ub2gRp2JIFWIHnWEprMVvp5PsbOavhy3F7rmNFH1utgpthvHO89H7lSx kwlg== 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 35si13836809ple.125.2019.02.18.11.14.04; Mon, 18 Feb 2019 11:14:19 -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 S2390328AbfBRSBq (ORCPT + 99 others); Mon, 18 Feb 2019 13:01:46 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:35642 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389649AbfBRSBp (ORCPT ); Mon, 18 Feb 2019 13:01:45 -0500 Received: by mail-qk1-f196.google.com with SMTP id w204so10505653qka.2 for ; Mon, 18 Feb 2019 10:01:45 -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=n+lUg0FjYKjVVNOiBok5yuGwwfOjuaZM6OCfyQUBVQU=; b=U6g5U+HhqHa1d4/Z3CEe0eiQ5hSCRFahP6/l8oCu3X006ZJ9QCuFjpcKDOC6SNA/Il C8faS8yD/u+BN18Xw+0pFR7GxaN0x2/mvIqTgYG1b+uOVjS1y7OZvsObSeTozAhfVKLG VIOIwGeptjNyRA8/MlQ6Slf6hUdxf+VjbNTNd8I6V4glkwHmsw6/MWxT36z0kRfrCcTd Zzln1l7rFAUs4xXjDDfSL7nELMoIGMtN/gbNK2orEi1+iY+5hd8wGtQa/QbKa7tjqPhd x7uiGPl77I8OtuFARF/0/zlet4Bd3L5Q92B06cJA1tuE6wOkZEyfbfKQkCw1LcEiR6tP BYkQ== X-Gm-Message-State: AHQUAubKb/YlVNS7p18h7CgBWwnl6GNFhLeS7r7xxYcqrRuWjDeWyeXZ 3LAtDyHJbTMlBUB3BeK0uY74WA== X-Received: by 2002:a37:80b:: with SMTP id 11mr17314698qki.131.1550512904816; Mon, 18 Feb 2019 10:01:44 -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 z63sm7503030qkc.42.2019.02.18.10.01.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 10:01:43 -0800 (PST) Date: Mon, 18 Feb 2019 13:01:41 -0500 From: "Michael S. Tsirkin" To: Alexander Duyck Cc: David Hildenbrand , Nitesh Narayan Lal , kvm list , LKML , Paolo Bonzini , lcapitulino@redhat.com, pagupta@redhat.com, wei.w.wang@intel.com, Yang Zhang , Rik van Riel , dodgen@google.com, Konrad Rzeszutek Wilk , dhildenb@redhat.com, Andrea Arcangeli Subject: Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting Message-ID: <20190218125552-mutt-send-email-mst@kernel.org> References: <20190204201854.2328-1-nitesh@redhat.com> <20190218114601-mutt-send-email-mst@kernel.org> <44740a29-bb14-e6e6-2992-98d0ae58e994@redhat.com> 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 Mon, Feb 18, 2019 at 09:31:13AM -0800, Alexander Duyck wrote: > > Optimization of space comes with a price (here: execution time). > > One thing to keep in mind though is that if you are already having to > pull pages in and out of swap on the host in order be able to provide > enough memory for the guests the free page hinting should be a > significant win in terms of performance. Absolutely and I think that's the point of the hinting right? To cut out swap/IO on the host. -- MST