From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cced43536826fbdb X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-22 06:46:30 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!gatech!news-feed-1.peachnet.edu!news.duke.edu!gallatin From: gallatin@isds.duke.edu (Andrew Gallatin) Newsgroups: comp.unix.osf.osf1 Subject: Re: X11 growing without (?) bounds... Date: 22 Jun 1994 13:45:20 GMT Organization: Duke University, Durham, N.C. Distribution: world Message-ID: <2u9f9g$sek@news.duke.edu> References: NNTP-Posting-Host: goya.isds.duke.edu Cc: In article , Randall Smith wrote: > >We're running OSF/1 V2.0 on a DEC3000/300LX, and having a problem with >X. At boot time, its memory size is about 15M (virtual), which is not >a problem. But after a few days running, it is now at 64M, and has >grown to 110M at times, using nearly all our swap space and causing >some nasty problems requiring a reboot. (The actual resident size is >only 1M, so that's not a problem.) Our real memory is 32M, with 128M swap. > >I know that X does have this tendancy to grow due to the method of >memory allocation on Unices, but this is a bit ridiculous. Our other >Alpha, running OSF/1 V1.3, stays at around 20M over a weeks of >running, with about the same (or more) usage. > >Has anyone else seen this problem, and is there a fix? > >Thanks, >Randy Smith >rsmith@wisp5.physics.wisc.edu I'm not sure that its caused by anything in OSF/1 V2.0. We are running OSF/1 V2.0 on two 3000/400 machines and one 3000/500x & haven't seen the sort of problems you mention. In fact, the user of the 500x has been logged in for almost 3 weeks, and his X server looks like this: USER PID %CPU %MEM VSZ RSS TT S STARTED TIME COMMAND root 383 0.0 1.1 11.0M 2.5M ?? S Jun 06 11:24.36 /usr/bin/X11/X -terminate -auth /usr/lib/X11/xdm/A:0-aaalBa (X is a soft link to Xdec) He typically runs twm, xterm, emacs, xdvi, ghostview, some in-house image viewing software, and dxpaint. The only X related problems he's had has been dxpaint hanging (anybody else seen this?). Has the console user of your machine been looking at a lot of images, or previewing postscript documents, or doing anything else that might cause the X server to allocate & free large pixmaps of irregular size? Perhaps you should look for other differences between your 1.3 machine and your 2.0 machine besides the OS version. The Ultrix FAQ talks a little about X server growth, and I think what it says applies to OSF/1 also: ----------------------------------------------------------------------------- G1. Why does the X server use so much memory? Xws and the other other DEC X servers generally grow larger with workload, not because of memory leaks. When you start an X server, its process is quite small. As applications are started, the server allocates memory for a variety of reasons to service requests from clients. An example of this is allocating a pixmap. When the resource is freed, the corresponding memory is freed back to the malloc pool, but the server image doesn't get any smaller. This is true of any application where you malloc memory and then free it. If your workload is consistent, server growth is asymptotic, growing quickly at first, then tapering off. In other words, if you exit the application that caused the server to allocate a lot of memory, the server size won't shrink when the application exits, but the server won't grow any larger if you run the same application the same way again. ----------------------------------------------------------------------------- Good luck! Drew ############################################################################## # Andrew Gallatin, System Administrator # # Institute of Statistics and Decision Sciences # # Box 90251, Duke University, Durham, NC 27708-0251 # # email: gallatin@isds.duke.edu # ##############################################################################