Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7465211pxb; Thu, 18 Feb 2021 10:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwN8nLrFffOS70lfUmYxTSkFjdGluZw8bBWoSRXcU4QLa/aKf+bkX4OLbA9HGVa1xUJY8O3 X-Received: by 2002:aa7:db83:: with SMTP id u3mr1657987edt.265.1613673786485; Thu, 18 Feb 2021 10:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613673786; cv=none; d=google.com; s=arc-20160816; b=y/W3S+NH1WWci4EJ61FaJ9gtlIEIhSInvfq3r3xfzj7nWZWE7p1GD0zEW+vX71F32C s6quwgehXTCZ7wYc6IlIYZWDaHk/cCMhCnXB+kQ7kvQs13dEx+uN6o7Bq/6ItsczkkHo BCfJGLzmveZvwh72+SVZZnLnXgZmErE+ZznjQW57udyna51BulO+znJjSubz35X2+vw2 eCVCUzcsacN5aaUKVrCqMLd6cjHUPFwyjOCtCEEn9+s5fGf7i/vaRXyfYsDPIu1TEUHC /Pc9LbxP7J1dzggIjqzO/xOVvUs0qLJTT2IVOT8zJJPZtwEK2mk5EB0/uhGbURoA+MYI uUKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=Ye8wp6gAsTsRY1pVTSfX6rW4u9/tlEXevai2QqUsZZI=; b=IGvM7fYpkMg9FHdKkciJ05xka00VV6WhVq8FJqR9wf7UlLj1XznFH7od7pWLfFXL2S zMjjqXoe2wY6YSCoPb9S0m2ScwPO15GybMXzcPW+qBNyDmuHfcvEvvdt323U1dUP+79V iJr7oeNSu/57eKqgPX4uYv5dLHlpljL/lC0c683JgkT/AiFxtL4L7+FqP+7cOPDGA+xv JHeJV/xia0iDSuTPz7vf5SR/p0Ldk8pOY7kSvlWNhytPSSDaKs/5yzix4GS17DzMzgFg byoD/n+B5hyEQrBAh37eB58BguuYDR5Sbo/iZaEbokeRQKwzmvbN570AsnQ52lSmE2MY Kmig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jpbijh7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si4317842edq.450.2021.02.18.10.42.40; Thu, 18 Feb 2021 10:43:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jpbijh7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232542AbhBRSmH (ORCPT + 99 others); Thu, 18 Feb 2021 13:42:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233187AbhBRQUJ (ORCPT ); Thu, 18 Feb 2021 11:20:09 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF2AEC061574 for ; Thu, 18 Feb 2021 08:19:53 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id l18so1780751pji.3 for ; Thu, 18 Feb 2021 08:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Ye8wp6gAsTsRY1pVTSfX6rW4u9/tlEXevai2QqUsZZI=; b=jpbijh7rMln+JE6JQGs/aHCbmfNfFD4SH68Dj2gvE1Dp614ZYyS7Zb3y07AmHxJzO2 tKW8NTW0UJ0CsAdVlRIc5DNkku1Ns5pjh2TBhHhIUSPGcD6YN0WuaIWtEdF5xvNq4bI7 syRyo8LSa7T6XHWAaoUa4Uq9hASMByJOqnU6guS3PaQQxX7sgrF+MMrXEGB/Bc2zKogj l5NN205luTtuoxTjvAsN7cmOkvoutM+y1DnpbWM5/ZIdyQwp9q7NbGvQWBHzhhATsyXC hRCYk92raiIGTcNKMmiWwmTt97VziHkTrhhH/wIyxRnyP4ytR0VfK80n86amI45VNwgK t54Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Ye8wp6gAsTsRY1pVTSfX6rW4u9/tlEXevai2QqUsZZI=; b=sRsQ0j7fHPJOjQ9OAy+1k0rFCMleK341ZM0wck6+EbTGhSUB7mm9JwZ83C+QPvjRGp iyiAvvyys+tgKCietXQXq8dzLFFTMLv1kzI/9nipOirby2sdd6hzrm53RhJ60tGLfl2v 1ugghKGHYo9E6I+uVSQ1OuvhfsvipYtupS1XtkLCjwT0dB3yLI4cpswly5Vi0tYmx8Au OPO/hmKnh9kBBPQ45lUMN/r0snVdxDGyQTNgXfknBd3C7yuFeQTH98FdlY3npGJ9DLOJ 9H5bfpfCKdNY3d8AXx1+ajap97wNcIHJApXbwjW8uwdHuLdV34iBLcamsgu06/Gacqah 2HJA== X-Gm-Message-State: AOAM532BgmsxbB9kCWpq3Ar0baR9gX0rPzL4SmdgE9oa1OfnBq8yNzAw vpw45sIfsdzMvwnwgi496l6ML7zxrSU= X-Received: by 2002:a17:90a:883:: with SMTP id v3mr4727363pjc.66.1613665193213; Thu, 18 Feb 2021 08:19:53 -0800 (PST) Received: from google.com ([2620:15c:211:201:157d:8a19:5427:ea9e]) by smtp.gmail.com with ESMTPSA id q15sm5979199pja.22.2021.02.18.08.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 08:19:52 -0800 (PST) Sender: Minchan Kim Date: Thu, 18 Feb 2021 08:19:50 -0800 From: Minchan Kim To: David Hildenbrand Cc: Michal Hocko , Andrew Morton , linux-mm , LKML , joaodias@google.com Subject: Re: [PATCH] mm: be more verbose for alloc_contig_range faliures Message-ID: References: <20210217163603.429062-1-minchan@kernel.org> <2f167b3c-5f0a-444a-c627-49181fc8fe0d@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 10:43:21AM +0100, David Hildenbrand wrote: > On 18.02.21 10:35, Michal Hocko wrote: > > On Thu 18-02-21 10:02:43, David Hildenbrand wrote: > > > On 18.02.21 09:56, Michal Hocko wrote: > > > > On Wed 17-02-21 08:36:03, Minchan Kim wrote: > > > > > alloc_contig_range is usually used on cma area or movable zone. > > > > > It's critical if the page migration fails on those areas so > > > > > dump more debugging message like memory_hotplug unless user > > > > > specifiy __GFP_NOWARN. > > > > > > > > I agree with David that this has a potential to generate a lot of output > > > > and it is not really clear whether it is worth it. Page isolation code > > > > already has REPORT_FAILURE mode which currently used only for the memory > > > > hotplug because this was just too noisy from the CMA path - d381c54760dc > > > > ("mm: only report isolation failures when offlining memory"). > > > > > > > > Maybe migration failures are less likely to fail but still. > > > > > > Side note: I really dislike that uncontrolled error reporting on memory > > > offlining path we have enabled as default. Yeah, it might be useful for > > > ZONE_MOVABLE in some cases, but otherwise it's just noise. > > > > > > Just do a "sudo stress-ng --memhotplug 1" and see the log getting flooded > > > > Anyway we can discuss this in a separate thread but I think this is not > > a representative workload. > > Sure, but the essence is "this is noise", and we'll have more noise on > alloc_contig_range() as we see these calls more frequently. There should be > an explicit way to enable such *debug* messages. alloc_contig_range already has gfp_mask and it respects __GFP_NOWARN. Why shouldn't people use it if they don't care the failure? Semantically, it makes sense to me. About the messeage flooding, shouldn't we go with ratelimiting? I see those two problem are orthgonal.