linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: solmac john <johnsolmac@gmail.com>
To: Dave Chinner <david@fromorbit.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-mm <linux-mm@kvack.org>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org
Subject: [bug] shrink_slab shrinkersize handling
Date: Wed, 16 May 2012 14:33:18 +0530	[thread overview]
Message-ID: <CAD5x=MPcwXyy0eOdqPxc_8K_i3enoU3ZbtwLS71SHR58FCT6rg@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2012-05-16  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16  9:03 solmac john [this message]
2012-05-16 21:53 ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD5x=MPcwXyy0eOdqPxc_8K_i3enoU3ZbtwLS71SHR58FCT6rg@mail.gmail.com' \
    --to=johnsolmac@gmail.com \
    --cc=Kernelnewbies@kernelnewbies.org \
    --cc=akpm@linux-foundation.org \
    --cc=david@fromorbit.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox