Questions re swap-on-zfs

Ronald Klop ronald-freebsd8 at klop.yi.org
Mon Oct 7 15:39:33 UTC 2013


On Sun, 06 Oct 2013 14:33:50 +0200, Hugo Lombard <hal at elizium.za.net>  
wrote:

> On Sun, Oct 06, 2013 at 05:00:30AM -0700, Beeblebrox wrote:
>>
>> For #2, I have seen "pri=<some number> for fstab settings in linux  
>> how-to's.
>> Does pri= not work in FreeBSD, or does it not work for ZFS? I mean, why
>> "nope"?
>>
>
> swapon(8), first paragraph:
>
>   The swapon, swapoff and swapctl utilities are used to control swap
>   devices in the system.  At boot time all swap entries in /etc/fstab are
>   added automatically when the system goes multi-user.  Swap devices use  
> a
>   fixed interleave; the maximum number of devices is specified by the  
> ker-
>   nel configuration option NSWAPDEV, which is typically set to 4.  There  
> is
>   no priority mechanism.                                            
> ^^^^^^^^
>   ^^^^^^^^^^^^^^^^^^^^^^
>

You could use ccd(4) to concatenate two disks and use that as swap. That  
would give the functionality of your 'prio' option.

Ronald.


More information about the freebsd-fs mailing list