linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Torsten Kaiser <just.for.lkml@googlemail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: -mm: xfs lockdep warning
Date: Thu, 07 Oct 2010 17:41:49 +0200	[thread overview]
Message-ID: <4CADEA3D.3020800@kernel.org> (raw)
In-Reply-To: <AANLkTikRn9hUb6dgGBGvF8czRxqLxm8utXR+iEN17cs1@mail.gmail.com>

Hello,

On 10/07/2010 05:15 PM, Torsten Kaiser wrote:
> :-(
> The second try with the patched 2.6.36-rc6 got stuck again.

:-(

>> repeat the same test w/ 2.6.35 and see whether there's any noticeable
>> difference?
> 
> I just tested vanilla 2.6.35, userspace and the testcase as with the
> 2.6.36-rc6 kernel.
> Behavior was the same as with the first try of the patched 2.6.36-rc6:
> The testcase started to build up CPU load and memory pressure, then
> the mouse got stuck. After ~1 min the system recovered and KDE became
> usable again. (Compile just finish OK)
> 
> vmstat 60 from 2.6.35:
>  2  0      0 2365848   1060 742072    0    0   205     7 6467 12252 26  5 62  8
> 17  0      0 837936   1060 1079520    0    0  1025    24 2210 13483 69 20  8  2
> 18  0      0 694296   1060 1127728    0    0   231    14  626 1883 74 26  0  0
> 20  0      0 228540    124 998440    0    0    48    12  604 1820 72 28  0  0
> 23  1     24 195456     52 657216    0    0   339    11  563 1669 84 16  0  0
>  0 42 937144  14004      0 164352    0 15617   290 15633  827 1254 24  9  1 66
> 21  1 861184 776104      0 149908  998 3852  2790  3902 1137 2454 45 15  0 40
> 21  0 798544 1131964      0 190004  212    0   530    15  599 1469 87 13  0  0
> 12  1 779488 1536772      0 225312  195    0   398    12  534 1087 88 12  0  0
> 11  0 620620 2201408      0 273976 1338    0  1638    40  851 2281 75 19  3  3
> 12  1 588196 1572564      0 344232  521    0  1326   152  787 1888 86 14  0  0
>  8  0 510876 2286000      0 311464  127    0   442   398  758 1558 88 12  0  0
> 
>> Some level of stuttering is expected if the system is hit
>> with sudden huge spike of memory pressure but let's see if it has
>> regressed somehow.
> 
> Yes, if a swapstorm occurs, I can live with a (short) "lockup". For
> example compiling openoffice on tmpfs is a case where I have seen
> similar short periods of the mouse getting stuck. But with 2.6.36-rc5
> it was the first time that the system did not seem to recover, so I
> think it should count as a regression compared to 2.6.35.
> 
> As the second try with the patched 2.6.36-rc6 got stuck again, could
> it be that your patch is incomplete?
>>From drivers/md/dm-crypt.c:
>         cc->io_queue = create_singlethread_workqueue("kcryptd_io");
>         cc->crypt_queue = create_singlethread_workqueue("kcryptd");
> 
> Do these workqueues also need WQ_MEM_RECLAIM?

No, singlethread wq's are currently mapped to unbound wq's and
automatically HIGHPRI.

> I have attached the SysRq-M output from the patched -rc6. The symptoms
> were the same as with the unpatched kernel. The system got stuck, the
> hung_task_timeout triggered for a numer of programs in sync_page() or
> do_lookup() and one kworker/1:1:496 was probable the nail in the
> coffin.
>
> Do you want me to do more tests with 2.6.35 or the patched .36-rc6? Or
> any other patch I should try?

496 being stuck should be okay.  They are allowed to be stuck there
and that's exactly why we have the rescuers.  Can you please capture
the output of sysrq-t w/ the patch applied and hung trigger tripped?
I'd really like to know what the rescuers are doing.

Thanks.

-- 
tejun

  reply	other threads:[~2010-10-07 15:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16  7:46 -mm: xfs lockdep warning Yang Ruirui
2010-09-17  0:52 ` Dave Chinner
2010-09-20 19:13   ` Christoph Hellwig
2010-09-25 13:08     ` Torsten Kaiser
2010-10-04  9:01       ` Tejun Heo
2010-10-04  9:21         ` Dave Chinner
2010-10-05 10:09           ` Torsten Kaiser
2010-10-05 16:51             ` Tejun Heo
2010-10-05 16:55               ` Tejun Heo
2010-10-05 18:09                 ` Torsten Kaiser
2010-10-05 18:17                   ` Christoph Hellwig
2010-10-05 17:54               ` Torsten Kaiser
     [not found]               ` <AANLkTineNfy+hfnK-sjHNB+h05oC4qbJ+81pg95Bmn=b@mail.gmail.com>
     [not found]                 ` <4CAC366E.7070609@kernel.org>
     [not found]                   ` <4CAC38D9.8020407@kernel.org>
     [not found]                     ` <AANLkTikw=ObzgWu35fsuriC-jVrzDRHRfFJeT8-4-ndY@mail.gmail.com>
     [not found]                       ` <4CAC934E.2030807@kernel.org>
     [not found]                         ` <AANLkTinrBeMDyQJaYJFALTPpOgEaAy7yoPdyQ0Gpay3G@mail.gmail.com>
     [not found]                           ` <4CACC0CD.5000001@kernel.org>
2010-10-07 11:14                             ` Tejun Heo
2010-10-07 13:21                               ` Torsten Kaiser
2010-10-07 14:05                                 ` Tejun Heo
2010-10-07 15:15                                   ` Torsten Kaiser
2010-10-07 15:41                                     ` Tejun Heo [this message]
     [not found]                                       ` <AANLkTi=LnbH7LNUr+YuR+uKLFasKyV7hOZc1zD0qqHnW@mail.gmail.com>
2010-10-08 12:40                                         ` Tejun Heo

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=4CADEA3D.3020800@kernel.org \
    --to=tj@kernel.org \
    --cc=just.for.lkml@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).