Re: Large array size in C++




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

.



Relevant Pages

  • ulimit and malloc
    ... I'm running Mandrake 7.2 and I'm trying to use the ulimit command: ... max locked memory (kbytes) 1024 ...
    (comp.os.linux.security)
  • ulimit and malloc
    ... I'm running Mandrake 7.2 and I'm trying to use the ulimit command: ... max locked memory (kbytes) 1024 ...
    (comp.os.linux.security)
  • Re: ulimit and malloc
    ... > I'm running Mandrake 7.2 and I'm trying to use the ulimit command: ... > core file size 0 ... > max locked memory (kbytes) 1024 ...
    (comp.os.linux.security)
  • Re: ulimit and malloc
    ... > I'm running Mandrake 7.2 and I'm trying to use the ulimit command: ... > core file size 0 ... > max locked memory (kbytes) 1024 ...
    (comp.os.linux.security)
  • Process cant allocate more memory, even though there is more
    ... errors out around 300 meg as a malloc call returns 0(out of memory). ... memoryuse 1020384 kbytes ...
    (Tru64-UNIX-Managers)