Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp45619pxu; Tue, 24 Nov 2020 18:07:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfJyqZrJQTbrg118GYheoUWsYL8ZU1D06QPypXhuMAfU+Nrrm67zdTArt9L+Uhta1ObLqD X-Received: by 2002:a17:906:2452:: with SMTP id a18mr1241343ejb.66.1606270054966; Tue, 24 Nov 2020 18:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270054; cv=none; d=google.com; s=arc-20160816; b=gyFDzkarjI19jYQs1Q4KL8wHrJPVGMfshNVp/CcUaStt6XjpuV6sL2L7cS8nl7ALjN s1hESm2TfnhrFeO9CTPHvWFrXw4pBmbA1tYo3REL40DFJhzT0fAk+8lUBEjgExZQMiar lVSt5JiHYtMyo0sXJtLzDWFpmQQIsbkxZo5vKFtGdJTazDZ3y+11SBt7S7GLEfbEHi6m hdpheA2uYKRT8CewyjIgVYwHQlOT+8C2ZQA/g843+Bfp8i5ly7DEtcMUhC4QcnPCbzsG Tt2nUPvPKc5/m8W5os1V+xEtWtdkxD/NycjaaAfCRBoTd6nu9eaIc7mSYOvw8Qq86Hz/ j/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=8x+BZXR8lg2/rhoaG+SbxoF0DRXkRBzzQKz64ioG1no=; b=C0zQrRKTyqS5fTA2rnhIfk3BuhjiIDvXbFYExCdxneci+L9sLI+hzO7IWH49VKKkjF VIvXIw/jz4P4aGsZwJpfm177KlS25hRo9isM3CmaLzVma3JfGBt/c71vP0k++KyI5yMe 4yz+uEzl+fXIrYIX78t6ge1hB5A8X+7M4ktaMKi4VXDdpkSZuOYIpbmFjTFgisiC8DWv 4u1Jaoj7uWWQRvltDCSKRDwuwE5b2sfrmIVRABmwy+bQLEoZz26fnF6h6utfrUAisq/1 1DYOIvbfAeZNp+PNHphi5q670/MtM15yjjxk5qkqA30GqR/wpGyBo0qGOiS7vOfhDLV1 6x2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do13si489821ejc.286.2020.11.24.18.07.12; Tue, 24 Nov 2020 18:07:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388444AbgKXNjo (ORCPT + 99 others); Tue, 24 Nov 2020 08:39:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:39120 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387693AbgKXNjo (ORCPT ); Tue, 24 Nov 2020 08:39:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 58507AD1E; Tue, 24 Nov 2020 13:39:43 +0000 (UTC) To: Charan Teja Kalla , Michal Hocko Cc: akpm@linux-foundation.org, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "vinmenon@codeaurora.org" References: <1606140196-6053-1-git-send-email-charante@codeaurora.org> <20201123141354.GQ27488@dhcp22.suse.cz> From: Vlastimil Babka Subject: Re: [PATCH] mm: memory_hotplug: put migration failure information under DEBUG_VM Message-ID: <775a56a9-b301-31bb-cd6d-8b82b1dd4d65@suse.cz> Date: Tue, 24 Nov 2020 14:39:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/23/20 4:10 PM, Charan Teja Kalla wrote: > > Thanks Michal! > On 11/23/2020 7:43 PM, Michal Hocko wrote: >> On Mon 23-11-20 19:33:16, Charan Teja Reddy wrote: >>> When the pages are failed to get isolate or migrate, the page owner >>> information along with page info is dumped. If there are continuous >>> failures in migration(say page is pinned) or isolation, the log buffer >>> is simply getting flooded with the page owner information. As most of >>> the times page info is sufficient to know the causes for failures of >>> migration or isolation, place the page owner information under DEBUG_VM. >> >> I do not see why this path is any different from others that call >> dump_page. Page owner can add a very valuable information to debug >> the underlying reasons for failures here. It is an opt-in debugging >> feature which needs to be enabled explicitly. So I would argue users >> are ready to accept a lot of data in the kernel log. > > Just thinking how frequently failures can happen in those paths. In the > memory hotplug path, we can flood the page owner logs just by making one > page pinned. Say If it is anonymous page, the page owner information So you say it's flooded when page_owner info is included, but not flooded when only the rest of __dump_page() is printed? (which is also not just one or two lines). That has to be very specific rate of failures. Anyway I don't like the solution with arbitrary config option. To prevent flooding we generally have ratelimiting, how about that? Also agreed with Michal that page_owner is explicitly enabled debugging option and if you use it in production, that's rather surprising to me, and possibly more rare than DEBUG_VM, which IIRC Fedora kernels use.