From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,38f6e7093596a327 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-05-01 11:57:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3EB16DFB.27BE06A9@_delete-this_hp.com> From: Joe Mario X-Mailer: Mozilla 4.79 [en] (X11; U; OSF1 V5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: swap space unused? References: <%ndsa.12$K5.6226@mencken.net.nih.gov> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Date: Thu, 01 May 2003 19:03:22 GMT NNTP-Posting-Host: 16.141.0.18 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1051815802 16.141.0.18 (Thu, 01 May 2003 12:03:22 PDT) NNTP-Posting-Date: Thu, 01 May 2003 12:03:22 PDT Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:9861 Your max memory and virtual memory sizes need to be bumped. They are set to 4GB which is the limit that you are hitting. On another note, if you really allocating that much memory, you might want to be calling mmap() instead of malloc() to allocate your large chunks of memory. Using mmap() gives you lots more control over the allocation/deallocation of memory, which matters with the sizes you're talking about. Sourav Bandyopadhyay wrote: > ... > I can only malloc ~4GB of space from a C++ program. > ... > > I also have ulimits at > > ... > max memory size (kbytes) 4102912 > ... > virtual memory (kbytes) 4194304 > > Any ideas? Thanks all