Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* low swap space on AlphaStation 250 4/266
@ 1996-05-28  4:00 Gregg E. Dinse
  1996-05-29  4:00 ` Murray S. Kucherawy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gregg E. Dinse @ 1996-05-28  4:00 UTC (permalink / raw)



Hi,

Well, this is my first time posting here, so please go easy  
on me!  Also, I am not a systems administration person, as  
will become abundantly obvious is a moment.

Our group has a DEC AlphaStation (model 250 4/266), which  
is running DEC's version of UNIX.  The system has 128-mb of  
RAM and two hard drives: a 1-gb drive with the operating  
system on it and a 4-gb drive for user files.

We keep getting a message in the console that says the  
available swap space is below 10%.  We have had to reboot  
the system a few times after it hung, and I am assuming  
that this is related to the low swap space.

Is there a relatively simple way to increase the amount of  
swap space, or can this only be done when installing the  
operating system?  If the current system can be modified,  
where should I look for instructions on doing this?  Is it  
simple enough to explain in an email message?

I don't feel very comfortable messing with the operating  
system on my own, so I'm looking for a little advice.  I  
opened an Xterm and typed "df".  Here is what I got:

Filesystem    512-blocks    Capacity    Mounted On
/dev/rz0a       126,462        84%        /
/proc              0          100%        /proc
/dev/rz0g     1,603,526        76%        /usr
/dev/rz1c     8,131,716         7%        /Users

Does this help at all?  I assume the system disk has  
several partitions (at least a and g -- I don't know where  
b through f are).  Also, I don't know what /proc is.

Can anyone steer me in the right direction?  Thanks in  
advance for any help.  Bye,

Gregg

===========================
Gregg Dinse
x4931
dinse@catatac.niehs.nih.gov



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

* Re: low swap space on AlphaStation 250 4/266
  1996-05-28  4:00 low swap space on AlphaStation 250 4/266 Gregg E. Dinse
@ 1996-05-29  4:00 ` Murray S. Kucherawy
  1996-06-03  4:00 ` ccx062
  1996-06-04  4:00 ` "Mark Jeffery"
  2 siblings, 0 replies; 4+ messages in thread
From: Murray S. Kucherawy @ 1996-05-29  4:00 UTC (permalink / raw)



In article <4ofk0t$svi@jeeves.niehs.nih.gov>,
Gregg E. Dinse <dinse@catatac.niehs.nih.gov> wrote:
>Well, this is my first time posting here, so please go easy  
>on me!  Also, I am not a systems administration person, as  
>will become abundantly obvious is a moment.
>
>Our group has a DEC AlphaStation (model 250 4/266), which  
>is running DEC's version of UNIX.  The system has 128-mb of  
>RAM and two hard drives: a 1-gb drive with the operating  
>system on it and a 4-gb drive for user files.
>
>We keep getting a message in the console that says the  
>available swap space is below 10%.  We have had to reboot  
>the system a few times after it hung, and I am assuming  
>that this is related to the low swap space.
>
>Is there a relatively simple way to increase the amount of  
>swap space, or can this only be done when installing the  
>operating system?  If the current system can be modified,  
>where should I look for instructions on doing this?  Is it  
>simple enough to explain in an email message?
>
>I don't feel very comfortable messing with the operating  
>system on my own, so I'm looking for a little advice.  I  
>opened an Xterm and typed "df".  Here is what I got:
>
>Filesystem    512-blocks    Capacity    Mounted On
>/dev/rz0a       126,462        84%        /
>/proc              0          100%        /proc
>/dev/rz0g     1,603,526        76%        /usr
>/dev/rz1c     8,131,716         7%        /Users

Looks to me like you haven't got anywhere to put more swap space without
reformatting your /Users drive or installing another disk.

Use "swapon -s" as root to figure out your swap usage and availability.
Our policy here is to run 4 times as much swap as physical, so you should
be running 512Mb of swap space.  The swap space doesn't need to be all
in one place, so you could make a partition that brings your swap total
up to 512Mb.  This is actually better because then the swapping is spread
over two disks, avoiding a bottleneck.

The procedure's pretty easy though:

(1) Partition a drive with "disklabel"; make a partition for swap and
    one or more partitions for regular files
(2) newfs the partition(s) on the drive that will contain regular filesystems
(3) create mount points with "mkdir" for the regular filesystems
(4) add the swap and regular partitions to /etc/fstab
(5) reboot, or just type "swapon -a" to add the additional swap space

If you're not able to add any disk to that machine, you'll need to
back up /Users, repartition and reformat that drive, and then restore the
data.

>Does this help at all?  I assume the system disk has  
>several partitions (at least a and g -- I don't know where  
>b through f are).  Also, I don't know what /proc is.

It's a filesystem which contains all active processes.  You can open
/proc/1 and look at the virtual memory contents of the process whose
PID is 1, for example.

>Can anyone steer me in the right direction?  Thanks in  
>advance for any help.  Bye,
>
>Gregg
>
>===========================
>Gregg Dinse
>x4931
>dinse@catatac.niehs.nih.gov


-- 
Murray S. Kucherawy ====================================== mskucher@hookup.net
Vice-President, Engineering                   HookUp Communication Corporation
(905) 847-8000                NIC Handle "MSK"       Oakville, Ontario, CANADA
--                EMACS: Eight Megs And Constantly Swapping                 --



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

* Re: low swap space on AlphaStation 250 4/266
  1996-05-28  4:00 low swap space on AlphaStation 250 4/266 Gregg E. Dinse
  1996-05-29  4:00 ` Murray S. Kucherawy
@ 1996-06-03  4:00 ` ccx062
  1996-06-04  4:00 ` "Mark Jeffery"
  2 siblings, 0 replies; 4+ messages in thread
From: ccx062 @ 1996-06-03  4:00 UTC (permalink / raw)



In article <4ofk0t$svi@jeeves.niehs.nih.gov>,
Gregg E. Dinse <dinse@catatac.niehs.nih.gov> wrote:
>
>Our group has a DEC AlphaStation (model 250 4/266), which  
>is running DEC's version of UNIX.  The system has 128-mb of  
>RAM and two hard drives: a 1-gb drive with the operating  
>system on it and a 4-gb drive for user files.
>
>We keep getting a message in the console that says the  
>available swap space is below 10%.  We have had to reboot  
>the system a few times after it hung, and I am assuming  
>that this is related to the low swap space.
>
>Is there a relatively simple way to increase the amount of  
>swap space, or can this only be done when installing the  
>operating system?  If the current system can be modified,  
>where should I look for instructions on doing this?  Is it  
>simple enough to explain in an email message?

Ahh....what type of swap is enabled on your system ?
Do a man swapon and look at the details about immediate and
deferred swapping.

When you install the O/S, by default you get immediate swap mode.
This means that the system will allocate swap space when a process
is started, so it even allocates it when it isnt needed.  Deferred
swap mode will only allocate swap when the system is running out of
memory and starts swapping.

We kept getting similar messages, so we removed the /sbin/swapdefault
symbolic link and we havent seen one of these messages since :-)

Hope this helps.



-- 
------------------------------------------------------------------------------
		Chris Taylor:	ChrisT@coventry.ac.uk  
	Coventry University, Computing Services.    Tel: (01203) 838641
------------------------------------------------------------------------------



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

* Re: low swap space on AlphaStation 250 4/266
  1996-05-28  4:00 low swap space on AlphaStation 250 4/266 Gregg E. Dinse
  1996-05-29  4:00 ` Murray S. Kucherawy
  1996-06-03  4:00 ` ccx062
@ 1996-06-04  4:00 ` "Mark Jeffery"
  2 siblings, 0 replies; 4+ messages in thread
From: "Mark Jeffery" @ 1996-06-04  4:00 UTC (permalink / raw)



Hi,

To check out the amount of swapspace in use, enter the following command:

# swapon -s

This will give a summary of swap space usage.

One thing that is commonly done is to remove the file /sbin/swapdefault 
(This is a symbolic link to the swap device file).

If the system doesn't see this file, it enters a "lazy" mode, meaning 
that it only allocates swap space for a process when it needs it. The 
default "eager" mode allocates sufficient swap space for a process when 
it starts up. There is a possibility that processes will get killed off 
by the system if it is in lazy mode though.

Another desirable thing is to back up your user disk (if it has enough 
space), move partitions around (with disklabel) so that there is a 
partition with a couple of hundred Megabytes on it. You can then edit the 
fstab and copy the entry for the original swapfile with a new one. 
Digital UNIX likes to have two swapfiles to play with.

Mark Jeffery



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

end of thread, other threads:[~1996-06-04  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-28  4:00 low swap space on AlphaStation 250 4/266 Gregg E. Dinse
1996-05-29  4:00 ` Murray S. Kucherawy
1996-06-03  4:00 ` ccx062
1996-06-04  4:00 ` "Mark Jeffery"

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