Complete.Org: Mailing Lists: Archives: linux-help: June 2000:
[linux-help] Re: How to get more virtual memory?
Home

[linux-help] Re: How to get more virtual memory?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "'linux-help@xxxxxxxxx'" <linux-help@xxxxxxxxx>
Subject: [linux-help] Re: How to get more virtual memory?
From: Jeff <schaller@xxxxxxxxxxxxx>
Date: Wed, 21 Jun 2000 10:05:04 -0500 (CDT)
Reply-to: linux-help@xxxxxxxxx

On Wed, 21 Jun 2000, Bates, Rod wrote:

> I am running a program on a large input file that runs out of
> virtual memory.  malloc is returning zero after having
> allocated ~248 meg.  I believe I have more swap space than
> this.  How do I increase the limit?

Well, if malloc returns zero, then you're outta virtual memory,
just like you say :)

You can verify the background details with "free" and seeing what
the kernel thinks you have for RAM and swap.  The kernel may try
to keep some other programs in RAM, so you may not end up with the
full (RAM amount here) megs in your program.

One thing I'd check is that your program isn't:
a) leaking memory
b) using more memory than it needs to get the job done

About the only other options I see are:
1) add RAM
2) add swap space

-jeff
-- 
"This store is open 24 hours a day.  It puts great demands on my time."
-- Apu, from _The Simpsons_


-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]