From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbdGZB3y (ORCPT ); Tue, 25 Jul 2017 21:29:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:26523 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbdGZB3w (ORCPT ); Tue, 25 Jul 2017 21:29:52 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,413,1496127600"; d="scan'208";a="131912235" From: "Huang\, Ying" To: Andrew Morton Cc: "Huang\, Ying" , , , Johannes Weiner , Minchan Kim , Rik van Riel , Shaohua Li , Hugh Dickins , Fengguang Wu , Tim Chen , Dave Hansen Subject: Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs interface References: <20170725015151.19502-1-ying.huang@intel.com> <20170725015151.19502-2-ying.huang@intel.com> <20170725134247.71e77cb68695cb351e389119@linux-foundation.org> Date: Wed, 26 Jul 2017 09:29:48 +0800 In-Reply-To: <20170725134247.71e77cb68695cb351e389119@linux-foundation.org> (Andrew Morton's message of "Tue, 25 Jul 2017 13:42:47 -0700") Message-ID: <87lgncgf3n.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew Morton writes: > On Tue, 25 Jul 2017 09:51:46 +0800 "Huang, Ying" wrote: > >> The swap cache stats could be gotten only via sysrq, which isn't >> convenient in some situation. So the sysfs interface of swap cache >> stats is added for that. The added sysfs directories/files are as >> follow, >> >> /sys/kernel/mm/swap >> /sys/kernel/mm/swap/cache_find_total >> /sys/kernel/mm/swap/cache_find_success >> /sys/kernel/mm/swap/cache_add >> /sys/kernel/mm/swap/cache_del >> /sys/kernel/mm/swap/cache_pages > > We should document this somewhere. Documentation/ABI/ is the formal > place for sysfs files, but nobody will think to look there for VM > things, so perhaps place a pointer to the Documentation/ABI/ files > within Documentation/vm somewhere, only there isn't an appropriate > Documentation/vm file ;) > > Or just put all these things in debugfs. These are pretty specialized > things and appear to be developer-only files of short-term interest? Yes. Debugfs should be better place for these. Will update it in the next version. And I also introduced sysfs interface in [2/6] and [5/6] /sys/kernel/mm/swap/ra_hits /sys/kernel/mm/swap/ra_total /sys/kernel/mm/swap/vma_ra_enabled /sys/kernel/mm/swap/vma_ra_max_order Will add ABI document for them. Best Regards, Huang, Ying