From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3bc24e4a631ce7f5 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-07-30 16:02:33 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!nabeth.cxo.dec.com!alan Newsgroups: comp.sys.dec From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world References: Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Memory Usage Message-ID: Date: Mon, 30 Jul 2001 23:02:31 GMT NNTP-Posting-Host: 16.82.16.67 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 996534151 16.82.16.67 (Mon, 30 Jul 2001 16:02:31 PDT) NNTP-Posting-Date: Mon, 30 Jul 2001 16:02:31 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.sys.dec:6251 In article , cbr020@email.mot.com (Brian Repsher) writes: >This might have been covered before. I read most of the messages about >raising max-proc etc. > >But I'm still a bit perplexed about something. I can't seem to get >past allocating 50% of the RAM. Is there a limit on the amount of RAM >available to the OS. What operating system? There's the barest hint that you're asking about Tru64 UNIX, by mentioning max-proc, but I distrust barest hints. The version of the operating system would also be useful. V5.1 is current, but lots of people are still running V5.0A and a bunch of versions from the V4 stream. And some are still running V3.something for one reason or another. Assuming Tru64 UNIX... The creation of virtual memory (which may eventually consume a corresponding amount of physical memory), is limited by a number of kernel parameters and resources. o The system has process limits on the amount of virtual memory that can be created for stack space and data space. These limits have two values, the maximum and the default. The default data size limit is 128 MB on most systems, with the maximum being 1 GB. The default stack size limit is 2 MB, with a maxmimum of 32 MB. V5 may have raised the default to 8 MB. Most shells support a command that allows raising the default to the system maximum. See your shell manual page for the particulars; usually limit or ulimit. The system maximum and initial default can be changed by changing the appropriate kernel parameter. On recent versions you can use sysconfig, dxkerneltuner and similar tools. Older versions required changing a kernel configuration file parameter, building a new kernel and rebooting with the new kernel. o The amount of page/swap space can also limit the amount of virtual memory that can be created. In the default page/swap space reservation mode one page of page/swap space is reserved for (nearly) every page of virtual memory created. This ensures that there will be enough page/swap space if it is all needed, but limits the amount of virtual memory to (nearly) the amount of page/swap space. Creating virtual memory with mmap(2), backed by a real file allows using that file as page/swap space. In the optional page/swap space reservation mode, space isn't reserved and virtual memory can be created up to the system maximum. Once the physical starts being used, the limit becomes the sum of available physical memory and page/swap space. Running out of page/swap space in this mode is not a good thing to have happen. The consequences should be described in the system management documentation. If you don't have paper copies, they're on the Documentation CDROM. > >Help me get a clue. Offering some clues on your part would be useful. > >Brian > -- Alan Rollow alan@nabeth.cxo.dec.com