Messages in this thread | | | Date | Wed, 22 Feb 2012 07:55:16 -0600 (CST) | From | Christoph Lameter <> | 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.
| |