* swap space unused?
@ 2003-05-01 18:07 Sourav Bandyopadhyay
2003-05-01 19:03 ` Joe Mario
0 siblings, 1 reply; 2+ messages in thread
From: Sourav Bandyopadhyay @ 2003-05-01 18:07 UTC (permalink / raw)
hi,
im running a memory intensive program on an ES45 with 4GB of memeory and
supposedly 12GB of swap space.
I can only malloc ~4GB of space from a C++ program.
Does this mean swap is disabled? I checked the swap usage is always at 0%
...and the program fails in malloc() of more space.
I have the /sbin/swapdefault is this the problem? I recall an old post about
this...
I also have ulimits at
bash-2.04$ ulimit -a
core file size (blocks) unlimited
data seg size (kbytes) 10485760
file size (blocks) unlimited
max memory size (kbytes) 4102912
open files 4096
pipe size (512 bytes) 8
stack size (kbytes) 32768
cpu time (seconds) unlimited
max user processes 512
virtual memory (kbytes) 4194304
Any ideas? Thanks all
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: swap space unused?
2003-05-01 18:07 swap space unused? Sourav Bandyopadhyay
@ 2003-05-01 19:03 ` Joe Mario
0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 2003-05-01 19:03 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-01 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-01 18:07 swap space unused? Sourav Bandyopadhyay
2003-05-01 19:03 ` Joe Mario
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox