[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1202220754140.21637@router.home>
Date: Wed, 22 Feb 2012 07:55:16 -0600 (CST)
From: Christoph Lameter <cl@...ux.com>
To: Rafael Aquini <aquini@...hat.com>
cc: linux-mm@...ck.org, Randy Dunlap <rdunlap@...otime.net>,
Pekka Enberg <penberg@...nel.org>,
Matt Mackall <mpm@...enic.com>, Rik van Riel <riel@...hat.com>,
Josef Bacik <josef@...hat.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] oom: add sysctl to enable slab memory dump
On Wed, 22 Feb 2012, Rafael Aquini wrote:
> --- a/mm/slub.c
> +++ b/mm/slub.c
> +void oom_dump_slabs(int ratio)
> +{
> +
> + for_each_online_node(node) {
> + struct kmem_cache_node *n = get_node(cachep, node);
> + if (!n)
> + continue;
> +
> + nr_objs += atomic_long_read(&n->total_objects);
Please use node_nr_objects() instead of directly accessing total_objects.
total_objects are only available if debugging support was compiled in.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists