Compressed RAM as only swap, malloc or swap?

If I plan to use a compressed memery disk as the only swap on my machine, no zvol or freebsd-swap partition, how should I create it?
mdconfig -a -t malloc -o reserve -o compress -s 2g -u 0
or
mdconfig -a -t swap -o compress -s 2g -u 0
?
 
Back
Top