Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp521964ybe; Wed, 4 Sep 2019 03:38:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+kY4ua8ErGw+SFpIkIfh33Ak7LF22+kGn6rC+Rpo5xhy0iXPsYXAzJ55TiS/CQpcaHAtV X-Received: by 2002:a63:d30f:: with SMTP id b15mr34048943pgg.341.1567593504742; Wed, 04 Sep 2019 03:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567593504; cv=none; d=google.com; s=arc-20160816; b=YTGnT5fSzP04C8xsZlcDauuH2HoWhH89VMgpVZI7XVbWp08YtdiEtcJsOUEx8DZToK opa80kg6euLdMcmicR4J1/lV7H/cCV0Awsh1QveJMF70QpROkv9mzODkvp8wbLamQmze rD359ReLtHVTqv3A0UfCHvxZOmLdtSmGP+z07ki1kgffCXXhiVe2fLN1hn0Lb+PX2CQz jkGNHe3qR+bE8rvMnNAfK+Vd2i0a7iKWx6LoAacw1GfccTuhbI61n6kIGqWrgbhruB6f ImJTmuxWx7eGy3rerQfI9JPv6C3/Hecz8vwLSFzak6tZVjwZj6B+MYD5MaFKX9DpYLgm 1Xuw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3U+t4+2zJKbuXz99iZtKQog9/vhKyWkpmsxRg7JGQDE=; b=M/Tfz1VNaAc4/1CnKM3tuWxlTpc6W+43goV0uO3+5TLAfxU0zOH2C3y3HbfzWaIyo5 CRNqDMlhnKYr0ltTQM4NNTCmkMBkKAcxlQsVed25cMD4Hm9oT3cHe306mPI6+vP0lZLT MLMEbaRjveChdRFXLks3P1b6P4XT3Es8fhLG4SYt30BEx6KdKRUPFGkAng6cZrWDhrMf nGeCFgbgCtDTJM/Chj9mJJ5nT+Crxk49mn07UHtfcxD5ru4Aj1gj84pPM3whNI/rHKG6 JNrgAi5fwRV4+SP20L4LmwSILolvmIkEBg5SdE6k0T9HPz6ChpqSAETuvyNbfsKi655J 8OzQ== 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 p19si2372181plr.127.2019.09.04.03.38.08; Wed, 04 Sep 2019 03:38: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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727929AbfIDKhW (ORCPT + 99 others); Wed, 4 Sep 2019 06:37:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41778 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbfIDKhW (ORCPT ); Wed, 4 Sep 2019 06:37:22 -0400 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5837D8F4FD for ; Wed, 4 Sep 2019 10:37:21 +0000 (UTC) Received: by mail-qt1-f197.google.com with SMTP id b1so394730qtj.9 for ; Wed, 04 Sep 2019 03:37:21 -0700 (PDT) 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:content-transfer-encoding :in-reply-to; bh=3U+t4+2zJKbuXz99iZtKQog9/vhKyWkpmsxRg7JGQDE=; b=c3PfjT9hMCfsgATxGdsji6kyZbweI+DsU54Japl5Cxm4mjuiO1AQgO1oN/cqLywc0O lpU9BVo5YYXFko++hIxCCixrSjOuAcqGS2ft8z1werhjDYxpzuVOBBJTiKE0k80af2oy cYge7hPOdGesAZYvVPB+NP4rD8dsDmunLfs1wMfpM0SHivj1LWrGuXIAZewEB/8iLJWZ x0OJ6OzLF9m9hzFb38x4XT83hKUiuLEaZLnf432/11iKmT7twhDVfVaDC5hFRSEFfXKp Rk6xMQTLftBaAI72xlj+Asf2AJ0ouUha30aUUlr2U9bbiS6IzCrhDOcbftPIYfwGab7F nX9Q== X-Gm-Message-State: APjAAAVML++R03lP4njekHJV58zv6RLS6jyx7+zmZOxr9tN+EV5zwPXT q1W13TtVyvOZrUI5GnvWF55aVG5wQtYQf0vtY1YVpkUYNexk3O6Os+QoP1J4skI5yaK0/OgxMnO KzJLCMWcRKKW7N23fAFOSqrWH X-Received: by 2002:a37:4a88:: with SMTP id x130mr39287227qka.501.1567593440685; Wed, 04 Sep 2019 03:37:20 -0700 (PDT) X-Received: by 2002:a37:4a88:: with SMTP id x130mr39287214qka.501.1567593440533; Wed, 04 Sep 2019 03:37:20 -0700 (PDT) Received: from redhat.com (bzq-79-176-40-226.red.bezeqint.net. [79.176.40.226]) by smtp.gmail.com with ESMTPSA id e7sm4085888qto.43.2019.09.04.03.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 03:37:19 -0700 (PDT) Date: Wed, 4 Sep 2019 06:37:15 -0400 From: "Michael S. Tsirkin" To: Nadav Amit Cc: Jason Wang , "virtualization@lists.linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , David Hildenbrand Subject: Re: [PATCH] mm/balloon_compaction: suppress allocation warnings Message-ID: <20190904063703-mutt-send-email-mst@kernel.org> References: <20190820091646.29642-1-namit@vmware.com> <5BBC6CB3-2DCD-4A95-90C9-7C23482F9B32@vmware.com> <85c72875-278f-fbab-69c9-92dc1873d407@redhat.com> <2aa52636-4ca7-0d47-c5bf-42408af3ea0f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 07:44:33PM +0000, Nadav Amit wrote: > > On Aug 21, 2019, at 12:13 PM, David Hildenbrand wrote: > > > > On 21.08.19 18:34, Nadav Amit wrote: > >>> On Aug 21, 2019, at 9:29 AM, David Hildenbrand wrote: > >>> > >>> On 21.08.19 18:23, Nadav Amit wrote: > >>>>> On Aug 21, 2019, at 9:05 AM, David Hildenbrand wrote: > >>>>> > >>>>> On 20.08.19 11:16, Nadav Amit wrote: > >>>>>> There is no reason to print warnings when balloon page allocation fails, > >>>>>> as they are expected and can be handled gracefully. Since VMware > >>>>>> balloon now uses balloon-compaction infrastructure, and suppressed these > >>>>>> warnings before, it is also beneficial to suppress these warnings to > >>>>>> keep the same behavior that the balloon had before. > >>>>> > >>>>> I am not sure if that's a good idea. The allocation warnings are usually > >>>>> the only trace of "the user/admin did something bad because he/she tried > >>>>> to inflate the balloon to an unsafe value". Believe me, I processed a > >>>>> couple of such bugreports related to virtio-balloon and the warning were > >>>>> very helpful for that. > >>>> > >>>> Ok, so a message is needed, but does it have to be a generic frightening > >>>> warning? > >>>> > >>>> How about using __GFP_NOWARN, and if allocation do something like: > >>>> > >>>> pr_warn(“Balloon memory allocation failed”); > >>>> > >>>> Or even something more informative? This would surely be less intimidating > >>>> for common users. > >>> > >>> ratelimit would make sense :) > >>> > >>> And yes, this would certainly be nicer. > >> > >> Thanks. I will post v2 of the patch. > > > > As discussed in v2, we already print a warning in virtio-balloon, so I > > am fine with this patch. > > > > Reviewed-by: David Hildenbrand > > Michael, > > If it is possible to get it to 5.3, to avoid behavioral change for VMware > balloon users, it would be great. > > Thanks, > Nadav Just back from vacation, I'll try.