All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 118041] New: My tricky script involving zram and device mapper hangs on "mount"
Date: Wed, 11 May 2016 21:22:20 +0000	[thread overview]
Message-ID: <bug-118041-13602@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=118041

            Bug ID: 118041
           Summary: My tricky script involving zram and device mapper
                    hangs on "mount"
           Product: File System
           Version: 2.5
    Kernel Version: 4.4.8-grsec,4.1.9
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: vi0oss@gmail.com
        Regression: No

As far as I remember, I have implemented and used the script on 3.8.3 (or
3.7.5?) successfully. But after upgrading to other kernel version it broke: now
"mount" hangs (in uninterruptible sleep), consuming 100% CPU and eating all
memory.

The script:

---

modprobe zram num_devices=2
sleep 1
echo 1500M > /sys/block/zram0/disksize
echo 100M > /sys/block/zram1/disksize

MS=$(blockdev --getsize /dev/zram0)
WS=$(blockdev --getsize /dev/zram1)
DS=$(blockdev --getsize /dev/mapper/cryptie4-ff)
MN=$(printf '%d:%d' `stat -Lc '0x%t 0x%T' /dev/zram0`)
WN=$(printf '%d:%d' `stat -Lc '0x%t 0x%T' /dev/zram1`)
DN=$(printf '%d:%d' `stat -Lc '0x%t 0x%T'  /dev/mapper/cryptie4-ff`)

pv /dev/mapper/cryptie4-ff | hashed_update /dev/stdin NULL /dev/zram0
/tmp/ff.md5 65536
dmsetup create ff --table "0 $MS snapshot-origin $MN"

# /dev/mapper/ff /mnt/ff ext4 noatime,noauto 0 0
mount /mnt/ff

# after this command ff_snap should begin working
dmsetup create ff_disk --table "0 $DS snapshot-origin $DN"

---

So far I have just abandoned the script and hasn't experimented more. Shall I 
try to isolate and maybe bisect the problem?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

             reply	other threads:[~2016-05-11 21:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-11 21:22 bugzilla-daemon [this message]
2016-05-17 16:27 ` [Bug 118041] My tricky script involving zram and device mapper hangs on "mount" bugzilla-daemon
2016-05-17 16:48 ` bugzilla-daemon
2016-05-17 17:55 ` bugzilla-daemon
2016-05-17 18:59 ` bugzilla-daemon

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=bug-118041-13602@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linux-ext4@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 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.