Re: [bug] shrink_slab shrinkersize handling

From: Andrew Morton
Date: Wed May 16 2012 - 17:53:15 EST


On Wed, 16 May 2012 14:33:18 +0530
solmac john <johnsolmac@xxxxxxxxx> 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.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/