Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757378AbcDGUPd (ORCPT ); Thu, 7 Apr 2016 16:15:33 -0400 Received: from resqmta-po-04v.sys.comcast.net ([96.114.154.163]:43613 "EHLO resqmta-po-04v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753175AbcDGUPb (ORCPT ); Thu, 7 Apr 2016 16:15:31 -0400 Date: Thu, 7 Apr 2016 15:15:27 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Ebru Akagunduz cc: linux-mm@kvack.org, hughd@google.com, riel@redhat.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com Subject: Re: [PATCH v5 1/2] mm, vmstat: calculate particular vm event In-Reply-To: <1460050010-10705-1-git-send-email-ebru.akagunduz@gmail.com> Message-ID: References: <1460049861-10646-1-git-send-email-ebru.akagunduz@gmail.com> <1460050010-10705-1-git-send-email-ebru.akagunduz@gmail.com> Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 478 Lines: 13 On Thu, 7 Apr 2016, Ebru Akagunduz wrote: > Currently, vmstat can calculate specific vm event with all_vm_events() > however it allocates all vm events to stack. This patch introduces > a helper to sum value of a specific vm event over all cpu, without > loading all the events. The first sentence is inaccurate. all_vm_events() takes a pointer to an array of of counters and does not allocate on the stack. Fix this and then add Acked-by: Christoph Lameter