All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: "Cheung, Norman" <Norman.Cheung@kla-tencor.com>
Cc: "'linux-xfs@oss.sgi.com'" <linux-xfs@oss.sgi.com>
Subject: Re: Hung in D state during fclose
Date: Wed, 13 Feb 2013 16:15:52 +1100	[thread overview]
Message-ID: <20130213051552.GF26694@dastard> (raw)
In-Reply-To: <3542214BE3A3EF419F236DFE0F878BC9051A09@BL2PRD0310MB374.namprd03.prod.outlook.com>

On Wed, Feb 13, 2013 at 12:12:47AM +0000, Cheung, Norman wrote:
> Dave,
> 
> One other point I have forgotten to mention is that the parent
> thread will wait for 5 minutes and then lower the thread priority
> (from -2 back to 20) and set a global variable to signal the
> threads to exit.  The blocked thread responded well and exit from
> D state and fclose completed with no error.

So it's not hung - it's just very slow?

You have 256GB of memory. It's entirely possible that you've dirtied
a large amount of memory and everything is simply stuck waiting for
writeback to occur. Perhaps you should have a look at the
utilisation of your disks when this still occurs. 'iostat -x -d -m
5' will give you some insight into utilsation when a hang occurs...

> This cause me to wonder if it  is possible that  some XFS threads
> and my application thread might be in a deadlock.  

Deadlocks are permanent, so what you are seeing is not a deadlock....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2013-02-13  5:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12  6:17 Hung in D state during fclose Norman Cheung
2013-02-12  6:55 ` Dave Chinner
2013-02-12  7:01   ` Cheung, Norman
2013-02-12 10:20     ` Dave Chinner
2013-02-12 16:39       ` Cheung, Norman
2013-02-12 20:22         ` Dave Chinner
2013-02-12 21:06           ` Cheung, Norman
2013-02-12 22:21             ` Dave Chinner
2013-02-13  0:12             ` Cheung, Norman
2013-02-13  5:15               ` Dave Chinner [this message]
2013-02-14  4:53                 ` Cheung, Norman
2013-02-26 19:41                   ` Cheung, Norman
2013-02-26 20:31                     ` Dave Chinner
  -- strict thread matches above, loose matches on Subject: below --
2013-02-11 23:36 Cheung, Norman

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=20130213051552.GF26694@dastard \
    --to=david@fromorbit.com \
    --cc=Norman.Cheung@kla-tencor.com \
    --cc=linux-xfs@oss.sgi.com \
    /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 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.