Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: duane@magma.uucp (Andrew Duane USG)
Subject: Re: mmap and malloc problems?
Date: 9 Apr 2001 12:07:56 GMT	[thread overview]
Message-ID: <9as8ms$9apd$1@lead.zk3.dec.com> (raw)
In-Reply-To: 9alqhu$l5o$1@nntp9.atl.mindspring.net

In article <9alqhu$l5o$1@nntp9.atl.mindspring.net> "iskander" <phi@irrational.net> 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



      reply	other threads:[~2001-04-09 12:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-07  1:41 mmap and malloc problems? iskander
2001-04-09 12:07 ` Andrew Duane USG [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox