Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Q: Running out of swap
@ 1999-04-28  4:00 Karl N. Matthias
  1999-04-29  4:00 ` Peter da Silva
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Karl N. Matthias @ 1999-04-28  4:00 UTC (permalink / raw)


	I'm a newish Digital/Tru64 UNIX admin though I'm quite experienced
on Solaris and various BSD's.  I'm running into something which I have
rarely seen on other systems.  When I run large apps or long compiles (ie
push the memory limit) I get the following:

swap space below 10 percent free

	This is strange to me since I have about 128 MB of swap and 128 MB
of RAM.  Even the biggest compiles or apps I run shouldn't be coming close
to this limit!  I was thinking I should have someting more like 256 MB of
swap if this is more like the BSDs than SysV, but still, I don't see why
this should happen...  anyone seen this?  Am I just being dumb?

vmstat reads like this on a basically idle system running X, 4 xterms and
netscape:

Virtual Memory Statistics: (pagesize = 8192)
  procs    memory         pages                          intr        cpu      
  r  w  u  act  free wire fault cow zero react pin pout  in  sy  cs  us
sy  id
  3 57 22  9029 3349 2010   2M 649K   1M  21K 619K 2878   8 923 342   1
0  99

Any help much appreciated!

Thanks
Karl





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

* Re: Q: Running out of swap
  1999-04-28  4:00 Q: Running out of swap Karl N. Matthias
  1999-04-29  4:00 ` Peter da Silva
@ 1999-04-29  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1999-04-29  4:00 ` Rostislav Kouznetsov
  1999-05-07  4:00 ` Q: " SHass88010
  3 siblings, 0 replies; 5+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1999-04-29  4:00 UTC (permalink / raw)



In article <Pine.GSO.3.96.990428231519.27106A-100000@odin>, "Karl N. Matthias" <karmat@matthias.org> writes:

>	I'm a newish Digital/Tru64 UNIX admin though I'm quite experienced
>on Solaris and various BSD's.  I'm running into something which I have
>rarely seen on other systems.  When I run large apps or long compiles (ie
>push the memory limit) I get the following:
>
>swap space below 10 percent free

Digital UNIX (Tru64 UNIX and DEC OSF/1) offers two methods of page
and swap space *reservation*; it does or it doesn't.  The default
is that it does.  When virtual memory is create, that may need
page and swap space, the amount needed is reserved.  This ensures
that if it is needed, it will be available.  The affect is to limit
the amount of virtual memory to the amount of page/swap space
available.  The message you see is a warning that the available
space is about to run out.  Running out will simply prevent the
process from starting or allocating more virtual memory.

The alternative to reserving page and swap space is not to.  To
get this method delete /sbin/swapdefault and reboot.  The advantage
is that the amount of virtual memory that can be created is now
limited by the sum of available and page/swap space.  The risk is
that there may be more virtual memory created than there is page
and swap space for it to be written out.  If a process is paged
or swapped and there isn't enough space for it, idle processes
will be killed to get their space.

If you can reliably control your page/swap space usage, the
non-reservation method offers an opportunity to configure
only as much space as is needed.  If you can't control the
usage, it offers the malicious user an opportunity to deny
service to relatively idle processes.

>Karl
>
>
>

--
Alan Rollow				alan@nabeth.cxo.dec.com




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

* Re: Running out of swap
  1999-04-28  4:00 Q: Running out of swap Karl N. Matthias
  1999-04-29  4:00 ` Peter da Silva
  1999-04-29  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1999-04-29  4:00 ` Rostislav Kouznetsov
  1999-05-07  4:00 ` Q: " SHass88010
  3 siblings, 0 replies; 5+ messages in thread
From: Rostislav Kouznetsov @ 1999-04-29  4:00 UTC (permalink / raw)



Karl N. Matthias wrote in message ...
> I'm a newish Digital/Tru64 UNIX admin though I'm quite experienced
>on Solaris and various BSD's.  I'm running into something which I have
>rarely seen on other systems.  When I run large apps or long compiles (ie
>push the memory limit) I get the following:
>
>swap space below 10 percent free
>
> This is strange to me since I have about 128 MB of swap and 128 MB

1)I guess, minimal swap space is size of RAM.

2)I advise you to make the size of swap equals 3 times of the RAM. This
configuration is easy to use with "paging" algorithm of virtual memory.
"Paging" is standard algorithm for Digital UNIX.

3)It's the most usable configuration of swap for Digital UNIX. If you use
memory-hungry applications, such as Oracle, SAP, BAAN, you should increase
swap up to 4 or even 5 times. It's required when "swapping" algorithm was
used.

4) Also, you can choose from two modes of virtual memory: Lazy and Eager.
Lazy mode doesn't reserve any swap space before downloading memory pages to
disk.
Eager mode reserves swap space by virtual memory allocation request. Read
the docs for tuning guidelines.


>of RAM.  Even the biggest compiles or apps I run shouldn't be coming close
>to this limit!  I was thinking I should have someting more like 256 MB of
>swap if this is more like the BSDs than SysV, but still, I don't see why
>this should happen...  anyone seen this?  Am I just being dumb?
>
>vmstat reads like this on a basically idle system running X, 4 xterms and
>netscape:
>
>Virtual Memory Statistics: (pagesize = 8192)
>  procs    memory         pages                          intr        cpu
>  r  w  u  act  free wire fault cow zero react pin pout  in  sy  cs  us
>sy  id
>  3 57 22  9029 3349 2010   2M 649K   1M  21K 619K 2878   8 923 342   1
>0  99
>
>Any help much appreciated!
>
>Thanks
>Karl
>
>

Regards,
Rostislav Kouznetsov





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

* Re: Q: Running out of swap
  1999-04-28  4:00 Q: Running out of swap Karl N. Matthias
@ 1999-04-29  4:00 ` Peter da Silva
  1999-04-29  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Peter da Silva @ 1999-04-29  4:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

>swap space below 10 percent free

>	This is strange to me since I have about 128 MB of swap and 128 MB
>of RAM.  Even the biggest compiles or apps I run shouldn't be coming close
>to this limit!

If you're using "greedy swap", then it preallocates swap space for everything
in physical memory. To switch to "lazy swap" delete /sbin/swapdefault, which
is a symlink to the partition that you want to back memory with.

By the way, don't listen to anyone who tells you to allocate X times real
memory to swap partitions. Figure out how much VM you will need, allocate
that much space, and add 1x real memory if you're using greedy swap. RAM
is basically a cache for swap space, and having more RAM than one of these
algorithms says you "should" have just means you'll get a better hit ratio,
so long as you have enough swap in the first place.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   Ar rug t� barr�g ar do mhact�re inniu? 
  'U`   "Twenty-two points, plus triple-word-score, plus fifty points for
         using all my letters.  Game's over.  I'm outta here."



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

* Re: Q: Running out of swap
  1999-04-28  4:00 Q: Running out of swap Karl N. Matthias
                   ` (2 preceding siblings ...)
  1999-04-29  4:00 ` Rostislav Kouznetsov
@ 1999-05-07  4:00 ` SHass88010
  3 siblings, 0 replies; 5+ messages in thread
From: SHass88010 @ 1999-05-07  4:00 UTC (permalink / raw)


The Alpha compilers/linkers that you are running may take up a lot of memory if
they are running with full optimization. There should be a compiler option to
enable/disable in-lining. In-lining is an option that takes the loop out of
loops, laying out a loop in one continuous stream of code. This eliminates
inefficient branch instructions, but takes up a lot more space and memory.
Check the vitrual memory allocation for the process. It may be very high. Check
also for additional processes, which may also use lots of memory, if you are
using make. I usually use VMS on Alpha and have only recently started Unix, so
I don't know the details in Unix, but the above is true on VMS, so it's
probably true on DEC Unix. Make sure the inline switch is off unless you cannot
afford anything less than the best performance all the time. I don't think that
128MB sounds like much for a swap file if you have multiple process using lots
of VM. Your page fault count looks very high. You could be paging to your swap
file. This could be the result of allocating too little memory to a process,
resulting in heavy page/swap file usage.



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

end of thread, other threads:[~1999-05-07  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-28  4:00 Q: Running out of swap Karl N. Matthias
1999-04-29  4:00 ` Peter da Silva
1999-04-29  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-04-29  4:00 ` Rostislav Kouznetsov
1999-05-07  4:00 ` Q: " SHass88010

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