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

Subbsd subbsd at gmail.com
Wed Oct 26 19:31:05 UTC 2011


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.


More information about the freebsd-stable mailing list