Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83 based; site houxf.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!houxm!houxf!stewart
From: stewart@houxf.UUCP (Bill Stewart HO 4K-435 x0705)
Newsgroups: net.bugs.usg
Subject: Re: Sys V r2 version 2 swap bug
Message-ID: <943@houxf.UUCP>
Date: Fri, 12-Jul-85 18:14:22 EDT
Article-I.D.: houxf.943
Posted: Fri Jul 12 18:14:22 1985
Date-Received: Sat, 13-Jul-85 16:24:32 EDT
References: <46@qfdts.oz>
Organization: AT&T Bell Labs, Holmdel NJ
Lines: 21

[... Has anyone been able to change swap areas?...]
Yes, I do it all the time.  My system boots up with swap on the
root drive, which is boring; in the /etc/rc I do the following:

	swap -a /dev/dsk/1s1 0 70000	# Add 70Kblocks swap on 1s1
	swap -d /dev/dsk/0s0 14320	# Remove 0s0 swap.
	swap -l				# List what's left

You have to be careful of two things - 
	1) always allocate new swap space before you zap the
		old swap space, so you have SOME swap space.
	
	2) be careful if you delete a swap area when something's
		using it.  I haven't dug around enough to really
		understand what happens, but I normally remove swap
		areas only when there's not enough running to swap
		anyway.
-- 
Bill Stewart	ho95c!wcs AT&T Bell Labs, Holmdel NJ
HO 4K-435 x0705   (201-949-0705)
{allegra, ucbvax!ihnp4, decvax!harpo}!houxf!stewart