* OSF/1 Alpha swap space, memory pigs
@ 1993-08-27 21:44 Dirk Grunwald
1993-08-27 22:10 ` Ingres (academic version) on Ultrix ? Andrew Yang
` (6 more replies)
0 siblings, 7 replies; 12+ messages in thread
From: Dirk Grunwald @ 1993-08-27 21:44 UTC (permalink / raw)
I have an DEC AXP 3000/400 w/96MB of memory & a DSP3160 disk (1.6Gb)
I have ~150Mb of swap configured.
After the system has been running for a while, I start getting
``10% swap space remaining'' messages. This is insane - I'm only
using Lucid Emacs, Xterm, Xcd & a couple of small X things.
Also, the ``Xdec -su -bc'' server appears to grow in size. It's
currently at 13Mb & sometimes grows to 20Mbs. Many X clients appear to
do the same thing. For example, 'xcd' is current 5.02Mb.
Is there a memory leak somewhere? If so, are they patches?
Dirk Grunwald Asst. Prof, Univ. of Colorado at Boulder
^ permalink raw reply [flat|nested] 12+ messages in thread
* Ingres (academic version) on Ultrix ?
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
@ 1993-08-27 22:10 ` Andrew Yang
1993-08-28 16:56 ` OSF/1 Alpha swap space, memory pigs Ron Natalie
` (5 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Andrew Yang @ 1993-08-27 22:10 UTC (permalink / raw)
Hi!
Has anybody out there had experience installing the academic version
of the Ingres database system on an Ultrix system? One of my friends
ftp'ed the Ingres system from the site postgres.berkeley.edu and
tried to install it on an Ultrix network, but he got lots of compilation
erros. Any help or hints will be greatly appreciated.
-Andy
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
1993-08-27 22:10 ` Ingres (academic version) on Ultrix ? Andrew Yang
@ 1993-08-28 16:56 ` Ron Natalie
1993-08-30 12:45 ` Joe Smith
` (4 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Ron Natalie @ 1993-08-28 16:56 UTC (permalink / raw)
Is there a memory leak somewhere? If so, are they patches?
If you look in the release notes that came with the CD/ROM there's a
work around for the memory leak. The way the X11R4 and later servers
from MIT come is that when all the clients die, they try to reset themselves
and shrink back down to their initial memory. There is a bug in the DEC
server that eats 2M with ever login that doesn't get reclaimed. The simple
workaround is to fix the XDM startup to restart the server each time.
They show you how to do it in the release notes.
Another place to look for things consuming swap space is shared memory regions.
These preallocate a large hunk of swap for their operation. Do "ipcs." I've
noticed a bug that for some reason, if you abort a program being traced (i.e.,
you were running dbx), the shared memory region doesn't go away even if you
had already deleted it's identifier and it should have gone away because the
attach reference count had gone to zero.
The C compiler seems to be a memory pig as well, can't comment on EMACS.
-Ron
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
1993-08-27 22:10 ` Ingres (academic version) on Ultrix ? Andrew Yang
1993-08-28 16:56 ` OSF/1 Alpha swap space, memory pigs Ron Natalie
@ 1993-08-30 12:45 ` Joe Smith
1993-08-30 14:05 ` Dave Hill
` (3 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Joe Smith @ 1993-08-30 12:45 UTC (permalink / raw)
DEC OSF/1 has a configurable swap method. By default, it is in "eager" swap
mode. That is, there is a softlink in /sbin called swapdefault that points
to your swap partition. This method is "eager" to swap, and preallocates
swap space, so, even if it doesn't really swap, it has allocated the space.
The second method, called "lazy" swap, involves removing the link, and
rebooting. This method doesn't do such eager preallocation, and you will use
much less swap. However, on occasion, you might run out of swap un-expectedly
and the process that is being to swapped out may crash...
--
--------------------------------------
Joe Smith
Internet: joe@shr.dec.com UUCP: !decwrl!shr.dec.com!joe
Digital Equipment Corporation
Northeast Technology Center,
333 South St.
Shrewsbury, Ma. 01545-4112
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
` (2 preceding siblings ...)
1993-08-30 12:45 ` Joe Smith
@ 1993-08-30 14:05 ` Dave Hill
1993-08-30 15:35 ` Jeff Donsbach
` (2 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Dave Hill @ 1993-08-30 14:05 UTC (permalink / raw)
|> Also, the ``Xdec -su -bc'' server appears to grow in size. It's
|> currently at 13Mb & sometimes grows to 20Mbs. Many X clients appear to
|> do the same thing. For example, 'xcd' is current 5.02Mb.
|>
|> Is there a memory leak somewhere? If so, are they patches?
Yes, as is pointed out in the release notes, there is a memory leak
in the X server. It is related to the DPS module in the server.
Unfortunatly, there is not a fix available for this problem. This
problem will be fixed with the introduction of DPS level 2. If you
are noticing problems with the X servers growth, then the release notes
suggest that you add the '-terminate' option to the servers line
in /usr/lib/X11/xdm/Xserves. This will cause the server to recyle
(exit & be restarted by xdm) rather than reset at the end of a session.
If you don't use DPS (and want to free up more memory) you can also
comment out the DPS line in the file /usr/lib/X11/Xserver.conf. This
will keep the extension from being loaded.
/Dave
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
` (3 preceding siblings ...)
1993-08-30 14:05 ` Dave Hill
@ 1993-08-30 15:35 ` Jeff Donsbach
1993-08-31 4:27 ` Anthony Baxter
1993-08-31 11:25 ` Jari Tavi
6 siblings, 0 replies; 12+ messages in thread
From: Jeff Donsbach @ 1993-08-30 15:35 UTC (permalink / raw)
Dirk Grunwald (grunwald@foobar.cs.colorado.edu) wrote:
: I have an DEC AXP 3000/400 w/96MB of memory & a DSP3160 disk (1.6Gb)
: I have ~150Mb of swap configured.
: After the system has been running for a while, I start getting
: ``10% swap space remaining'' messages. This is insane - I'm only
: using Lucid Emacs, Xterm, Xcd & a couple of small X things.
: Also, the ``Xdec -su -bc'' server appears to grow in size. It's
: currently at 13Mb & sometimes grows to 20Mbs. Many X clients appear to
: do the same thing. For example, 'xcd' is current 5.02Mb.
: Is there a memory leak somewhere? If so, are they patches?
: Dirk Grunwald Asst. Prof, Univ. of Colorado at Boulder
You didn't say what version of OSF, but in the V1.3 release notes, it says
there is a memory leak problem with the X server. The release notes recommend
adding the "-terminate" option to "/usr/lib/X11/xdm/Xservers" so the
server will be restarted (thus freeing memory) when you log out.
-Jeff
--
=========================
Jeff Donsbach
Molecular Simulations,Inc., 16 New England Executive Park, Burlington, MA 01803
Internet Email: jdonsbac@MSI.Com "10 bucks is 10 bucks" - Geddy Lee
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
` (4 preceding siblings ...)
1993-08-30 15:35 ` Jeff Donsbach
@ 1993-08-31 4:27 ` Anthony Baxter
1993-08-31 14:00 ` Rick Murphy
1993-08-31 11:25 ` Jari Tavi
6 siblings, 1 reply; 12+ messages in thread
From: Anthony Baxter @ 1993-08-31 4:27 UTC (permalink / raw)
grunwald@foobar.cs.colorado.edu (Dirk Grunwald) writes:
>I have an DEC AXP 3000/400 w/96MB of memory & a DSP3160 disk (1.6Gb)
>I have ~150Mb of swap configured.
>After the system has been running for a while, I start getting
>``10% swap space remaining'' messages. This is insane - I'm only
>using Lucid Emacs, Xterm, Xcd & a couple of small X things.
I had the same problem. I fixed (?) it by doing as people here suggested,
and removing '/sbin/swapdefault' - this puts it into 'swap overcommitment
mode', which from my reading of it, means it will behave like any other
unix when it gets low on swap... this is fine by me. Perhaps someone in
the know can explain what 'swap overcommitment mode' means, exactly?
Anthony
--
anthony baxter australian artificial intelligence institute
email : anthony@aaii.oz.au 1 grattan st, carlton, australia 3053
/\/\|| phone : +613 663 7922
Disclaimer: Unless otherwise specified, the above is my opinion, not AAII's.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
` (5 preceding siblings ...)
1993-08-31 4:27 ` Anthony Baxter
@ 1993-08-31 11:25 ` Jari Tavi
1993-08-31 13:00 ` Robert Gillen
1993-09-01 3:31 ` Dirk Grunwald
6 siblings, 2 replies; 12+ messages in thread
From: Jari Tavi @ 1993-08-31 11:25 UTC (permalink / raw)
>I have an DEC AXP 3000/400 w/96MB of memory & a DSP3160 disk (1.6Gb)
>I have ~150Mb of swap configured.
>
>After the system has been running for a while, I start getting
>``10% swap space remaining'' messages. This is insane - I'm only
>using Lucid Emacs, Xterm, Xcd & a couple of small X things.
>
>Also, the ``Xdec -su -bc'' server appears to grow in size. It's
>currently at 13Mb & sometimes grows to 20Mbs. Many X clients appear to
>do the same thing. For example, 'xcd' is current 5.02Mb.
>
>Is there a memory leak somewhere? If so, are they patches?
It would greatly help to know what version of operating system you are running.
Between V1.2 and V1.3 there has been major changes in swap/paging algorithms,
and if version is V1.2 I'd recommed doing an upgrade installation instead of
applying any (possible) patches. Also, size of X Server can vary very much
depending on the applications (and specially X resource usage of applications).
I'd recommend all V1.2 users to upgrade V1.3 if possible! It does not only give
you performance advantage, but V1.3 contains new functionality and applies
known patches.
Usage, performance and load balancing of swap has improved greatly in V1.3,
and V1.2 also reported usage of Virtual Memory incorrectly at some stage.
I suspect that numbers you gave are Virtual Memory usage (VSZ), which in
most cases isn't important; rather consumption of real memory shouldn't be
too high (RSZ)! I'm running V1.3 and system has been up 64 days (what a
coinsidence ;-) and VSZ of X is about 16MB while RSS is about 800K-1M. I'm
running very different X applications from 2D to highly bitmap intensive
without any noticebly memory leaks in Xdec. Most of the applications has
been reported (by ps) to have VSZ os 8-15MB's, which propably comes from
that ps commands reports also the VM mapping of shared libraries with usage
of the real VS of process and program itself. That explains why applications
linked against large libraries always have static offset which doesn't
belong to application itself. This means in most cases that VSZ doesn't
mean anything to user if RSS doesn't grow too high. If RSS is what you
reported, then you certainly have some problem, but I can't replicate any
of that memory usage with any application I've tested in V1.2 or V1.3.
I try to answer with more details if there are further questions.
Best regards,
-Jari
--
-------------------------------------------------------------------------------
Full-Name: Jari Tavi
Organization: DEC Finland Dept: DS/OSG
Tel: +358-0-434 5252 Fax: +358-0-452 1392
E-mail: jpt@rixrax.enet.dec.com
Address: Digital Equipment Corporation Oy
PL 16
02201 Espoo
FINLAND
-------------------------------------------------------------------------------
* All opinions are my personal, and do not necessarily represent opinions of
* my employer!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-31 11:25 ` Jari Tavi
@ 1993-08-31 13:00 ` Robert Gillen
1993-09-01 3:31 ` Dirk Grunwald
1 sibling, 0 replies; 12+ messages in thread
From: Robert Gillen @ 1993-08-31 13:00 UTC (permalink / raw)
FYI,
We had a similar problem with an ULTRIX version of the X-server. We
have an application that does a lot of animation, etc. and the server would
continue to grow. The -terminate option wouldn't work for us since this
application is designed to be up continuously (its a weather display system).
DEC sent us two patches to the ULTRIX 4.3 OS to fix the problem, the second
one seemed to work. I don't know if the two servers are related or if the
memory leak is the same or not.
P.S. The 4.3 release notes mentioned that they had fixed a leak, but
apparently not the one we were having.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-31 4:27 ` Anthony Baxter
@ 1993-08-31 14:00 ` Rick Murphy
0 siblings, 0 replies; 12+ messages in thread
From: Rick Murphy @ 1993-08-31 14:00 UTC (permalink / raw)
In article <anthony.746771254@eden-valley>, anthony@aaii.oz.au (Anthony Baxter)
writes:
>I had the same problem. I fixed (?) it by doing as people here suggested,
>and removing '/sbin/swapdefault' - this puts it into 'swap overcommitment
>mode', which from my reading of it, means it will behave like any other
>unix when it gets low on swap... this is fine by me. Perhaps someone in
>the know can explain what 'swap overcommitment mode' means, exactly?
In the default `eager' mode, swap space is allocated whenever virtual address
space is created. This pre-allocation of swap space - especially when there's
adequate physical memory - is quite consumptive of swap space.
By removing the /sbin/swapdefault link and rebooting, you switch to `lazy'
swap mode; swap space is allocated only when the pages are about to be
swapped out.
The down side is that if the kernel can't allocate space to swap a chosen
process, that process gets killed. You avoid this problem by making sure
there's enough swap space. The default behavior was chosen to be the more
conservative approach.
-Rick
--
Rick Murphy, WA1SPT/4 Washington Federal Programs Office
Domain: murphy@dco.dec.com Technical Support Group
Bang: decwrl!burfle.enet!murphy This posting expresses MY opinions only;
Ding: 301-306-2040. I do not speak for Digital.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-31 11:25 ` Jari Tavi
1993-08-31 13:00 ` Robert Gillen
@ 1993-09-01 3:31 ` Dirk Grunwald
1993-09-01 15:34 ` Fred Velijanian
1 sibling, 1 reply; 12+ messages in thread
From: Dirk Grunwald @ 1993-09-01 3:31 UTC (permalink / raw)
I'm running V1.3. Yes, the figures I quoted are VSZ e.g.,
grunwald 346 0.0 0.6 5.06M 616K ?? I Aug 30 0:40.78 xcd -f /dev/rrz4c -geometry 666x138+3+346
So, in this case, I'm to assume it's really only taking ~1Mb, not 5Mb
of swap?
So far, with V1.3, I've run into the following problems:
(1) lots of ``10% swap'' messages, before going to lazy swap
allocation. This on a machine with ~150Mb of swap, 96Mb of ram
and a single user. Imagine what the low-end market thinks
about this.
(2) Lots of ``file table overflow'' messages until I bumped
maxusers to be 64 in the kernel. This would hang the machine.
Again, single user most of the time.
(3) Today, I started getting console messages about ``filehandle
spans multiple mbufs''. I have no idea what this means, but
it doesn't sound good.
(4) one incident of filesystem corruption when a directory
was deleted over NFS (from a DECstation). Not repeatable,
thank goodness.
I understand V1.3 is a big improvement over V1.2. However, DEC is
betting the farm on Alpha, and this software is ~1 year after machine
intro. I had expected it to be somewhat more stable by this point.
However, I'm generally happy with the machines (a built-in speaker
would have been nice). I have $ to buy more machines, and will choose
Alphas (or, more likely, the up-coming lower-end AlphaPC) over the SGI
Indy if I have anything to say about it.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-09-01 3:31 ` Dirk Grunwald
@ 1993-09-01 15:34 ` Fred Velijanian
0 siblings, 0 replies; 12+ messages in thread
From: Fred Velijanian @ 1993-09-01 15:34 UTC (permalink / raw)
In article <GRUNWALD.93Aug31213136@foobar.cs.colorado.edu>,
Dirk Grunwald <grunwald@foobar.cs.colorado.edu> wrote:
.......
>
>However, I'm generally happy with the machines (a built-in speaker
>would have been nice). I have $ to buy more machines, and will choose
>Alphas (or, more likely, the up-coming lower-end AlphaPC) over the SGI
>Indy if I have anything to say about it.
Note that the 3000/300 includes an internal speaker (not the /400 & /500).
I wish DEC would also include a microphone. They keep talking about
multimedia systems, but fail to include the basics, at least OSF/1 1.3 has the
device drivers for the audio hardware.
The Indy even includes a Video-In board and a camera!
Fred Velijanian
UC Irvine
fredv@uci.edu
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1993-09-01 15:34 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-27 21:44 OSF/1 Alpha swap space, memory pigs Dirk Grunwald
1993-08-27 22:10 ` Ingres (academic version) on Ultrix ? Andrew Yang
1993-08-28 16:56 ` OSF/1 Alpha swap space, memory pigs Ron Natalie
1993-08-30 12:45 ` Joe Smith
1993-08-30 14:05 ` Dave Hill
1993-08-30 15:35 ` Jeff Donsbach
1993-08-31 4:27 ` Anthony Baxter
1993-08-31 14:00 ` Rick Murphy
1993-08-31 11:25 ` Jari Tavi
1993-08-31 13:00 ` Robert Gillen
1993-09-01 3:31 ` Dirk Grunwald
1993-09-01 15:34 ` Fred Velijanian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox