Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967816AbdIZH4m (ORCPT ); Tue, 26 Sep 2017 03:56:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:37897 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965054AbdIZH4l (ORCPT ); Tue, 26 Sep 2017 03:56:41 -0400 Date: Tue, 26 Sep 2017 09:56:38 +0200 From: Michal Hocko To: Yang Shi Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2 v4] oom: capture unreclaimable slab info in oom message when kernel panic Message-ID: <20170926075638.l7xoaismqsnp4qsw@dhcp22.suse.cz> References: <1505947132-4363-1-git-send-email-yang.s@alibaba-inc.com> <20170925142352.havlx6ikheanqyhj@dhcp22.suse.cz> <20170925203235.vhhiqxp72v67n76l@dhcp22.suse.cz> <2a50d51e-1a36-aa44-3ee6-cb78ac9c7715@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a50d51e-1a36-aa44-3ee6-cb78ac9c7715@alibaba-inc.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 404 Lines: 11 On Tue 26-09-17 05:52:50, Yang Shi wrote: > Maybe we can set a unreclaimable slab/total mem ratio. For example, when > unreclaimable slab size >= 50% total memory size, then we print out slab > stats in oom? And, the ratio might be adjustable in /proc. This sounds quite reasonable to me. I would compare the slab amount to the directly user backed memory (LRU ages) though. -- Michal Hocko SUSE Labs