Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753196AbdLSQF5 (ORCPT ); Tue, 19 Dec 2017 11:05:57 -0500 Received: from resqmta-ch2-10v.sys.comcast.net ([69.252.207.42]:36870 "EHLO resqmta-ch2-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753178AbdLSQFv (ORCPT ); Tue, 19 Dec 2017 11:05:51 -0500 Date: Tue, 19 Dec 2017 10:05:48 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Kemi Wang cc: Greg Kroah-Hartman , Andrew Morton , Michal Hocko , Vlastimil Babka , Mel Gorman , Johannes Weiner , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , Pavel Tatashin , David Rientjes , Sebastian Andrzej Siewior , Dave , Andi Kleen , Tim Chen , Jesper Dangaard Brouer , Ying Huang , Aaron Lu , Aubrey Li , Linux MM , Linux Kernel Subject: Re: [PATCH v2 2/5] mm: Extends local cpu counter vm_diff_nodestat from s8 to s16 In-Reply-To: <1513665566-4465-3-git-send-email-kemi.wang@intel.com> Message-ID: References: <1513665566-4465-1-git-send-email-kemi.wang@intel.com> <1513665566-4465-3-git-send-email-kemi.wang@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfLmWzIciveXF4S8sYrNquMVMdtB2lLelTJMH6qnqBt5gPyfkZXCH7PmhNYGQBrBbVuMN9m2gbQKgDo66AYDzaSTz1l6mM1ex3MAkDzzr6WNd6UhR1v2G uCvUeXR/iUAvUl2VInt0aZ+NYV2kLsAG+eDenCQMt+p9fRK2TCQHBUOkYdv8AG7T1k3jdDXtqiYi8FuuSr4LZvg9KyMQYJ9z194fU0DbNceSrw9AE/Ll0SPK 4YcMNNc1E/mys+QBb8EjQ4gUehiYpnjY+8dYaeBMxwaQYmZw2lcUTnIbqlJkOUuht5KEQdXC741MXWNJ2kfYD4tyYOKZCWa6xmCuxvqg/VLK4LiGyW3d6XNH Dp/VPUeDMc5STWtJMcCl9/upAFsuZPHDVjLip0SfsBM7Vsjut88NSZD6ykYcAWkvnxiMSRuNi3icg6S9UrMiB/05GW4Zi7Wb2zIbHZa8x06V2mDtifhmLeai nESMUNMAeTyhoxG5BuRTpZmqMYBYxJE8tOWovKCFjYP+ERCIHVFfyiNU3cMZ3PO2zgW4TwyfKPnTA/8wADefsKMmhsS336bKI4fRxDHC8sn2c1D7NG/s7RhC RY6GZOYDCORVKohpdyqC5UhlSKkFtMS62JF007RzpTd9Kyzf2Ph7OhPQyu+B21oCfqpqBs6PgGa89fVp+Cf/Aj4dHITz5aWPtsU8CZcErTqLUQQQd4XNCoJg sDbBHwH0XZuE7HpZkoMOlHBQXE1DJ73LjNFh1zo1sTSWibDxkofQ75e+2/9eF654aDiHCOU/uJPQf46Vcxf3OspbwN6qtiRXve8JyXWFv7lHRobO7JXwGKVd ndYg/5hz+XscOueszA0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 660 Lines: 12 On Tue, 19 Dec 2017, Kemi Wang wrote: > The type s8 used for vm_diff_nodestat[] as local cpu counters has the > limitation of global counters update frequency, especially for those > monotone increasing type of counters like NUMA counters with more and more > cpus/nodes. This patch extends the type of vm_diff_nodestat from s8 to s16 > without any functionality change. Well the reason for s8 was to keep the data structures small so that they fit in the higher level cpu caches. The large these structures become the more cachelines are used by the counters and the larger the performance influence on the code that should not be impacted by the overhead.