Swapfile on ZFS & Deadlock

Claus Guttesen kometen at gmail.com
Fri Jun 15 14:45:24 UTC 2007

>     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?

How much swap have you allocated?


When lenity and cruelty play for a kingdom,
the gentlest gamester is the soonest winner.


More information about the freebsd-current mailing list