From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,554ba6912286ad13 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-29 09:55:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.utk.edu!washdc3-snf1!washdc3-snh1.gtei.net!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!cacnews.cac.cpqcorp.net!53ab2750!not-for-mail Newsgroups: comp.unix.tru64 From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world References: <3CCCFCAE.617FAF08@avitech.de> Reply-To: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: running out of memory Message-ID: Date: Mon, 29 Apr 2002 17:00:07 GMT NNTP-Posting-Host: 16.112.5.128 X-Complaints-To: abuse@Compaq.com X-Trace: cacnews.cac.cpqcorp.net 1020099607 16.112.5.128 (Mon, 29 Apr 2002 10:00:07 PDT) NNTP-Posting-Date: Mon, 29 Apr 2002 10:00:07 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:7399 In article <3CCCFCAE.617FAF08@avitech.de>, =?iso-8859-1?Q?J=FCrgen?= Grigat 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)