From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbdB1DZY (ORCPT ); Mon, 27 Feb 2017 22:25:24 -0500 Received: from out0-145.mail.aliyun.com ([140.205.0.145]:38303 "EHLO out0-145.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbdB1DZW (ORCPT ); Mon, 27 Feb 2017 22:25:22 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R221e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01l10425;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=11;SC=85;SR=0;TI=SMTPD_---.7ilAbMa_1488252237; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Shaohua Li'" , , Cc: , , , , , , , References: <89efde633559de1ec07444f2ef0f4963a97a2ce8.1487965799.git.shli@fb.com> In-Reply-To: <89efde633559de1ec07444f2ef0f4963a97a2ce8.1487965799.git.shli@fb.com> Subject: Re: [PATCH V5 6/6] proc: show MADV_FREE pages info in smaps Date: Tue, 28 Feb 2017 11:23:57 +0800 Message-ID: <06f201d29172$196e6450$4c4b2cf0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIuD9vBFeLkbhxOzv8ei/Ca5089rgFow8F/oLt9+fA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On February 25, 2017 5:32 AM Shaohua Li wrote: > > show MADV_FREE pages info of each vma in smaps. The interface is for > diganose or monitoring purpose, userspace could use it to understand > what happens in the application. Since userspace could dirty MADV_FREE > pages without notice from kernel, this interface is the only place we > can get accurate accounting info about MADV_FREE pages. > > Cc: Michal Hocko > Cc: Hugh Dickins > Cc: Rik van Riel > Cc: Mel Gorman > Cc: Andrew Morton > Acked-by: Johannes Weiner > Acked-by: Minchan Kim > Signed-off-by: Shaohua Li > --- Acked-by: Hillf Danton