A question about swap

Alan's Home for Wayward Notes File. alan at shodha.enet.dec.com
Sun Jun 16 17:01:04 AEST 1991


In article <22486 at cbmvax.commodore.com>, grr at cbmvax.commodore.com (George Robbins) writes:
> In article <1991Jun14.184609.21178 at mlb.semi.harris.com> dcb at dave.mis.semi.harris.com writes:
> > [ A previous customer asked about how to best configure more
> >   page/swap space. ]
> 
> Supposedly the Berkeley code does distribute swap usage over the multiple
> drives in a way that improves performance.

	Yes it does.  You can demonstrate this by running iostat(1)
	or Monitor at the time you're doing a:

		# cp /dev/drum /dev/null
	
> 
> Most the requirement for large swaps spaces stems from the problem that
> Ultrix allocates swap space before it actually needs it.

	Actually ULTRIX V4.0 and later "reserves" the space at process 
	startup.  It doesn't get allocated until used.  The reservation 
	is necessary to avoid deadlocks and the harder problem of how 
	to cope with them.  Some systems cope by letting you dynamically 
	add space as needed.  Others cope by killing the offending process.
> 
> [ George discusses the performance aspects of the problem. ]

	If you don't page/swap (much) then the performance doesn't
	matter much.  If you do page/swap much, then you need more
	memory (up to a point).  If you do have to the pageing/swapping
	I/O then use the /dev/drum trick mentioned above.  It's hard
	to determine page-out performance this way, but you can see
	which is better for page-in.

	Also consider playing around with the configuration parameter
	"swapfrag".  It determines the I/O size for some things.  If
	you're doing a lot, then increaseing swapfrag may help.
> 
> -- 
> George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr


-- 
Alan Rollow				alan at nabeth.cxn.dec.com



More information about the Comp.unix.ultrix mailing list