Re: Large array size in C++
- From: "swagat" <swagat.kumar@xxxxxxxxx>
- Date: 30 Jun 2006 22:22:44 -0700
Have you attempted to adjust your ulimit values at the shell level?
'ulimit -a' gives me following output on my system
---------------------------------------------------------------------
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
---------------------------------------------------------------------------
How do I adjust the 'ulimit' values? I read man page but it does not
provide much information. Infact, it does not say anything about how
to use this function.
Have you checked with systune to see what the maximum resources are?
the file '/etc/systune.conf ' contains following information:
--------------------------------------------------------------------------------
# /etc/systune.conf
# Format:
# <path>:<value>
# <path>:<value>
# ...
# Filesystem tuning
# defaults*10 for kernel 2.0
# /proc/sys/kernel/file-max:10240
# /proc/sys/kernel/inode-max:30720
# defaults*10 for kernel 2.2
# /proc/sys/fs/file-max:40960
# /proc/sys/fs/inode-max:81920
-------------------------------------------------------------------------
other things deal with VM tuning, network tuning, network setting etc.
and I think those things are not relevant to this discussion.
Have you used the linker options to reposition the libraries to
give you more room? See the 'dso' man page; if you need to
do the repositioning for an existing executable, see rqs .
'dso' is not available on my system. Can you give me some more
information regarding how can I increase the memory allocated to the
arrays used by c++ programs.
Regards,
swagat
.
- Follow-Ups:
- Re: Large array size in C++
- From: Walter Roberson
- Re: Large array size in C++
- From: Tony 'Nicoya' Mantler
- Re: Large array size in C++
- Prev by Date: Re: upgrading the SGI O2 PROM
- Next by Date: Re: Large array size in C++
- Previous by thread: Re: upgrading the SGI O2 PROM
- Next by thread: Re: Large array size in C++
- Index(es):
Relevant Pages
|
|