All of lore.kernel.org
 help / color / mirror / Atom feed
* ashmem_shrink with long term stable kernel [3.0.36]
@ 2012-06-26  8:03 Akhilesh Kumar
  2012-06-26  8:51   ` Konstantin Khlebnikov
  0 siblings, 1 reply; 3+ messages in thread
From: Akhilesh Kumar @ 2012-06-26  8:03 UTC (permalink / raw)
  To: khlebnikov, david, akpm, mgorman, riel, minchan.kim, linux-mm,
	linux-kernel

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

Hi All,

During mm performance testing sometimes we observed below kernel messages

shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete
nr=-2133936901
shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete
nr=-2139256767
shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete
nr=-2079333971
shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete
nr=-2096156269
shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete
nr=-20658392
 After debugging is we fount below patch mm/vmscan
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=635697c663f38106063d5659f0cf2e45afcd4bb5


Since patch fix critical issue and same is not integrated with long term
stable kernel (3.0.36)
and  we are using below patch with long term stable kernel (3.0.36) is
there any side effects ?
@@ -248,10 +248,12 @@ unsigned long shrink_slab(struct shrink_control
*shrink,

        list_for_each_entry(shrinker, &shrinker_list, list) {
                unsigned long long delta;
-               unsigned long total_scan;
-               unsigned long max_pass;
+               long total_scan;
+               long max_pass;

                max_pass = do_shrinker_shrink(shrinker, shrink, 0);
+               if (max_pass <= 0)
+                       continue;
                delta = (4 * nr_pages_scanned) / shrinker->seeks;
                delta *= max_pass;
                do_div(delta, lru_pages + 1);
-- 
Please review and share ur comments.

Thanks,
Akhilesh

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

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

* Re: ashmem_shrink with long term stable kernel [3.0.36]
  2012-06-26  8:03 ashmem_shrink with long term stable kernel [3.0.36] Akhilesh Kumar
@ 2012-06-26  8:51   ` Konstantin Khlebnikov
  0 siblings, 0 replies; 3+ messages in thread
From: Konstantin Khlebnikov @ 2012-06-26  8:51 UTC (permalink / raw)
  To: Akhilesh Kumar
  Cc: david, akpm, mgorman, riel, minchan.kim, linux-mm, linux-kernel

Akhilesh Kumar wrote:
> Hi All,
>
> During mm performance testing sometimes we observed below kernel messages
>
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2133936901
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2139256767
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2079333971
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2096156269
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-20658392
>
>   After debugging is we fount below patch mm/vmscan
> http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=635697c663f38106063d5659f0cf2e45afcd4bb5
> Since patch fix critical issue and same is not integrated with long term stable kernel (3.0.36)
> and  we are using below patch with long term stable kernel (3.0.36) is there any side effects ?

Nothing special, your patch should work fine.

> @@ -248,10 +248,12 @@ unsigned long shrink_slab(struct shrink_control *shrink,
>
>          list_for_each_entry(shrinker, &shrinker_list, list) {
>                  unsigned long long delta;
> -               unsigned long total_scan;
> -               unsigned long max_pass;
> +               long total_scan;
> +               long max_pass;
>
>                  max_pass = do_shrinker_shrink(shrinker, shrink, 0);
> +               if (max_pass <= 0)
> +                       continue;
>                  delta = (4 * nr_pages_scanned) / shrinker->seeks;
>                  delta *= max_pass;
>                  do_div(delta, lru_pages + 1);
> --
> Please review and share ur comments.
> Thanks,
> Akhilesh


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

* Re: ashmem_shrink with long term stable kernel [3.0.36]
@ 2012-06-26  8:51   ` Konstantin Khlebnikov
  0 siblings, 0 replies; 3+ messages in thread
From: Konstantin Khlebnikov @ 2012-06-26  8:51 UTC (permalink / raw)
  To: Akhilesh Kumar
  Cc: david, akpm, mgorman, riel, minchan.kim, linux-mm, linux-kernel

Akhilesh Kumar wrote:
> Hi All,
>
> During mm performance testing sometimes we observed below kernel messages
>
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2133936901
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2139256767
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2079333971
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-2096156269
> shrink_slab: ashmem_shrink+0x0/0x114 negative objects to delete nr=-20658392
>
>   After debugging is we fount below patch mm/vmscan
> http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=635697c663f38106063d5659f0cf2e45afcd4bb5
> Since patch fix critical issue and same is not integrated with long term stable kernel (3.0.36)
> and  we are using below patch with long term stable kernel (3.0.36) is there any side effects ?

Nothing special, your patch should work fine.

> @@ -248,10 +248,12 @@ unsigned long shrink_slab(struct shrink_control *shrink,
>
>          list_for_each_entry(shrinker, &shrinker_list, list) {
>                  unsigned long long delta;
> -               unsigned long total_scan;
> -               unsigned long max_pass;
> +               long total_scan;
> +               long max_pass;
>
>                  max_pass = do_shrinker_shrink(shrinker, shrink, 0);
> +               if (max_pass <= 0)
> +                       continue;
>                  delta = (4 * nr_pages_scanned) / shrinker->seeks;
>                  delta *= max_pass;
>                  do_div(delta, lru_pages + 1);
> --
> Please review and share ur comments.
> Thanks,
> Akhilesh

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2012-06-26  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26  8:03 ashmem_shrink with long term stable kernel [3.0.36] Akhilesh Kumar
2012-06-26  8:51 ` Konstantin Khlebnikov
2012-06-26  8:51   ` Konstantin Khlebnikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.