From patchwork Tue Nov 22 17:59:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Christoph Lameter (Ampere)" X-Patchwork-Id: 127144 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 777B51007D1 for ; Wed, 23 Nov 2011 04:59:53 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753660Ab1KVR72 (ORCPT ); Tue, 22 Nov 2011 12:59:28 -0500 Received: from smtp108.prem.mail.ac4.yahoo.com ([76.13.13.47]:37238 "HELO smtp108.prem.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752371Ab1KVR71 (ORCPT ); Tue, 22 Nov 2011 12:59:27 -0500 Received: (qmail 57548 invoked from network); 22 Nov 2011 17:59:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1321984766; bh=dMnI7J8Ik8mUB5El1MHBBqhK6ZRmzKHrWWwURef5bAk=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:Date:From:X-X-Sender:To:cc:Subject:In-Reply-To:Message-ID:References:User-Agent:MIME-Version:Content-Type; b=IZwB+l4S1NZqSifl4TE4V0ab+qpEhkTl5moq6ErhLV+EmdT69MbZeEkUCcPhW9EYwdxrv3rojcWEAtFlC6X/3Q6HNy/FS4bB3IS1xXHuwdtcKH/77QZ1WtWhc3FpCe6lXXU2TaT55zgILHwwsh4C7YT8zBTqwbzrn5wj1/pFYHc= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: TMvCaJcVM1n_gICt3ufK7oeIQusX1llmY6wYT7T_FoedG9U HQ_WwKNb2J2oePkxkhLPg2VtBn1_bDYY.I1SOtXmiGrodpp.cuSFaTMpYNJC UXFCXTg15E6wQLyBKlDqEIQ9Xrt0EJdibr3ez5bYvFKn6vwomPbhyeAmPg5O 3_NzIgw6F.YW7Hkup.OULizCraYkp8xUsL4N8jxBr9rWhj37h6UAN9sYx7Cb P16EfS4QL_bpPtBGbF_ndw5FaaSQqc_dwzDZ35a_4_FsRRYbfFJ18uW89I35 j7Hc4ZlwziXu6J1JjQjoAakgB0L2kfG.SiyolpmQyJ8UAhlhvDjKz9W3Qjkw XKUGCNb7Iwy8eRszU9K8L_qpqedPjnvx8_gtXP54oXL2nILipp7khO2uAIWT XPpccN9Jb43.mNOH8UTkm4A-- X-Yahoo-SMTP: _Dag8S.swBC1p4FJKLCXbs8NQzyse1SYSgnAbY0- Received: from router.home (cl@99.30.10.212 with plain) by smtp108.prem.mail.ac4.yahoo.com with SMTP; 22 Nov 2011 09:59:26 -0800 PST Received: from cl (helo=localhost) by router.home with local-esmtp (Exim 4.71) (envelope-from ) id 1RSucv-0007vw-Bn; Tue, 22 Nov 2011 11:59:25 -0600 Date: Tue, 22 Nov 2011 11:59:22 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Eric Dumazet cc: Markus Trippelsdorf , Christian Kujau , Benjamin Herrenschmidt , "Alex,Shi" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Pekka Enberg , Matt Mackall , "netdev@vger.kernel.org" , Tejun Heo Subject: Re: slub: Lockout validation scans during freeing of object In-Reply-To: <1321982484.18002.6.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Message-ID: References: <1321982484.18002.6.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 22 Nov 2011, Eric Dumazet wrote: > This seems better, but I still have some warnings : > > [ 162.117574] SLUB: selinux_inode_security 136 slabs counted but counter=137 > [ 179.879907] SLUB: task_xstate 1 slabs counted but counter=2 This is the total # of slabs that mismatches. Some slabs are not on the partial list and are neither on the full list since they are currently on the per cpu partial lists. Thats an accounting issue introduced in 3.2 with the per cpu pages. Need to find some way to count the per cpu partial pages correctly. Could just force the per cpu pages to be empty? Subject: Switch per cpu partial page support off for debugging Otherwise we have accounting issues. Signed-off-by: Christoph Lameter --- mm/slub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2011-11-22 11:57:21.000000000 -0600 +++ linux-2.6/mm/slub.c 2011-11-22 11:57:55.000000000 -0600 @@ -3027,7 +3027,9 @@ static int kmem_cache_open(struct kmem_c * per node list when we run out of per cpu objects. We only fetch 50% * to keep some capacity around for frees. */ - if (s->size >= PAGE_SIZE) + if (kmem_cache_debug(s)) + s->cpu_partial = 0; + else if (s->size >= PAGE_SIZE) s->cpu_partial = 2; else if (s->size >= 1024) s->cpu_partial = 6;