* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 Dirk Grunwald
@ 1993-08-30 12:45 ` Joe Smith
1993-08-30 13:50 ` Eric Thayer
1993-08-30 14:05 ` Dave Hill
` (3 subsequent siblings)
4 siblings, 1 reply; 15+ 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] 15+ messages in thread* Re: OSF/1 Alpha swap space, memory pigs
1993-08-30 12:45 ` Joe Smith
@ 1993-08-30 13:50 ` Eric Thayer
0 siblings, 0 replies; 15+ messages in thread
From: Eric Thayer @ 1993-08-30 13:50 UTC (permalink / raw)
In article <25sspi$5ds@alphabits.shr.dec.com> smith@flamingo.shr.dec.com (Joe
Smith) writes:
> 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...
We did this and when we had a large job running it caused a great deal of
wreakage. inetd died for instance. However, it seems to be a viable option if
you have well behaved jobs around and bump up the swap space to a reasonable
amount. Beware though, it's living dangerously.
..eric
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 Dirk Grunwald
1993-08-30 12:45 ` Joe Smith
@ 1993-08-30 14:05 ` Dave Hill
1993-08-30 15:35 ` Jeff Donsbach
` (2 subsequent siblings)
4 siblings, 0 replies; 15+ 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] 15+ messages in thread* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 Dirk Grunwald
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 11:25 ` Jari Tavi
4 siblings, 0 replies; 15+ 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] 15+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 Dirk Grunwald
` (2 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
4 siblings, 1 reply; 15+ 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] 15+ 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; 15+ 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] 15+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-08-27 21:44 Dirk Grunwald
` (3 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
4 siblings, 2 replies; 15+ 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] 15+ 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; 15+ 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] 15+ 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
1993-09-01 15:42 ` Dr Marco Luchini
1 sibling, 2 replies; 15+ 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] 15+ 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
1993-09-01 15:42 ` Dr Marco Luchini
1 sibling, 0 replies; 15+ 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] 15+ 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
@ 1993-09-01 15:42 ` Dr Marco Luchini
1993-09-02 11:02 ` Henk Mos
1 sibling, 1 reply; 15+ messages in thread
From: Dr Marco Luchini @ 1993-09-01 15:42 UTC (permalink / raw)
In article <GRUNWALD.93Aug31213136@foobar.cs.colorado.edu> grunwald@foobar.cs.colorado.edu (Dirk Grunwald) writes:
> So far, with V1.3, I've run into the following problems:
> (4) one incident of filesystem corruption when a directory
> was deleted over NFS (from a DECstation). Not repeatable,
> thank goodness.
This has happened here quite a few times already. We run five Ultrix
4.3 5000/133 off a 3000/400 running OSF1.2 using NFS to mount the disk
off the Alpha to the Ultrices. Using rmdir (or rm -r) has caused a
corrupted filesystem four times already in about 6 months of use. The
total number of rmdirs (according to nfsstat) is quite low as one would
expect, approximately 10-20 between crashes. I am disappointed to see
that it still happens under 1.3. Because of its unrepeatable nature and
lack of a kernel core dump on the server (it just hangs - not crashes) I
don't really know what to do about it.
Has anybody else observed this?
Ciao, Marco
--
-------------------------------------------------------------------------
Marco Luchini Internet : luchini@ic.ac.uk
Department of Mathematics Telephone: +44 71 589 5111 x5765
Imperial College Fax: +44 71 225 8361
London SW7 2BZ, UK
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: OSF/1 Alpha swap space, memory pigs
1993-09-01 15:42 ` Dr Marco Luchini
@ 1993-09-02 11:02 ` Henk Mos
0 siblings, 0 replies; 15+ messages in thread
From: Henk Mos @ 1993-09-02 11:02 UTC (permalink / raw)
In <LUCHINI.93Sep1114257@femto.ic.ac.uk> luchini@ic.ac.uk (Dr Marco Luchini) writes:
>In article <GRUNWALD.93Aug31213136@foobar.cs.colorado.edu> grunwald@foobar.cs.colorado.edu (Dirk Grunwald) writes:
>This has happened here quite a few times already. We run five Ultrix
>4.3 5000/133 off a 3000/400 running OSF1.2 using NFS to mount the disk
>off the Alpha to the Ultrices. Using rmdir (or rm -r) has caused a
>corrupted filesystem four times already in about 6 months of use. The
>total number of rmdirs (according to nfsstat) is quite low as one would
>expect, approximately 10-20 between crashes. I am disappointed to see
>that it still happens under 1.3. Because of its unrepeatable nature and
>lack of a kernel core dump on the server (it just hangs - not crashes) I
>don't really know what to do about it.
>Has anybody else observed this?
Yes, about once a week we have the same behaviour (4000/610, OSF1.2). System
hangs, no crash. No response to ping etc. It's reported to DEC but no
results yet.
/Henk
--
----------------------------------------------------------------------
Henk J. Mos, Dept of Physics and Astrophysics, Utrecht University
The Netherlands. Phone: 31-30-532239 Email: mos@fys.ruu.nl
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread