Swapfile on ZFS & Deadlock

Kris Kennaway kris at obsecurity.org
Fri Jun 15 18:25:22 UTC 2007


On Fri, Jun 15, 2007 at 11:00:04PM +0930, Benjamin Close wrote:
> Hi All,
>    Whilst running out of memory compiling Xorg (scanPCI is a killer) I 
> discovered a quick way to deadlock the system:
> 
> dd if=/dev/zero of=somefileonzfs bs=something count=something
> mdconfig -a -f something
> swapon /dev/md0
> 
> Then do something that needs swap.. instant deadlock. The system is 
> still responsive but all disk access become hung.
> 
> Known issue? If so is there a way we can warn users/prevent users from 
> doing it?

Enable DEBUG_VFS_LOCKS and DEBUG_LOCKS, then break to DDB when the
deadlock occurs and do 'show lockedvnods'.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070615/4d0f6186/attachment.pgp


More information about the freebsd-current mailing list