linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [bug] shrink_slab shrinkersize handling
@ 2012-05-16  9:03 solmac john
  2012-05-16 21:53 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: solmac john @ 2012-05-16  9:03 UTC (permalink / raw)
  To: Dave Chinner, Andrew Morton, linux-mm, Russell King - ARM Linux,
	Kernelnewbies, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

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

 After debugging is I fount these prints from mm/vmscan.c
Kernel Error msg point

   unsigned long total_scan;

               unsigned long max_pass;

                max_pass = do_shrinker_shrink(shrinker, shrink, 0);

                delta = (4 * nr_pages_scanned) / shrinker->seeks;

                delta *= max_pass;

                do_div(delta, lru_pages + 1);

                shrinker->nr += delta;

                if (shrinker->nr < 0) {

                        printk(KERN_ERR "shrink_slab: %pF negative objects
to "

                               "delete nr=%ld\n",

                               shrinker->shrink, shrinker->nr);

                        shrinker->nr = max_pass;
                }



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.  ?
I am working on ARM cortex A9  linux-3.0.20 kernel.

Thanks,
John

[-- Attachment #2: Type: text/html, Size: 4737 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [bug] shrink_slab shrinkersize handling
  2012-05-16  9:03 [bug] shrink_slab shrinkersize handling solmac john
@ 2012-05-16 21:53 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2012-05-16 21:53 UTC (permalink / raw)
  To: solmac john
  Cc: Dave Chinner, linux-mm, Russell King - ARM Linux, Kernelnewbies,
	linux-kernel, Konstantin Khlebnikov

On Wed, 16 May 2012 14:33:18 +0530
solmac john <johnsolmac@gmail.com> 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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-16 21:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16  9:03 [bug] shrink_slab shrinkersize handling solmac john
2012-05-16 21:53 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).