From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80056CA9EBB for ; Fri, 25 Oct 2019 01:38:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2B1922064A for ; Fri, 25 Oct 2019 01:38:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B1922064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 899626B0003; Thu, 24 Oct 2019 21:38:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 84A4F6B0006; Thu, 24 Oct 2019 21:38:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7379F6B0007; Thu, 24 Oct 2019 21:38:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0138.hostedemail.com [216.40.44.138]) by kanga.kvack.org (Postfix) with ESMTP id 4D2976B0003 for ; Thu, 24 Oct 2019 21:38:08 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id C0E258249980 for ; Fri, 25 Oct 2019 01:38:07 +0000 (UTC) X-FDA: 76080596214.11.base90_46ba89d420d15 X-HE-Tag: base90_46ba89d420d15 X-Filterd-Recvd-Size: 2659 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Fri, 25 Oct 2019 01:38:05 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2019 18:38:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,226,1569308400"; d="scan'208";a="188774054" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.113]) by orsmga007.jf.intel.com with ESMTP; 24 Oct 2019 18:38:01 -0700 Date: Fri, 25 Oct 2019 09:38:01 +0800 From: Feng Tang To: Qian Cai Cc: Waiman Long , Andrew Morton , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Johannes Weiner , Michal Hocko , Roman Gushchin , Vlastimil Babka , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini Subject: Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo Message-ID: <20191025013801.GC42124@shbuild999.sh.intel.com> References: <20191024053445.GB42124@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000012, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Oct 24, 2019 at 06:51:54PM +0800, Qian Cai wrote: > > > > On Oct 24, 2019, at 1:34 AM, Feng Tang wrote: > > > > One example is, there was a platform with limited DRAM, so it preset > > some CMA memory for camera's big buffer allocation use, while it let > > these memory to be shared by others when camera was not used. And > > after long time running, the cma region got fragmented and camera > > app started to fail due to the buffer allocation failure. And during > > debugging, we kept monitoring the buddy info for different migrate > > types. > > For CMA-specific debugging, why CMA debugfs is not enough? We care about change flow of the numbers of different orders for cma and other migrate types, sometimes I just use one simple cmd watch -d 'cat /proc/pagetypeinfo' which shows direct and dynamic flows. Thanks, Feng