Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to specify additional swap space on OSF1/alpha
@ 1993-03-19 19:43 Lincoln Stein
  1993-03-20 18:07 ` Matt Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Lincoln Stein @ 1993-03-19 19:43 UTC (permalink / raw)


I'm using a DEC 3000 alpha running prerelease OSF1.  Can someone tell
me whether it's possible to designate an additional file for swap
space without repartitioning a disk?

On a sun, it's easy to create a swap file using mkfile, and then
designate it as swap using swapon.  While OSF1 has swapon, it doesn't
seem to have an equivalent to mkfile.  I've tried creating a file of
0's and setting the sticky bit, but swapon complains that the "device
is not configured."

Any solutions?  I really would rather not repartition the disk.




-- 
========================================================================
Lincoln D. Stein
lstein@genome.wi.mit.edu	Whitehead Institute, Cambridge, MA
========================================================================


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-19 19:43 How to specify additional swap space on OSF1/alpha Lincoln Stein
@ 1993-03-20 18:07 ` Matt Thomas
  1993-03-22 10:16   ` ufe
  1993-03-23 18:46   ` Andreas Karrer
  0 siblings, 2 replies; 10+ messages in thread
From: Matt Thomas @ 1993-03-20 18:07 UTC (permalink / raw)



In article <1od7p0$i34@harpo.wi.mit.edu>, lstein@genome.wi.mit.edu (Lincoln Stein) writes:
|>I'm using a DEC 3000 alpha running prerelease OSF1.  Can someone tell
|>me whether it's possible to designate an additional file for swap
|>space without repartitioning a disk?
|>
|>On a sun, it's easy to create a swap file using mkfile, and then
|>designate it as swap using swapon.  While OSF1 has swapon, it doesn't
|>seem to have an equivalent to mkfile.  I've tried creating a file of
|>0's and setting the sticky bit, but swapon complains that the "device
|>is not configured."

Find an empty disk partition (but not an "a" parition or you may wipe out your
disklabel) and do:

	swapon /dev/rzXp

where X is the disk number and p is the parition (a-h).  To get it automaticlly
mounted, add it to /etc/fstab thusly (I'm using rz0b as the second swap
parition):

/dev/rz0g                       swap1                   ufs sw          0 2
/dev/rz0b                       swap2                   ufs sw          0 2

Another alternative to consider to switch your OSF/1 system to lazy allocation
swap space instead of the default eager allocation.  To do this, remove the
link /sbin/swapdefault (which is a symbolic link to the swap parition block
device entry in /dev).
--
Matt Thomas                            Internet:   thomas@lkg.dec.com
U*X Networking                         UUCP:       ...!decwrl!thomas
Digital Equipment Corporation          Disclaimer: This message reflects my own
Littleton, MA                                      warped views, etc.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-20 18:07 ` Matt Thomas
@ 1993-03-22 10:16   ` ufe
  1993-03-22 14:22     ` John Corne
  1993-03-22 17:03     ` Rick Murphy
  1993-03-23 18:46   ` Andreas Karrer
  1 sibling, 2 replies; 10+ messages in thread
From: ufe @ 1993-03-22 10:16 UTC (permalink / raw)




>Another alternative to consider to switch your OSF/1 system to lazy allocation
								^^^^^^^^^^^^^^^																								
>swap space instead of the default eager allocation.  To do this, remove the
				   ^^^^^^^^^^^^^^^^
>link /sbin/swapdefault (which is a symbolic link to the swap parition block
>device entry in /dev).

Please explain ! Also, according to the man pages, you can swap to a file.
Attempts to do this fail with errors suggesting swapon is expecting a
device not a file.

Cheers,
	Mark
========================================================================
Mark Enderby			   JANET - ENDERBY@UK.AC.DARESBURY
Systems Manager		  	   EARN/Bitnet - ENDERBY@DARESBURY.AC.UK
SERC Daresbury Laboratory
Keckwick Lane						
Daresbury
Warrington	tel:   0925-603353
WA4 4AD		Int:+44-925-603353
UK		fax:   0925-603174


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-22 10:16   ` ufe
@ 1993-03-22 14:22     ` John Corne
  1993-03-22 17:03     ` Rick Murphy
  1 sibling, 0 replies; 10+ messages in thread
From: John Corne @ 1993-03-22 14:22 UTC (permalink / raw)



--

In article <1ok3ld$7e5@mserv1.dl.ac.uk>, ufe@dlva.dl.ac.uk writes:
Path: uvo.dec.com!pa.dec.com!decwrl!uunet!pipex!bnr.co.uk!uknet!daresbury!daresbury!ufe
From: ufe@dlva.dl.ac.uk
Newsgroups: comp.unix.osf.osf1
Subject: Re: How to specify additional swap space on OSF1/alpha
Keywords: DEC alpha swap mkfile
Message-ID: <1ok3ld$7e5@mserv1.dl.ac.uk>
Date: 22 Mar 93 10:16:13 GMT
References: <1od7p0$i34@harpo.wi.mit.edu> <1993Mar20.180711.2110@nntpd.lkg.dec.com>
Sender: ufe@dlva ()
Reply-To: enderby@daresbury.ac.uk
Organization: SERC Daresbury Laboratory
Lines: 24
NNTP-Posting-Host: vxstn2.dl.ac.uk



>Another alternative to consider to switch your OSF/1 system to lazy allocation
								^^^^^^^^^^^^^^^																								
>swap space instead of the default eager allocation.  To do this, remove the
				   ^^^^^^^^^^^^^^^^
>link /sbin/swapdefault (which is a symbolic link to the swap parition block
>device entry in /dev).

>>>Please explain ! Also, according to the man pages, you can swap to a file.
>>>Attempts to do this fail with errors suggesting swapon is expecting a
>>>device not a file.
 
What version of OSF are you reading the man pages on?  On the latest release, 
[ DEC OSF/1 V1.2 (Rev. 10) ] the man pages say:-

  The swapon command is used to specify additional paging files. A paging
  file can be a block special device.  ([Digital only] DEC OSF/1 does not
  currently support paging and swapping to a regular file.  All swapping and
  paging areas must be block special devices.)

I believe that this was not correctly documented in the field test release.

------------------------------------------------------------------------
John Corne ( Jc )
All views are my own unless expicitly stated otherwise.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-22 10:16   ` ufe
  1993-03-22 14:22     ` John Corne
@ 1993-03-22 17:03     ` Rick Murphy
  1993-03-23  0:25       ` Fred Velijanian
  1 sibling, 1 reply; 10+ messages in thread
From: Rick Murphy @ 1993-03-22 17:03 UTC (permalink / raw)



Despite manpage comments describing how you can swap to a file, you can't.
You can only swap to a partition.

"eager" vs "lazy" -
"Eager" allocation is performed when the address space is created. 
"Lazy"  allocation is performed when you're about to swap.
In most cases, lazy allocation consumes less swap space - at a cost of
processes getting killed when they try to swap but can't allocate any more
swap space.
	-Rick
-- 
Rick Murphy, WA1SPT/4			Washington Open Systems Resource Center
Domain:  murphy@dco.dec.com		This posting expresses MY opinions only;
Bang:    decwrl!burfle.enet!murphy	 I do not speak for Digital.
Ding:    301-918-5883.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-22 17:03     ` Rick Murphy
@ 1993-03-23  0:25       ` Fred Velijanian
  1993-03-25  9:18         ` Balendra Elangco
  0 siblings, 1 reply; 10+ messages in thread
From: Fred Velijanian @ 1993-03-23  0:25 UTC (permalink / raw)


In article <1993Mar22.170314.6905@decuac.dec.com> murphy@burfle.dco.dec.com writes:
>
>Despite manpage comments describing how you can swap to a file, you can't.
>You can only swap to a partition.
>
Any hope of swaping to a file being implemented in the future? I've seen
this feature in SUNOS and it's very useful. Also being able to use
/tmp on top of the swap area as in SUNOS would be nice.

Fred Velijanian
UC Irvine
fredv@uci.edu



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-20 18:07 ` Matt Thomas
  1993-03-22 10:16   ` ufe
@ 1993-03-23 18:46   ` Andreas Karrer
  1993-03-23 21:00     ` Dave Sill
  1993-03-24 23:53     ` Inefficiency of filesystem paging (was Re: How to specify additional swap space on OSF1/alpha) Dan Mosedale
  1 sibling, 2 replies; 10+ messages in thread
From: Andreas Karrer @ 1993-03-23 18:46 UTC (permalink / raw)


thomas@lkg.dec.com (Matt Thomas) writes:

>In article <1od7p0$i34@harpo.wi.mit.edu>, lstein@genome.wi.mit.edu (Lincoln Stein) writes:
>|>On a sun, it's easy to create a swap file using mkfile, and then
>|>designate it as swap using swapon.

this is probably the most inefficient way to create more swapping space
on SunOS 4.x. swap files created with "mkfile" are ok for diskless
clients, but not for anything else. when you are swapping or paging, you want
to talk to as "raw" a disk as you can get.

>where X is the disk number and p is the parition (a-h).  To get it automaticlly
>mounted, add it to /etc/fstab thusly (I'm using rz0b as the second swap
>parition):

>/dev/rz0g                       swap1                   ufs sw          0 2
>/dev/rz0b                       swap2                   ufs sw          0 2

putting two swap areas onto the same disk is probably as inefficient as
the above "mkfile" thing. and i sure hope DEC OSF/1 ignores the "ufs"
and the "2" field in the above fstab excerpt... the man page -- under
T1.2-2 still -- suggests quite a different syntax.



+-----------
  Andi Karrer, Communication Systems, ETH Zuerich, Switzerland
  karrer@bernina.ethz.ch    - Objects in mirror are closer than they appear


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-23 18:46   ` Andreas Karrer
@ 1993-03-23 21:00     ` Dave Sill
  1993-03-24 23:53     ` Inefficiency of filesystem paging (was Re: How to specify additional swap space on OSF1/alpha) Dan Mosedale
  1 sibling, 0 replies; 10+ messages in thread
From: Dave Sill @ 1993-03-23 21:00 UTC (permalink / raw)


In article <1993Mar23.184645.19498@bernina.ethz.ch>, karrer@bernina.ethz.ch (Andreas Karrer) writes:
>
>this is probably the most inefficient way to create more swapping space
>on SunOS 4.x. swap files created with "mkfile" are ok for diskless
>clients, but not for anything else. when you are swapping or paging, you want
>to talk to as "raw" a disk as you can get.

It's nice to be able to do things efficiently, but it's even nicer to be able
to them at all.  Will Joe User care about efficiency if I can temporarily
increase his swap in 5 minutes versus waiting a week for me to find time to
stop by, dump his system, repartition the disk, and restore?  Don't you think
that's the user's decision, not the implementors?

-- 
Dave Sill (de5@ornl.gov)                 Computers should work the way beginners
Martin Marietta Energy Systems           expect them to, and one day they will.
Workstation Support                                                -- Ted Nelson


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Inefficiency of filesystem paging (was Re: How to specify additional swap space on OSF1/alpha)
  1993-03-23 18:46   ` Andreas Karrer
  1993-03-23 21:00     ` Dave Sill
@ 1993-03-24 23:53     ` Dan Mosedale
  1 sibling, 0 replies; 10+ messages in thread
From: Dan Mosedale @ 1993-03-24 23:53 UTC (permalink / raw)


karrer@bernina.ethz.ch (Andreas Karrer) writes:
>>In article <1od7p0$i34@harpo.wi.mit.edu>, lstein@genome.wi.mit.edu (Lincoln Stein) writes:
>>|>On a sun, it's easy to create a swap file using mkfile, and then
>>|>designate it as swap using swapon.
>
>this is probably the most inefficient way to create more swapping space
>on SunOS 4.x. swap files created with "mkfile" are ok for diskless
>clients, but not for anything else. when you are swapping or paging, you want
>to talk to as "raw" a disk as you can get.

But is it actually that bad?  To quote from O'Reilly's _System
Performance Tuning_:

"Filesystem paging is slightly less efficient than using a dedicated
swap partition.  In the best case, filesystem paging can equal the
speed of a dedicated swap partition, but this assumes special
high-performance filesystems that haven't generally been adopted by
UNIX vendors*.  [...]  Disk fragmentation is the big enemy of
filesystem swapping: paging performance is better if the file is one
contiguous area on the disk [...] fragmentation will be minimal if you
create swapping files on relatively new, relatively empty
filesystems."

* to which filesystems is the author referring?

Also, for those who haven't seen it, this book is by Mike Loukides,
published by O'Reilly & Associates, ISBN 0-937175-60-9.  It's
definitely a worthwhile book, and is very useful for picking out a
single chapter or section in order to see how you can optimize some
specific part of your sysmtem(s).

-Dan Mosedale
mosedale@genome.Stanford.EDU




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to specify additional swap space on OSF1/alpha
  1993-03-23  0:25       ` Fred Velijanian
@ 1993-03-25  9:18         ` Balendra Elangco
  0 siblings, 0 replies; 10+ messages in thread
From: Balendra Elangco @ 1993-03-25  9:18 UTC (permalink / raw)


In article <2BAE590D.13436@news.service.uci.edu>, fredv@abba.acs.uci.edu (Fred Velijanian) writes:

|> Any hope of swaping to a file being implemented in the future? I've seen
|> this feature in SUNOS and it's very useful. Also being able to use
|> /tmp on top of the swap area as in SUNOS would be nice.

Yep, it is currently under way.

-- 
Balendra Elangco		| The point of enhanced security is not
Alpha Resource Centre		| to stop all security problems; it is
Digital Equipment, Basingstoke 	| to make sure someone outside your
elangco@bst.dec.com		| network admin takes the blame.
				|		- Jeffrey Mogul (WRL).


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1993-03-25  9:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-03-19 19:43 How to specify additional swap space on OSF1/alpha Lincoln Stein
1993-03-20 18:07 ` Matt Thomas
1993-03-22 10:16   ` ufe
1993-03-22 14:22     ` John Corne
1993-03-22 17:03     ` Rick Murphy
1993-03-23  0:25       ` Fred Velijanian
1993-03-25  9:18         ` Balendra Elangco
1993-03-23 18:46   ` Andreas Karrer
1993-03-23 21:00     ` Dave Sill
1993-03-24 23:53     ` Inefficiency of filesystem paging (was Re: How to specify additional swap space on OSF1/alpha) Dan Mosedale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox