From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b64b9284a155b211 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-07 19:55:40 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!caen!crl.dec.com!crl.dec.com!nntpd.lkg.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.unix.osf.osf1 Subject: Re: Help on Configuring Memory Limits Date: 7 Nov 1994 23:30:18 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <39mdaa$5g6@nntpd2.cxo.dec.com> References: Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Host: nabeth.cxo.dec.com In article , saunders@castor.che.wisc.edu (Brian Saunders) writes: >Here's the situation: we have 64-meg DEC 3000/400s with OSF/1 1.3. I >would like to configure the machines so that no user can run a job that >reserves more memory than the physical limit. I realize that I probably >need to change the values of maxdsiz and maxssiz, but I'm not sure what I >should set them at. Their default values seem quite high (1 GB?). Which physical limit? The 64 MB physical memory or the unmentioned limit of swap space. The latter is easy; just use the default swap space allocation scheme and it will ensure that no problem uses more than is available. If you want 64 MB as an arbitrary limit on memory use, then how do you divide it up? You mentioned maxdsiz (1 GB default), maxssiz (32 MB default) but forgot maxtsiz (text default unknown). Do you want to limit all three so that the sum can't be more than the 64 MB? How do you want to apportion them? Or, do you want limit each to 64 MB allow a single program to use as much as 192 MB virtual memory? The values in the configuration file are byte values (probably rounded to pages internally) for the limits. For example if you want limit text to 8 MB and divide the remaining evenly between stack and data: maxtsiz 8388608 maxssiz 29360128 maxdsiz 29360128 Realize that 64 MB is a somewhat arbitrary limit, since any program using 64 MB of virtual memory on a 64 MB physical memory is certain to cause some paging. > >Also, for a lot of the f77 code used by our users, we see a large virtual >size (VSZ), but a much smaller real size (RSS). What does this mean? It means the program has a lot of pages that aren't used all the time and so the system can page out the unused one and keep the used ones in memory. Or it means that some large part of the programs are shared (run time library?) and the individual data and text needs are small per program. Most likely it is a combination of both. >It seems for all code where the VSZ is larger than the actual amount of >physical memory, we see a severe hit machine performance (lots of >swapping, I imagine). Or paging. Remember that swapping entails movement of whole processes, while paging only deals with parts of processes. > >Suggestions? You might find it useful to see what parts of the virtual memory size of the programs is shared and what part is merely not "active" and thus usable for paging. I'm not sure what bits of ps listings you can look at to get that information though. > >-- >Brian E. Saunders saunders@castor.che.wisc.edu > -- Alan Rollow alan@nabeth.cxo.dec.com