Subject: Re: swap priority in fstab?
To: Brad Salai <bsalai@law.roc.servtech.com>
From: Chris Jones <cjones@honors.montana.edu>
List: current-users
Date: 06/29/1998 09:45:32
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... :)
Chris
-------------------------------------------------------------------------------
Chris Jones cjones@math.montana.edu
Mad scientist at large cjones@honors.montana.edu
"Is this going to be a stand-up programming session, sir, or another bug hunt?"