Subject: Re: swap priority in fstab?
To: Chris Jones <cjones@honors.montana.edu>
From: Brad Salai <bsalai@servtech.com>
List: current-users
Date: 06/29/1998 13:53:13
At 9:45 AM -0600 6/29/98, Chris Jones wrote:
>On Mon, 29 Jun 1998, Brad Salai wrote:
>
>> swapctl will let you set the priority of the swap partitions, so that I
>> could make one of these other drives the primary swap device (which I
>> _think_ is a good thing)
>
>Probably depends on your situation. FYI, the semantics don't seem to be
>documented: The swap device(s) with the lowest number will be completely
>filled before the device(s) with the next higher number see any paging
>activity. (This is based on my observations of swapctl -l over time.)
>
>> Problem is, there is currently no way to set se_priority in fstab to
>> pass to swapctl.
>
>Script started on Mon Jun 29 09:43:34 1998
>mathfs:/usr/user1/cjones> cat /etc/fstab
>/dev/rz0a / ffs rw 1 1
>/dev/rz0b none swap sw,priority=2 0 0
>/dev/rz0d /usr ffs rw 1 2
>/dev/rz0f /var ffs rw 1 3
>/dev/rz1b none swap sw,priority=0 0 0
>/usr/local/ultrix/swapfile none swap sw,priority=1 0 0
>/dev/rz3b none swap sw,priority=0 0 0
>[...]
>mathfs:/usr/user1/cjones> swapctl -l
>Device 1K-blocks Used Avail Capacity Priority
>/dev/rz1b 100500 4 100496 0% 0
>/dev/rz3b 28980 4 28976 0% 0
>/dev/?? 120000 0 120000 0% 1
>/dev/rz0b 102532 4 102528 0% 2
>Total 352012 12 352000 0%
>mathfs:/usr/user1/cjones> exit
>
>Script done on Mon Jun 29 09:43:44 1998
>
>Works for me... :)
>
That's what I was looking for. I didn't see it anywhere, did I miss it, or
did you just grok it some other way?
Brad
Stephen B. Salai Phone (716) 325-5553
Cumpston & Shaw Fax (716) 262-3906
Two State Street email bsalai@tmonline.com
Rochester, NY 14614