From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id 57AA36B0038 for ; Mon, 18 Sep 2017 01:06:36 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id q75so13914699pfl.1 for ; Sun, 17 Sep 2017 22:06:36 -0700 (PDT) Received: from mga04.intel.com (mga04.intel.com. [192.55.52.120]) by mx.google.com with ESMTPS id r9si4091018pge.637.2017.09.17.22.06.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2017 22:06:35 -0700 (PDT) Subject: Re: [PATCH 2/3] mm: Handle numa statistics distinctively based-on different VM stats modes References: <1505467406-9945-1-git-send-email-kemi.wang@intel.com> <1505467406-9945-3-git-send-email-kemi.wang@intel.com> <20170915115049.vqthfawg3y4r6ogh@dhcp22.suse.cz> <26bd25c8-294f-d3cc-8ba2-845a6da33fe5@intel.com> <1bd90605-c765-ca27-b8ee-ca803a8bcdea@linux.intel.com> From: kemi Message-ID: <21090d5e-f8be-731f-75bc-b01bf53409b2@intel.com> Date: Mon, 18 Sep 2017 13:05:17 +0800 MIME-Version: 1.0 In-Reply-To: <1bd90605-c765-ca27-b8ee-ca803a8bcdea@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen , Michal Hocko Cc: "Luis R . Rodriguez" , Kees Cook , Andrew Morton , Jonathan Corbet , Mel Gorman , Johannes Weiner , Christopher Lameter , Sebastian Andrzej Siewior , Vlastimil Babka , Tim Chen , Andi Kleen , Jesper Dangaard Brouer , Ying Huang , Aaron Lu , Proc sysctl , Linux MM , Linux Kernel On 2017a1'09ae??18ae?JPY 12:13, Dave Hansen wrote: > On 09/17/2017 08:07 PM, kemi wrote: >>>> + if (vmstat_mode) { >>>> + if (vmstat_mode == VMSTAT_COARSE_MODE) >>>> + return; >>>> + } else if (disable_zone_statistics) >>>> + return; >>>> + >>>> if (z->node != numa_node_id()) >>>> local_stat = NUMA_OTHER; >>> >>> A jump label could make this completely out of the way for the case >>> where every single cycle matters. >> >> Could you be more explicit for how to implement it here. Thanks very much. > > Take a look at include/linux/jump_label.h. > > Sure, Thanks > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org