Re: XForms: Why so much memory needed ?

Steve Lamont (spl@szechuan.ucsd.edu)
Sat, 17 May 97 08:51:51 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Sorry that was really not clear .. Yeah the display shows an error
> message because there is not enough memory or there will be not
> enough memory to do the next operations . No core dump . No bogus
> display but a display slow down and very instable.

> It means that if you don't close it quicklyODODOy the
> application crash (XServer closing connection )...) . So I would
> like to know how to avoid this to make some small things with two
> windows (for one there is less problems) work on thos xterms.

Well, your machine *is* pretty small (4 MB right? I can't believe I'm
saying that 4 meg is *small* -- that's half of an old Cray 1, which I
thought was huge at the time!!!) and X is something of a hog, XForms
or no XForms. For instance, the xphoon (phase of the moon background
screen) runs at over 4 MB (after it's been running for a while) and
plain old xterms can exceed a megabyte (these numbers are for a Sun
SPARC 5 running X11R6.1 and SunOS 4.1.4). It will also depend upon
what has run previously, since the Xserver can bloat up to a pretty
huge size if you've been throwing lots of Pixmaps at it.

I discussed server bloat at some length maybe a year ago on this list
-- if you're interested you might go digging through the archives.
Basically, once memory is allocated in the Xserver by some application
request it doesn't have any way of returning that memory to the system
and so its size can baloon considerably (doing a free() just makes the
memory available to the application again -- it doesn't reduce the
core image size of the application).

You may want to increase the size of your swap area, although that's
really just a marginal workaround, since most small computers
performance is pretty pitiful when it comes to swapping and paging.
As an old VM/CMS programmer friend of mine once said: "There's no core
like real core."

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/