From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759425Ab2EPVxJ (ORCPT ); Wed, 16 May 2012 17:53:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53551 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757615Ab2EPVxH (ORCPT ); Wed, 16 May 2012 17:53:07 -0400 Date: Wed, 16 May 2012 14:53:03 -0700 From: Andrew Morton To: solmac john Cc: Dave Chinner , linux-mm , Russell King - ARM Linux , Kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org, Konstantin Khlebnikov Subject: Re: [bug] shrink_slab shrinkersize handling Message-Id: <20120516145303.8a9cb329.akpm@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 May 2012 14:33:18 +0530 solmac john wrote: > Hi All, > > During mm performance testing sometimes I observed below kernel messages > > [ 80.776000] shrink_slab: ashmem_shrink+0x0/0x114 negative objects to > delete nr=-2133936901 > [ 80.784000] shrink_slab: ashmem_shrink+0x0/0x114 negative objects to > delete nr=-2139256767 > [ 80.796000] shrink_slab: ashmem_shrink+0x0/0x114 negative objects to > delete nr=-2079333971 > [ 80.804000] shrink_slab: ashmem_shrink+0x0/0x114 negative objects to > delete nr=-2096156269 > [ 80.812000] shrink_slab: ashmem_shrink+0x0/0x114 negative objects to > delete nr=-20658392 > > ... > > I found one patch http://lkml.org/lkml/2011/8/22/80 for this fix > Please let me know reason why I am getting above error and above is really > fix for this problem. ? Yes, that patch should fix it. Aside: I spent some time trying to work out the reason why local variable `max_pass' in shrink_slab() is called `max_pass' and failed.