Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* mmap and malloc problems?
@ 2001-04-07  1:41 iskander
  2001-04-09 12:07 ` Andrew Duane USG
  0 siblings, 1 reply; 2+ messages in thread
From: iskander @ 2001-04-07  1:41 UTC (permalink / raw)


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?

Thanks,


Alex




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mmap and malloc problems?
  2001-04-07  1:41 mmap and malloc problems? iskander
@ 2001-04-09 12:07 ` Andrew Duane USG
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Duane USG @ 2001-04-09 12:07 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-09 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-07  1:41 mmap and malloc problems? iskander
2001-04-09 12:07 ` Andrew Duane USG

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