From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,7e88d54b7c4312d8 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-04-09 05:11:51 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!newsfeed.mathworks.com!nycmny1-snh1.gtei.net!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!ajo.zk3.dec.com!magma!duane From: duane@magma.uucp (Andrew Duane USG) Newsgroups: comp.unix.tru64 Subject: Re: mmap and malloc problems? Date: 9 Apr 2001 12:07:56 GMT Organization: Digital Equipment Corporation Message-ID: <9as8ms$9apd$1@lead.zk3.dec.com> References: <9alqhu$l5o$1@nntp9.atl.mindspring.net> NNTP-Posting-Host: magma.zk3.dec.com X-Trace: lead.zk3.dec.com 986818076 305965 16.140.48.243 (9 Apr 2001 12:07:56 GMT) X-Complaints-To: iass@ajo.zk3.dec.com NNTP-Posting-Date: 9 Apr 2001 12:07:56 GMT Xref: supernews.google.com comp.unix.tru64:2054 In article <9alqhu$l5o$1@nntp9.atl.mindspring.net> "iskander" writes: >I am running into a strange problem where malloc is failing after mmaping a >number of files with a certain total size (in this case, around 5 GB). The >resident set size, data seg size, and virtual memory size are all set to at >least 500 MB more than the memory size around which the problem starts to >happen. Has anybody run into similar problems before? If so, how were they >fixed? There are lots of reasons MALLOC could be failing. Are you set to eager swap mode? If so, do you have enough swap space to handle the requests? Use swapon -s to tell how much space there is. You are getting to 5GB or so, and your settings are 0.5GB above where you think you are. Perhaps some roundoff in allocations is happening? Many allocations need to allocate more space than you actually ask for. -- Andrew L. Duane (JOT-7) duane@zk3.dec.com Compaq Computer Corporation (603)-884-1294 110 Spit Brook Road M/S ZKO3-3/U14 Nashua, NH 03062-2698