Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4032166ybg; Fri, 25 Oct 2019 12:20:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYHJDQIe+FqhdnUu8RWy4TvccqrneA/SxUQ7cqlllAfHKQPYXaiE2cfIEQm/fH3+5O63PU X-Received: by 2002:a17:906:24c9:: with SMTP id f9mr5040887ejb.201.1572031249355; Fri, 25 Oct 2019 12:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031249; cv=none; d=google.com; s=arc-20160816; b=sKJcZCt+TdeggFEsIOS6BpTdEBmVDcOekWBQ2cTqrCrOND5BuZW84VLOXmiw8XC63b Hzig6Lb5B7kkSzncHD5Hy86OH1zFwZ3M1gFQFo/JzryoK/i0IL4kYBs1y7m7/FwJCwD0 bGrBmSQtMlAw6LAUAd8etR9Jf89EgWWrmdPQDCY2MssdBGwHlDm0ahaDLde9FWPgpuJo i9eyhSQTTxmTXySiYCL3+ZVDLswDw113sBr6qF6FNR4BawIWa6v42wVqeFBwBiFoPv// lNyeHBqW0+jXuNrnVdaqjsYdF1Ij619t/ezaG27ph5+7SMSgEYH5dngHv9vqbVjNJPGc Od7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+A2kVjA/mSVfHgD6zyVxGxbF1rLinYsusMS8zLOJvhY=; b=qtUrsNYlCUbulEI5x8O4i8dN6kAv5TqMXUJ6xV6a6xLS5r5bSDLPbUdgBgH0TUEn/9 LH5mjwJf2wFxZudtLOIkvbBTTN17Zf4XqfRds/DDHJKvdWhHoILCX8YrYqiarLTUIboz e+JhLehguvEJZnifAca/6IAhtnnLwP0JPoIiPDJtbN6SDIgaj+fKCnhPKhGwAbs8Dz2X 2biNaz/puvLPGoQ6dKiQ+7j0rzYr446210Jdc3R1LPqdhLdlCVIzDTXLQPZeauQ6xBB6 4bMAQQQ4nh6WMR0CsOuEVRuyTdrtarDgi4gFt8RzYG/PFtWRJPTsR7GhKHw9YetyZHqp vz9w== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pg2si1799330ejb.133.2019.10.25.12.20.25; Fri, 25 Oct 2019 12:20:49 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389121AbfJYBiF (ORCPT + 99 others); Thu, 24 Oct 2019 21:38:05 -0400 Received: from mga14.intel.com ([192.55.52.115]:11192 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389101AbfJYBiE (ORCPT ); Thu, 24 Oct 2019 21:38:04 -0400 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 fmsmga103.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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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