FreeBSD 9.0-RC1 freeze after swapoff/swapon procedure on md/vnode-backend file

[ Available lists | Index of freebsd-fs | Month of Oct 2011 | Week of 26 Oct 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Subbsd <subbsd@gmail.com>
Date
26 Oct 2011 19:31:05
Subject
FreeBSD 9.0-RC1 freeze after swapoff/swapon procedure on md/vnode-backend file
Message-ID
CAFt_eMqo7uX5Y1Fp+RQKvauGa_qO12bHYuH-4+UWgnmDJ2owXw@mail.gmail.com


[ Hide this part ]
Hi

I get easy reproducible a hang-up servers that use the file-based
swap file after swapoff / swapon procedure (in this case, some of the
data must be swapped). For example:

1) dd if=/dev/zero of=/usr/swp1 bs=1m count=100
2) mdconfig -a -t vnode -f /usr/swp1
3) swapon /dev/md0
4) begin to allocated memory, for example by simple:
tail /dev/zero

5) after a filling of some percent, do swapoff /dev/md0, then swapon
/dev/md0. you can try this procedure again.

The system may stop responding to commands and freezes or locks up
after some time. From the outside - the core lives (icmp response
goes) but the disk system is not available.

PS: one of my server to my mind is frozen without swapoff/on - just
had three swapfile, a day after he crashed.

Elapsed time: 0.087 seconds