Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: Swap space
       [not found] <2afn8a$6tl@huon.itd.adelaide.edu.au>
@ 1993-10-29  0:23 ` Mike Coleman
  1993-11-02 17:07   ` Sergio L Aponte
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Coleman @ 1993-10-29  0:23 UTC (permalink / raw)


mferrare@physics.adelaide.edu.au (Mark Ferraretto) writes:
|How do you tell how much swap you have left under OSF/1  I have an alpha
|500 that keeps on saying reached 10% of swap space or something like that.
|There is  no pstat command so how do I do it?

Say swapon -s.  You don't need to be root.

Note that on a DEC OSF machine as shipped, only about 10% of your swap
partition is usable.  Or, to put it another way, you need about ten times as
much swap space as you would need on a typical Unix box in order to support
the same amount of activity.


-- 
		   Prodigy--The network for censored minds.


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

* Re: Swap space
  1993-10-29  0:23 ` Mike Coleman
@ 1993-11-02 17:07   ` Sergio L Aponte
  1993-11-03 19:47     ` Dr Marco Luchini
  0 siblings, 1 reply; 12+ messages in thread
From: Sergio L Aponte @ 1993-11-02 17:07 UTC (permalink / raw)


Mike Coleman (coleman@sparc1.cstp.umkc.edu) wrote:
: mferrare@physics.adelaide.edu.au (Mark Ferraretto) writes:
: |How do you tell how much swap you have left under OSF/1  I have an alpha
: |500 that keeps on saying reached 10% of swap space or something like that.
: |There is  no pstat command so how do I do it?

: Say swapon -s.  You don't need to be root.

: Note that on a DEC OSF machine as shipped, only about 10% of your swap
: partition is usable.  Or, to put it another way, you need about ten times as
: much swap space as you would need on a typical Unix box in order to support
: the same amount of activity.

	Well, after some research, I found some info. Actually, it is explained
	in the OSF manual System Admin chapter 7 files and file systems.

	It would seem OSF on the Alpha (everywhere?) can do swapping two 
	different ways. The default one (at least on our machine), the OS
	reserves a page of swap for every modified page in memory, even if no
	swapping is been done. This caused our 64Mb mach to run out of 84Mb swap
	for the simplest of operations (like a compile), when it wasn't even
	swapping yet. You just run out of space to reserve.

	The second way is to go get a page of swap WHEN YOU NEED TO SWAP.
	The danger implied is that, under heavy load, if you need to swap and
	you ran out of swap, that process might die.

	So, we eliminated a link from /sbin/swapdefault to the swap device
	and rebooted. With the link gone, you run under method #2. With the
	link there, you run method #1. After this, we were able to compile
	programs, run Windows, etc, etc without the 10% deal...

	Off course, you assume responsability for not running out of swap...

	Hope this helps.

: -- 
: 		   Prodigy--The network for censored minds.

--
==========================================================================
Sergio L. Aponte, The ASK Group, Inc.
Internet : sergio@ingres.com
UUCP     : {sun,mtxinu,pyramid,pacbell}!ingres!sergio


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

* Re: Swap space
  1993-11-02 17:07   ` Sergio L Aponte
@ 1993-11-03 19:47     ` Dr Marco Luchini
  1993-11-05 20:44       ` Dave Cherkus
  0 siblings, 1 reply; 12+ messages in thread
From: Dr Marco Luchini @ 1993-11-03 19:47 UTC (permalink / raw)


In article <1993Nov2.170700.24342@pony.Ingres.COM> sergio@Ingres.COM (Sergio L Aponte) writes:

}	   So, we eliminated a link from /sbin/swapdefault to the swap device
}	   and rebooted. With the link gone, you run under method #2. With the
}	   link there, you run method #1. After this, we were able to compile
}	   programs, run Windows, etc, etc without the 10% deal...
}
}	   Off course, you assume responsability for not running out of swap...

I think it would be fair to point out that OSF is the only major OS to
allow one to change the swapping strategy.  In this way
"mission-critical" machines can guarantee that they won't crash from
running out of swap and the rest of us don't need that much swap at all.

It is possibly a mistake that factory installed machines come with
'eager' swap allocation.  It generates a lot of confusion until one gets
round to reading the Sys Admin manual.

In fact swap usage seems to have decreased in general under 1.3 compared
to 1.2.


Ciao,							Marco
--

-------------------------------------------------------------------------
Marco Luchini                            Internet : m.luchini@ic.ac.uk
Department of Mathematics                Telephone: +44 71 589 5111 x5765     
Imperial College                               Fax: +44 71 225 8361
London SW7 2BZ, UK                             
-------------------------------------------------------------------------


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

* Re: Swap space
  1993-11-03 19:47     ` Dr Marco Luchini
@ 1993-11-05 20:44       ` Dave Cherkus
  1993-11-09 18:37         ` Dan Mosedale
  0 siblings, 1 reply; 12+ messages in thread
From: Dave Cherkus @ 1993-11-05 20:44 UTC (permalink / raw)


In article <LUCHINI.93Nov3144730@mega.ic.ac.uk>, luchini@ic.ac.uk (Dr Marco Luchini) writes:
|> I think it would be fair to point out that OSF is the only major OS to
|> allow one to change the swapping strategy.  In this way
|> "mission-critical" machines can guarantee that they won't crash from
|> running out of swap and the rest of us don't need that much swap at all.

One counter example is IBM AIX which is always in lazy mode.  When it
runs out of swap it kills procs that don't catch a certain signal...
Thus you are forced to recode critical apps to catch that signal but if
you do this to all your critical apps you'll defeat the purpose of the
mechanism.

|> It is possibly a mistake that factory installed machines come with
|> 'eager' swap allocation.  It generates a lot of confusion until one gets
|> round to reading the Sys Admin manual.

The reason has to do with one of the standards (XPG4 or SVID or POSIX,
etc.).  To comply with the standard, when malloc/sbrk returns success,
there must be a page of backing store allocated for the buffer.  By
changing the configuration, in essence you and not DEC are the one
creating non-compliance with the spec...

|> In fact swap usage seems to have decreased in general under 1.3 compared
|> to 1.2.

From what I've heard, work to reduce memory consumption has been going
on since 1.2 and is still going on as we speak for 2.x and later.  It's
an ongoing battle: for each page you save, someone else is adding new
function to consume it...

----
Dave Cherkus          UniMaster, Inc.         cherkus@unimaster.com 


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

* Re: Swap space
  1993-11-05 20:44       ` Dave Cherkus
@ 1993-11-09 18:37         ` Dan Mosedale
  0 siblings, 0 replies; 12+ messages in thread
From: Dan Mosedale @ 1993-11-09 18:37 UTC (permalink / raw)


cherkus@UniMaster.COM writes:
> luchini@ic.ac.uk (Dr Marco Luchini) writes:
>|> It is possibly a mistake that factory installed machines come with
>|> 'eager' swap allocation.  It generates a lot of confusion until one gets
>|> round to reading the Sys Admin manual.
>
>The reason has to do with one of the standards (XPG4 or SVID or POSIX,
>etc.).  To comply with the standard, when malloc/sbrk returns success,
>there must be a page of backing store allocated for the buffer.  By
>changing the configuration, in essence you and not DEC are the one
>creating non-compliance with the spec...

And a good idea, too.  Expecting a new admin to learn something about
the kernel to do performance tuning is quite reasonable, whereas
having to understand the kernel to keep processes from getting killed
out from under you is not! 
-- 
Dan Mosedale, Systems Admin            Email: mosedale@genome.Stanford.EDU
Stanford Genetics Department


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

* swap space
@ 1994-10-21 20:48 Pradeep Balachandran
  1994-10-26 12:08 ` Jens Bloch Nielsen
  0 siblings, 1 reply; 12+ messages in thread
From: Pradeep Balachandran @ 1994-10-21 20:48 UTC (permalink / raw)


--
      Pradeep Balachandran
      Dept. of Physics & Astronomy
      LSU - Baton Rouge
      email: pradeep@phzeus.phys.lsu.edu
Hi 


I am running osf1 on an alpha with 94 Mb of memory. On my system
the swap area is configured to be 128 Mb.  From time to time
I get the message "swap space below 10%".  But when I check
for swap space utilization using swapon -s, I see that only
15% of the swap space is really in use, and the rest is free.
Can anyone tell me why I still get the message.  I think the
rule of the thumb is that the swap space in Mb should be atleast
twice the available memory on the system.  Could this be the 
reason why the system is complaining? Any input on this problem
will be appreciated.

Thanx.



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

* Re: swap space
  1994-10-21 20:48 swap space Pradeep Balachandran
@ 1994-10-26 12:08 ` Jens Bloch Nielsen
  1994-10-27 19:17   ` Tim Llewellyn
  0 siblings, 1 reply; 12+ messages in thread
From: Jens Bloch Nielsen @ 1994-10-26 12:08 UTC (permalink / raw)


In <3899eg$1fu1@te6000.otc.lsu.edu> pradeep@phzeus.phys.lsu.edu (Pradeep Balachandran) writes:

>I am running osf1 on an alpha with 94 Mb of memory. On my system
>the swap area is configured to be 128 Mb.  From time to time
>I get the message "swap space below 10%".  But when I check
>for swap space utilization using swapon -s, I see that only
>15% of the swap space is really in use, and the rest is free.
>Can anyone tell me why I still get the message.  I think the
>rule of the thumb is that the swap space in Mb should be atleast
>twice the available memory on the system.  Could this be the 
>reason why the system is complaining? Any input on this problem
>will be appreciated.

>Thanx.

Remove the file /sbin/swapdefault (actually a link to the swap-device). 
Then memory will first be allocated when a programs really needs it (deferred 
swapping).
When the file exists all requested memory will be allocated whether it's 
needed (in use) by a program or not.

Jens
 
-- 
-- 
[ Jens Bloch Nielsen                    email:  jbn@stl.dk           ]
[ Lyngsoe Energi & Miljoe               phone:  +45 4576 7300 - 4352 ]
[ Lyngsoe Alle, DK-2970 Hoersholm       fax:    +45 4576 7100        ]


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

* Re: swap space
  1994-10-26 12:08 ` Jens Bloch Nielsen
@ 1994-10-27 19:17   ` Tim Llewellyn
  0 siblings, 0 replies; 12+ messages in thread
From: Tim Llewellyn @ 1994-10-27 19:17 UTC (permalink / raw)



In article <CyA4DM.Lv8@stl.dk>, jbn@stl.dk (Jens Bloch Nielsen) writes:

|>
|>In <3899eg$1fu1@te6000.otc.lsu.edu> pradeep@phzeus.phys.lsu.edu (Pradeep
|>Balachandran) writes:
|>
|>>I am running osf1 on an alpha with 94 Mb of memory. On my system
|>>the swap area is configured to be 128 Mb.  From time to time
|>>I get the message "swap space below 10%".  But when I check
|>>for swap space utilization using swapon -s, I see that only
|>>15% of the swap space is really in use, and the rest is free.
|>>Can anyone tell me why I still get the message.  I think the
|>>rule of the thumb is that the swap space in Mb should be atleast
|>>twice the available memory on the system.  Could this be the 
|>>reason why the system is complaining? Any input on this problem
|>>will be appreciated.
|>
|>>Thanx.
|>
|>Remove the file /sbin/swapdefault (actually a link to the swap-device). 
|>Then memory will first be allocated when a programs really needs it (deferred
|>|>swapping).
|>When the file exists all requested memory will be allocated whether it's 
|>needed (in use) by a program or not.
|>

True, but then according to the System Tuning and Performance Management
manul, OSF/1 V3.0, Section 3.5.3, "because deferred mode does not reserve
swap space in advance, the swap space may not be available when it is needed
by the task and the processes may be killed asynchronously" !

So I suppose it depends whether you consider it acceptable that processes just
die for nop other reason than lack of swap space, which mode you use.
|
>Jens

-- 
-----------------------------------------------------+------------------+
Tim Llewellyn - OpenVMS, Soukous and Cricket Addict  |Hey, and get wise |
Physicist Programmer, Bristol Uni Particle Physics.  | to the sounds of |
HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk  |   Africa,seen.   |
I speak for me and noone else OK (and I might even   | Soukous  Makossa |
change my mind sometimes!-) Atari and EMagic user too| Mbalax   Rumba...|
-----------------------------------------------------+------------------+
I neither love OpenVMS nor hate OSF/1, for they are both just tools I use


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

* Swap space
@ 1997-04-07  4:00 Jeffrey Potoff
  1997-04-09  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 12+ messages in thread
From: Jeffrey Potoff @ 1997-04-07  4:00 UTC (permalink / raw)



I have an Alpha running DU 4.0b with 256 mb ram and 128 mb of 
swap space.  When running some computational work I keep
getting 'swap space below 10%' and a grumpy machine, even
though the free memory reads 54%.  Swapon -s reveals that all
of the swap space has been allocated, but none of it's being
used.  

I checked the man page on swapon and it talked about immediate
vs deferred mode.  It appears that I'm running the default 
immediate mode, since all the swap is being allocated but not
actually used.  Is there an easy way to increase the amount
of swap space ?  The man page made it sound like I needed to
create a new partion on my disk which makes me nervous since I have
the OS and user data on the hard drive and there aren't any 'free'
partitions.  In this case, would it be better to go to deferred 
mode ?  Are there any dangers in doing that ?

Thanks,
	Jeff



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

* Re: Swap space
  1997-04-07  4:00 Swap space Jeffrey Potoff
@ 1997-04-09  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 12+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1997-04-09  4:00 UTC (permalink / raw)




In article <33498C4B.41C6@latoso.cheme.cornell.edu>, Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> writes:

>
> [ Customer is running the default page/swap allocation/reserveration
>   mode.

>Is there an easy way to increase the amount
>of swap space ?  

Yes, but as you next statement notes, getting to the point of
having a spare partition will be the hard part.  Once you have
a spare partition for more page/swap space, running swapon
with the block device of that partition is very easy.

>The man page made it sound like I needed to
>create a new partion on my disk which makes me nervous since I have
>the OS and user data on the hard drive and there aren't any 'free'
>partitions.

As you say, getting to the point of having a spare partition will
be the hard part.

>In this case, would it be better to go to deferred 
>mode ?  Are there any dangers in doing that ?

One.

The default page/swap allocation method reserves the page/swap
space needed for virtual memory when the memory is created.  If you
ever need it, you know it will be there.  The problem (as you noticed)
is that it limits the amount of virtual memory available to the amount
of page/swap space.

Deferred mode doesn't reserve the space.  It raises the limit of
virtual memory to the same of available memory and the amount of
page/swap space.  But, if you run out of page/swap space things
can get bad.  If something needs to page and there is no page/swap
space available for it, the kernel will kill off likely looking
processes until it has the space it needs.  I think it prefers to
start with the most idle processes and works its way to the 
less idle ones.  It may have some clue that certain processes
are more important than others (X servers, init, etc) but in
extreme conditions it can make the system hard to use.

If you have close control over how much virtual memory your
application will use and how much the system needs over all
you can take advantage of deferred mode to reduce the page/swap
needs.  If you can't predict what the memory use will be or
have users bent on making your system unusable, you don't
want to use deferred.

>
>Thanks,
>	Jeff
>
--
Alan Rollow				alan@nabeth.cxo.dec.com




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

* Swap Space
@ 1999-11-24  5:00 Thomas Kofoed-Andersen
  1999-11-24  5:00 ` Jesper Frank Nemholt
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Kofoed-Andersen @ 1999-11-24  5:00 UTC (permalink / raw)


Using True64 on Alpha Workstation, different models but I see the error on
all machines.

Please can anybody explain what it means, and what can I do to prevent it.

Thanks

tka@mailme.dk





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

* Re: Swap Space
  1999-11-24  5:00 Swap Space Thomas Kofoed-Andersen
@ 1999-11-24  5:00 ` Jesper Frank Nemholt
  0 siblings, 0 replies; 12+ messages in thread
From: Jesper Frank Nemholt @ 1999-11-24  5:00 UTC (permalink / raw)


Thomas Kofoed-Andersen wrote:
> 
> Using True64 on Alpha Workstation, different models but I see the error on
> all machines.
> 
> Please can anybody explain what it means, and what can I do to prevent it.


What error message ?


l8r/Jspr



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

end of thread, other threads:[~1999-11-24  5:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-21 20:48 swap space Pradeep Balachandran
1994-10-26 12:08 ` Jens Bloch Nielsen
1994-10-27 19:17   ` Tim Llewellyn
  -- strict thread matches above, loose matches on Subject: below --
1999-11-24  5:00 Swap Space Thomas Kofoed-Andersen
1999-11-24  5:00 ` Jesper Frank Nemholt
1997-04-07  4:00 Swap space Jeffrey Potoff
1997-04-09  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
     [not found] <2afn8a$6tl@huon.itd.adelaide.edu.au>
1993-10-29  0:23 ` Mike Coleman
1993-11-02 17:07   ` Sergio L Aponte
1993-11-03 19:47     ` Dr Marco Luchini
1993-11-05 20:44       ` Dave Cherkus
1993-11-09 18:37         ` Dan Mosedale

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