Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: glenn@cs.uwa.oz.au (Glenn Huxtable)
Subject: Re: Swap-Space on Alpha
Date: Thu, 4 Nov 1993 08:14:15 GMT	[thread overview]
Message-ID: <glenn.752400855@chuditch> (raw)
In-Reply-To: 2b3iddINNui4@rs18.hrz.th-darmstadt.de

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


  parent reply	other threads:[~1993-11-04  8:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-11-01 17:52 Swap-Space on Alpha Gerd Aschemann
1993-11-01 18:35 ` James Bonfield
1993-11-01 19:55 ` Eiji Hirai
1993-11-01 20:34 ` Mike Iglesias
1993-11-04  8:14 ` Glenn Huxtable [this message]
1993-11-04 14:59   ` Jim Gettys
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox