Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!euclid.jpl.nasa.gov!pjs From: pjs@euclid.jpl.nasa.gov (Peter Scott) Newsgroups: comp.windows.x Subject: Leak in R4 server? Message-ID: <1990Oct28.204148.17437@elroy.jpl.nasa.gov> Date: 28 Oct 90 20:41:48 GMT Sender: news@elroy.jpl.nasa.gov (Usenet) Reply-To: pjs@euclid.jpl.nasa.gov Followup-To: comp.windows.x Organization: Jet Propulsion Laboratory, NASA/Caltech Lines: 52 Nntp-Posting-Host: euclid.jpl.nasa.gov For some reason, this was never a problem on a Sun 3/160 with 8MB RAM, and yet here I am on a Sun 4/40 with 12MB RAM running out of memory all over the place.* A major culprit - as far as I can tell, I'm still new at this system-debugging thing - turns out to be the R4 server, which I had found doubled in size on various occasions. A little work with ps -v in a window turned up the following: Server after startup (running xbiff, xpostit, xfish, xterm -C, xterm, xrn, xman, xperfmon: PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 4725 co R 1:49 0 99 156 1784 2264 xx 7.4 20.9 Xsun After a while, I used an mwm root menu command I set up to spawn an xterm -e rlogin , and now: PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 4725 co R 2:03 0 99 189 4188 2680 xx 15.6 24.8 Xsun Wow. I killed the xterm window: PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 4725 co R 2:56 1 99 241 4188 2536 xx 9.4 23.5 Xsun Now, I'm still learning to interpret these things, but it doesn't seem to me that it changed that much. The RSS field steadily declined over a period of minutes, and that trend didn't seem to be affected by my opening another xterm window, until I opened two at a time: PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 4725 co D 3:52 0 99 408 4828 3572 xx 12.1 33.0 Xsun Ouch! And after killing both new xterms: PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 4725 co S 4:01 0 99 430 4828 3496 xx 11.0 32.3 Xsun Although it went *up* after just another couple of minutes during which time I was just typing in this window: PID TT STAT TIME SL RE PAGEIN SIZE RSS LIM %CPU %MEM COMMAND 4725 co S 4:21 0 99 459 4828 3616 xx 8.6 33.5 Xsun So what's up? We're running X11R4.18, mwm (1.0a), SunOS 4.1. * Mind you, the Sun-3 was mono and the Sun-4 is 8-bit color... -- This is news. This is your | Peter Scott, NASA/JPL/Caltech brain on news. Any questions? | (pjs@euclid.jpl.nasa.gov)