Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753226AbdIDBgt (ORCPT ); Sun, 3 Sep 2017 21:36:49 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:50692 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753120AbdIDBgs (ORCPT ); Sun, 3 Sep 2017 21:36:48 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: kyeongdon.kim@lge.com X-Original-SENDERIP: 10.174.78.84 X-Original-MAILFROM: kyeongdon.kim@lge.com Subject: Re: Re: [PATCH] mm/vmstats: add counters for the page frag cache To: Michal Hocko , Konstantin Khlebnikov Cc: akpm@linux-foundation.org, sfr@canb.auug.org.au, ying.huang@intel.com, vbabka@suse.cz, hannes@cmpxchg.org, xieyisheng1@huawei.com, luto@kernel.org, shli@fb.com, mgorman@techsingularity.net, hillf.zj@alibaba-inc.com, kemi.wang@intel.com, rientjes@google.com, bigeasy@linutronix.de, iamjoonsoo.kim@lge.com, bongkyu.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <1504222631-2635-1-git-send-email-kyeongdon.kim@lge.com> <20170901092108.lb3jla2hpczjvrh5@dhcp22.suse.cz> From: Kyeongdon Kim Message-ID: Date: Mon, 4 Sep 2017 10:36:42 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170901092108.lb3jla2hpczjvrh5@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 38 Thanks for your reply, We already used other i/f like page_owner and kmemleak to resolve memory leakage issue. But, page_owner can only for guess but cannot find intuitively memory usage regarding page_frag_cache. And kmemleak cannot use (because of calling directly __alloc_pages_nodemask()). Additionally, some embedded linux like Android or something.. is not able to always use kmemleak & page_owner because of runtime performance deterioration. However, the root cause of this memory issue is from net device like wireless. In short, should always use wireless on device but, cannot use those memory debug tools. That's why those counters need.. and for much cheaper I can remove pgfrag_alloc_calls and pgfrag_free_calls. Thanks, Kyeongdon Kim On 2017-09-01 오후 6:21, Michal Hocko wrote: > On Fri 01-09-17 12:12:36, Konstantin Khlebnikov wrote: > > IMHO that's too much counters. > > Per-node NR_FRAGMENT_PAGES should be enough for guessing what's > going on. > > Perf probes provides enough features for furhter debugging. > > I would tend to agree. Adding a counter based on a single debugging > instance sounds like an overkill to me. Counters should be pretty cheep > but this is way too specialized API to export to the userspace. > > We have other interfaces to debug memory leaks like page_owner. > -- > Michal Hocko > SUSE Labs