system() (via clone) fails on large process
Just installed rhel4's latest system.
Our process is calling the system() function to run
a command. This has always worked before, but now it gives
an error of ENOMEM,
strace says:
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD,
parent_tidptr=0xfefed524) = -1 ENOMEM (Cannot allocate memory)
Now, our process is kinda a memory hog. We allocate a 3.6 gig bss section
and eventually it will actually use a lot of this memory. But in the early
part of the program, it sucessfully calls system(). However, after we
use the memory, i.e. read a big file into the memory, we try to call system()
again and it gets the error.
Is there some setting in /proc which I can use to allocate more resources
to whatever is running out.
Did the function system() change recently?
This is on a 6 gig ram system. The error occurred when it had grown to
1.5 gigs of ram.
$ cat /proc/version
Linux version 2.6.9-34.ELhugemem
(bhcompile@xxxxxxxxxxxxxxxxxxxxxxxxxxx)
(gcc version 3.4.5 20051201 (Red Hat 3.4.5-2))
#1 SMP Fri Feb 24 17:04:34 EST 2006
.
Relevant Pages
- Re: Vista 64 System needs Extended warm-up
... Note that with the total 8 Gig of memory I had the "normal" problem of not being able to install Windows until I had stripped the memory down to only 4 Gigs in the first 2 slots. ... Installation went OK with only 2 sticks of memory, but I needed to do a repair installation a couple of times to remedy a "forever boot" that included a full completion of POST to FF. ... (microsoft.public.windows.vista.general) - Vista 64 System needs Extended warm-up
... Note that with the total 8 Gig of memory I had the "normal" problem of not being able to install Windows until I had stripped the memory down to only 4 Gigs in the first 2 slots. ... Installation went OK with only 2 sticks of memory, but I needed to do a repair installation a couple of times to remedy a "forever boot" that included a full completion of POST to FF. ... (microsoft.public.windows.vista.general) - Re: Gateway FX6800-01e----Is this computer ok?
... Carole Clark wrote: ... The Graphic card you will ... Two of the people told me that yesterday, and today I said I should by more memory and 2 of the techs said that was plenty, like 6G of DDR2. ... A gig is a gig is a gig, ... (comp.sys.ibm.pc.games.rpg) - Re: Vista 64 System needs Extended warm-up
... Per your suggestion I increased the memory voltage first to 1.875and the to 1.9 with no change in symptoms. ... Since this may be a memory problem and I WAS able to get the operating system installed only after removing 2 of my 4 DIMMs I returned the memory voltage and the SPP voltage to the auto values and first removed one set of DDR2 memory and then the other, cycling both 4 Gig sets through first slots zero & one and then slots two & three. ... Through all of this, I eventually noticed that when the system appears to be hung and the applications are not responding, the hard disk activity light would flash periodically at an almost exactly once per second rate. ... Installation went OK with only 2 sticks of memory, but I needed to do a repair installation a couple of times to remedy a "forever boot" that included a full completion of POST to FF. ... (microsoft.public.windows.vista.general) - Re: Can XP cope with 2gb of RAM
... it steals the top gig for itself. ... You're confusing physical RAM with the virtual memory space ... A mobo, and Windoze, can ... (microsoft.public.windowsxp.general) |
|