From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075317506338.tru64-unix-managers.marc@archive.invalid> From: chu () musp0 ! jpl ! nasa ! gov (Eugene Chu) Date: Wed, 01 Feb 1995 21:08:37 +0000 To: tru64-unix-managers Subject: Summary of "Not enough core" from rcp X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075317506338 Hello, Thanks to all who responded to my querry about the memory problem: Dave Cherkus alan@nabeth.cxo.dec.com "Hellebx Knut" "Paul E. Rockwell" We think we have found the actual problem, though the reporting of the symptoms is a little confusing. Just as a background, we have been running with "lazy" swap by having renamed /sbin/swapdefault to something else. We haven't had any swap related problems since that change. We had the -terminate option in /usr/lib/X11/Xserver to make X restart after each session ever since the X problems were discovered back in v1.2. However, every once in a while we still have a problem with the dxsession in that windows move around very slowly with the mouse, and dxterm core dumps upon exit. Seems like there's still problems with it. We have to stay with v1.3a because I wrote a CAM driver to talk to one of our custom hardware, and it simply will not work under v2.x or v3.x of OSF. We don't have the time to chase down either the dxsession problem or the CAM problem, but if anyone can offer any info on those, it will be greatly appreciated. Now, to the our problem of rcp: The program in question runs in a big loop, with each iteration generating some data files, and communicating with a server program running on a remote system. At the end of each interation we call system() to execute an rcp to copy these files and any subdirectories to a remote system. It turns out that this remote system is an old MASSCOMP with limited resources running an operating system with lots of known bugs, including memory leaks and flaky TCP/IP drivers. After about 18 iterations of processing/transferring, the Alpha reports the rcp "Not enough core" error. We changed our program to hold its position at the point of failure. When it did fail, we tried an rcp manually from the command line, and it responded the same way. Then we tried the same rcp to a different system, it worked! Looking more closely at the MASSCOMP, we find that its system memory is almost completely sucked up by the server process that was working with the client on the Alpha at that moment. We couldn't do much of anything on the MASSCOMP at this point; including a telnet attempt from the Alpha, which responded with: telnetserver: /etc/login: Not enough core Connection closed by foreign host. So the problem was on the MASSCOMP all along. But, the thing that had us chasing our tail was the way the Alpha reported it: /usr/bin/rcp: Not enough core This made us think that the was having problems, so we never thought to look on the remote system. I don't know why it didn't say something more explicit, but we'll have to remember to trust the Alpha more in the future. thanks again to all who responded eugene chu