From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbdJYWtb (ORCPT ); Wed, 25 Oct 2017 18:49:31 -0400 Received: from out0-237.mail.aliyun.com ([140.205.0.237]:33838 "EHLO out0-237.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbdJYWtX (ORCPT ); Wed, 25 Oct 2017 18:49:23 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03311;MF=yang.s@alibaba-inc.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---.9EaJhLx_1508971749; From: "Yang Shi" To: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, mhocko@kernel.org Cc: "Yang Shi" , , Subject: [PATCH 0/2 -mmotm] oom: show single slab cache in oom whose size > 10% of total system memory Date: Thu, 26 Oct 2017 06:48:58 +0800 Message-Id: <1508971740-118317-1-git-send-email-yang.s@alibaba-inc.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Per the suggestion from David [1], this implementation dumps single slab cache if its size is over 10% of total system memory. In current implementation, the ration is fixed as 10%. To get the size of total system memory patch #1 extract the common code from show_mem() so that the code can be used by checking the ratio. The patchset is based on the mmotm tree. [1] https://marc.info/?l=linux-mm&m=150819933626604&w=2 Yang Shi (2): mm: extract common code for calculating total memory size mm: oom: dump single excessive slab cache when oom include/linux/mm.h | 25 +++++++++++++++++++++++++ lib/show_mem.c | 20 +------------------- mm/oom_kill.c | 22 +--------------------- mm/slab.h | 4 ++-- mm/slab_common.c | 21 ++++++++++++++++----- 5 files changed, 45 insertions(+), 47 deletions(-)