From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3b4c25e7d0aaf829 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-11-04 01:17:40 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!chuditch!glenn From: glenn@cs.uwa.oz.au (Glenn Huxtable) Subject: Re: Swap-Space on Alpha Message-ID: Sender: usenet@bilby.cs.uwa.edu.au Nntp-Posting-Host: chuditch Organization: Dept. Computer Science, University of Western Australia. References: <2b3iddINNui4@rs18.hrz.th-darmstadt.de> Date: Thu, 4 Nov 1993 08:14:15 GMT In <2b3iddINNui4@rs18.hrz.th-darmstadt.de> ascheman@isa.informatik.th-darmstadt.de (Gerd Aschemann) writes: >Hi, >we have problems with swap space on our AXP 3000/400 (96 M RAM/212 M >Swap, OSF1 1.3). The memory usage always grows and NEVER shrinks. >Especially the X-Server had a size of 135 M after some days. After >rebooting, X now has 11 M with the first user logged on. Now the >kernel (Process 0) has 292 M. But swap seems to be normal. >Has anyone had the same problems. What can we do? Is it a bug in >/usr/bin/X or in the kernel??? >Thanks, >-- >Gerd Aschemann -- {ascheman,sysop}@isa.informatik.th-darmstadt.de >"Es fehlt immer ein Minimum, um das Maximum zu erreichen" W.Falin by now many people have told you about how the X server allocates memory and never really free's it back to unix. That's just the way unix works, but there are other problems to do with memory allocation (via malloc). Malloc (at least under OSF 1.2 - DEC haven't sent me 1.3 dispite *many* requests) appears to round up the size of your malloc request to the next power of 2. We found (to our dismay) that a program malloc'ing 32Mb+1b would grow by 64Mb! Alarming at the extreme, but possibly also a cumulative memory hog when you are doing *lots* of small size mallocs. It may well be that your X server is really only using about half (more or less) the memory it really needs! Glenn Huxtable OSF - No thanks! -- Email - glenn@cs.uwa.edu.au ,-_|\ glenn huxtable phone - +61 9 380 2878 / \ dept of computer science fax - +61 9 380 1089 *_,-._/ university of western australia v