Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 1997 22:21:01 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        drussell@saturn-tech.com (Doug Russell)
Cc:        terry@lambert.org, freebsd-current@freebsd.org
Subject:   Re: SIGTERMs killing X
Message-ID:  <199703260521.WAA27235@phaeton.artisoft.com>
In-Reply-To: <Pine.BSF.3.95.970325221549.600A-100000@586quick166.saturn-tech.com> from "Doug Russell" at Mar 25, 97 10:26:24 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > What it means is that your VM space for your process has been
> > destroyed (you can see this by looking in /sys/kern/kern_exec.c).
> ...
> > To rememdy this, you should increas the amount of swap space you have.
> 
> Ok, sounds reasonable.  The only question is, how on earth does it need
> that much swap space?  I currently have 32 megs of RAM, and single 64 meg
> swap allocated.  The only things that were running on the machine when the
> thing died were XF86_SVGA, Fvwm, Xearth on the root window, and probably a
> screensaver from the xscreensaver collection.

You should watch the size of your X server.  Most likely, it, or
Netscape's use of bitmaps on it, or Xerth's use of bitmaps on it,
are the cause of a memory leak.  You should consider using an X
server that has been linked against Poul-Henning Kamp's new malloc,
which is capable of sbrk'ing back to the system.


> How could that eat up that much VM?  Is that actually possible, or is
> there something else at work here?  What is the best guess, add a whack
> more swap and see if it persists?  Turn off xscreensaver?  (It is set to
> randomly select one every once in a while... maybe one of them is acting
> up and when it gets called, it kills the system.)  What do I know?  :)

Watch the size of your XServer.  See which of the programs you are
runnng cause it to grow.  Potentially, update your X server to
newer code (you may have to update FreeBSD to do this) or quit
running the problem application.

I syspect that if you are not running ahuge number of programs with
huge memory requirements, that increasing the swap will only make
it take longer to have the problem.


					Regards,
					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703260521.WAA27235>