home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.intrinsics
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!qualtrak
- From: qualtrak@netcom.com (Qual Trak)
- Subject: Re: Xt and CPU usage
- Message-ID: <1992Dec30.051935.2818@netcom.com>
- Organization: QualTrak Corporation
- References: <1992Dec29.044957.19576@llyene.jpl.nasa.gov>
- Date: Wed, 30 Dec 1992 05:19:35 GMT
- Lines: 34
-
- In article <1992Dec29.044957.19576@llyene.jpl.nasa.gov> john@pluto.Jpl.Nasa.Gov writes:
- >We have developed several large Motif applications that are complete CPU
- >hogs and I don't know why.
- >
- >Each application has 300 to 500 XtCreateWidget() and 8 XtAppCreateShell()
- >calls. These calls are all made before XtAppMainLoop() is called. Widgets
- >are not destroyed until the application exits.
- >
- >Each application is driven by both the GUI and serialized data using
- >XtInputCallbackProc's.
- >
- >We run 2 to 4 application on a workstation.
- >
- >2 applications will put CPU usage of a Sparc 2 at 97%, even when
- >completely idle with no serialized data input and no X events (GUI input),
- >using X11R4, on Sun Sparc 2's with 32+ megs of memory and 20+ megs of swap.
- >
- >Can anyone tell me (1) Why? and (2) How can I fix (optimize) this?
- >______________________________
- >
- >John R Veregge
- >Jet Propulsion Laboratory
- >Calif Institute of Technology
- >john@pluto.triton.jpl.nasa.gov
-
- I seem to remember having a program returning zero length reads on a
- file associated with a tty when I had added a reader proc with the
- XtAppAddInput () function. The result was that the reader proc was
- being called each time through the XtAppMainLoop (). Something like
- this could be chewing up your CPU.
- ----- -----
- John Birchfield - QualTrak Corp (408) 730-2674 Home (408) 736-3852
- jb@QualTrak.COM
- ----- -----
-