5.3XFS Memory Limits?

hbent

New member
Oct 29, 2020
15
7
3
I'm compiling a very large C++ file on IRIX 5.3XFS and running into a memory limit that seems artificial. I have 224MB of RAM, my environment limits have been removed, and I have plenty of real and virtual swap but IRIX doesn't want to malloc more than ~140MB of memory. Absolutely nothing else is running, not even the window system; top/osview say that I should have a good 200MB of physical memory available before hitting swap. Does anyone know what is going on here?

Code:
(violets:local/src/cmake-2.8.12.2) # swap -l
lswap path         dev    pri swaplo   blocks     free  maxswap    vswap
    2 /.swap.virtual
                 128,16     2      0        0        0        0 20000000
    1 /dev/swap
                 128,17     0      0  1028160  1028160  1028160        0
(violets:local/src/cmake-2.8.12.2) # limit
cputime      unlimited
filesize     4194303 kbytes
datasize     unlimited
stacksize    unlimited
coredumpsize unlimited
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  unlimited
(violets:local/src/cmake-2.8.12.2) # hinv -v
1 100 MHZ IP20 Processor
FPU: MIPS R4000 Floating Point Coprocessor Revision: 0.0
CPU: MIPS R4000 Processor Chip Revision: 3.0
On-board serial ports: 2
On-board bi-directional parallel port
Data cache size: 8 Kbytes
Instruction cache size: 8 Kbytes
Secondary unified instruction/data cache size: 1 Mbyte
Main memory size: 224 Mbytes
Integral Ethernet: ec0, version 1
Integral SCSI controller 0: Version WD33C93B, revision C
CDROM: unit 4 on SCSI controller 0
Disk drive: unit 1 on SCSI controller 0
Iris Audio Processor: revision 10
Graphics board: GR2-XS24 with Z-buffer
(violets:local/src/cmake-2.8.12.2) # /usr/local/gcc3/bin/g++ -O3 -mips2 -mtune=r4000 -fpermissive  -I/usr/local/src/cmake-2.8.12.2/Bootstrap.cmk -I/usr/local/src/cmake-2.8.12.2/Source   -I/usr/local/src/cmake-2.8.12.2/Bootstrap.cmk -c /usr/local/src/cmake-2.8.12.2/Source/cmBootstrapCommands2.cxx -o cmBootstrapCommands2.o

cc1plus: out of memory allocating 4072 bytes after a total of 140586928 bytes
 

hbent

New member
Oct 29, 2020
15
7
3
Sorry, I just realized that this should have gone in Development. If an admin could move it that would be much appreciated.
 

Elf

Storybook
Feb 4, 2019
499
134
43
Moved :)

Someone else might have a system level solution, but just to approach the problem in a perpendicular way there are some working cross-compilers for everything from IRIX 4 to 6.5. If you end up not being able to compile it on the actual machine, compiling it elsewhere might be something to consider!
 

Elf

Storybook
Feb 4, 2019
499
134
43
Moved :)

Someone else might have a system level solution, but just to approach the problem in a perpendicular way there are some working cross-compilers for everything from IRIX 4 to 6.5. If you end up not being able to compile it on the actual machine compiling it elsewhere might be something to consider!
 

About us

  • Silicon Graphics User Group (SGUG) is a community for users, developers, and admirers of Silicon Graphics (SGI) products. We aim to be a friendly hobbyist community for discussing all aspects of SGIs, including use, software development, the IRIX Operating System, and troubleshooting, as well as facilitating hardware exchange.

User Menu