From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751012AbdJAGns (ORCPT ); Sun, 1 Oct 2017 02:43:48 -0400 Received: from resqmta-ch2-12v.sys.comcast.net ([69.252.207.44]:45498 "EHLO resqmta-ch2-12v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbdJAGnr (ORCPT ); Sun, 1 Oct 2017 02:43:47 -0400 Date: Sun, 1 Oct 2017 01:43:45 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Yang Shi cc: Pekka Enberg , David Rientjes , Joonsoo Kim , akpm@linux-foundation.org, mhocko@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] mm: oom: show unreclaimable slab info when kernel panic In-Reply-To: Message-ID: References: <1506473616-88120-1-git-send-email-yang.s@alibaba-inc.com> <1506473616-88120-3-git-send-email-yang.s@alibaba-inc.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: MS4wfIoJUV5WgXb+6lOHkEBYMmsdy3P01qeCo3U4I4Dxo8mNbTvemtFiOOPVoM05JO6sHJPUblQZqHdgli1upPv62K+9HzsDewUxNEO4RwYy33Fy2xj3aXe5 51q2ti1DU+g1RWX0xc1qbcb1/ujuPJpv4z0sso53iJ+4jUWHz5NMMJU+JCIky2tWbxlbLXO2OQOARhanuSkCIDTvhR9Fjyog2L3YJyJbPNn9kHcBrZ1NQ4Hj w2NKMO63VybC5lpGrG+Pgx8b5Il9AhwUfFAwFh41AGbIRX7V4P6orpniZpRlswC1URNlxSuRTNyFiK4DUY9HyvsMVirTNxMb+c5hIpu9KVK3u5iGe89CtZix plmCzHwz1Bp2PABzuVU5F6FdCyjGzF6PvQeYidCoMBQWq8iwKXg= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Sep 2017, Yang Shi wrote: > > CONFIG_SLABINFO and /proc/slabinfo have nothing to do with the > > unreclaimable slab info. > > The current design uses "struct slabinfo" and get_slabinfo() to retrieve some > info, i.e. active objs, etc. They are protected by CONFIG_SLABINFO. Ok I guess then those need to be moved out of CONFIG_SLABINFO. Otherwise dumping of slabs will not be supported when disabling that option. Or dump CONFIG_SLABINFO ..