linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] DM suspend locks up under load?
Date: Thu, 05 Jan 2012 11:44:09 +0100	[thread overview]
Message-ID: <4F057EF9.6030606@redhat.com> (raw)
In-Reply-To: <7D2B67C5-B2AC-4319-9818-B7E1DF896D04@jabberwocky.com>

Dne 4.1.2012 23:50, David Shaw napsal(a):
> Hi,
>
> I'm using some code that creates a snapshot using DM directly (we aren't using LVM), using essentially:
>
>    suspend linear device X
>    reload X as a "snapshot-origin" device
>    create "snapshot" device
>    resume original X device (which is now a snapshot-origin)
>
> This has worked fine for several years.  Recently, however, we updated to a more recent system, and ext4, and are seeing something odd.  Under load, the process above freezes at the first suspend step, and locks up the device in question, requiring a reboot to fix things.
>
> I wrote the attached program to demonstrate the problem.  All it does it call DM_DEVICE_SUSPEND and DM_DEVICE_RESUME over and over on a DM device.  Basically, run the test program on any mounted linear DM target in one shell, then delete a lot of data from a directory residing on that device in another shell.  On my systems this will freeze both the test program and the rm in D state, and require a reboot to fix things.
>
> I've tried multiple different kernels, but at the moment, I'm using kernel-PAE-2.6.35.6-45.fc14.i686 and device-mapper-libs-1.02.63-2.fc14.i686.
>
> One clue I can add is that it only seems to happen if the filesystem on the device is ext4.  It does not happen with ext3.
>
> Any ideas on where I should look next?
>

Maybe you should suspect ext4  - if there is no problem with dm & ext3 ?

I guess you need to get stacktrace where the system locks.
(echo t >/proc/sysrq-trigger  - or Sysrq+T)

You should probably also try different kernel.

Zdenek

  reply	other threads:[~2012-01-05 10:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04 22:50 [linux-lvm] DM suspend locks up under load? David Shaw
2012-01-05 10:44 ` Zdenek Kabelac [this message]
2012-01-10 23:20   ` David Shaw

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=4F057EF9.6030606@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=linux-lvm@redhat.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 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).