* Re: running out of memory
2002-04-29 7:56 running out of memory Jürgen Grigat
@ 2002-04-29 17:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2002-04-29 17:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3714 bytes --]
In article <3CCCFCAE.617FAF08@avitech.de>, =?iso-8859-1?Q?J=FCrgen?= Grigat <juergen.grigat@avitech.de> writes:
>we have a problem in loosing free memory. It occurs on two different machine
>types. The older one are Digital 2100 Server, upgraded to DU4.0f. The newer one
>are Compaq alpha server 4100, running DU4.0f too. We installed patch-kit
>duv40_990818 on both.
>
>Using top-tool we see, that the amount of free memory decreases. But this seems
>not to be caused by our own application processes.
>But there are running shell-scripts, coordinating data with a partner machine
>via LAN with a cycle time of 5 seconds.
>Our tests show that OS commands cause memory lack. e.g. find, tar.
Without a transcription of the error messages, it is hard to guess at
what the symtom really is. Free memory is very dynamic and not a good
indication of how much memory a system really has available. Whatever
memory isn't in use directly by processes is available to the buffer
cache for caching file I/O. If the data in the cache was read, giving
it back for processes that start to page is very cheap. Data written
requires I/O is more expensive. In many loads it is common and not at
all a problem for free memory to be low.
You also have to separate physical memory from virtual memory. Depending
on the amount of page/swap space configured and how it is configured, the
amount of virtual memory a system can may be significantly more or less
than the amount of real memory available.
Generally, when processes "run out of memory", it means either they
or the system has reached its virtual memory limit. The most common
error message of this symtom is "out of core", the message corresponding
to the ENOMEM, system call error code. At the system level, this is
mostly a function of the amount of page/swap space available. You can
use the swapon(8) command to see what the page/swap usage is. The value
of interest is typically the "Reserved space".
Processes also have limits on how much virtual memory they can use.
The default limits are typically 2 or 8 MB for stack space and 128
MB for data space. These can be raised to 32 MB for stack and 1 GB
for data. The command to change is particular to the shell you're
using, but usually ulimit or limit. See you shell's manual page
for more information.
These limits can be raised. Read the manual page for sysconfig(8)
and the system management documentation. If you don't have paper
copies, PDF and HTML copies are on the documentation CDROM that is
part of the system media set. Also, see if there sys_attrs_proc(5)
manual page. It will document the parameters that need to change
if you want to be able to use more virtual memory.
>So the origin of our problem may reside inside the OS.
>Does anyone in this community has an idea on this? Are there commands that do
>not free allocated memory after work is finished?
There may be, but generally, the problem is processes that are tying
up lots of page/swap space, thus limiting the amount of virtual memory
available. Physical memory is generally paged when idle, making it
available for use by some other process. Some programs do lock the
memory they use, making it unavailable for paging, but such programs
are uncommon. And, the kernel would most likely unlock the memory when
they exit. Kernel and process memory leaks exist, but there shouldn't
be any in V4.0F, unless they came from applications not part of the
base system.
>Any hints are welcome.
>
>--
>Best Regards
>
>J�rgen Grigat
>
>Avitech Aviation Management Technologies GmbH, D-88045 Friedrichshafen
>E-mail: juergen.grigat@avitech.de
>
>
>
--
Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com)
^ permalink raw reply [flat|nested] 2+ messages in thread