home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8241 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!llyene!puente!john
  3. From: john@pluto.Jpl.Nasa.Gov (John R Veregge)
  4. Subject: Xt and CPU usage
  5. Message-ID: <1992Dec29.045310.19657@llyene.jpl.nasa.gov>
  6. Sender: news@llyene.jpl.nasa.gov
  7. Nntp-Posting-Host: puente.jpl.nasa.gov
  8. Reply-To: john@pluto.Jpl.Nasa.Gov
  9. Organization: Jet Propulsion Laboratory, Pasadena CA
  10. Date: Tue, 29 Dec 1992 04:53:10 GMT
  11. Lines: 23
  12.  
  13. We have developed several large Motif applications that are complete CPU
  14. hogs and I don't know why.
  15.  
  16. Each application has 300 to 500 XtCreateWidget() and 8 XtAppCreateShell()
  17. calls. These calls are all made before XtAppMainLoop() is called. Widgets
  18. are not destroyed until the application exits.
  19.  
  20. Each application is driven by both the GUI and serialized data using
  21. XtInputCallbackProc's.
  22.  
  23. We run 2 to 4 application on a workstation.
  24.  
  25. 2 applications will put CPU usage of a Sparc 2 at 97%, even when
  26. completely idle with no serialized data input and no X events (GUI input),
  27. using X11R4, on Sun Sparc 2's with 32+ megs of memory and 20+ megs of swap.
  28.  
  29. Can anyone tell me (1) Why? and (2) How can I fix (optimize) this?
  30. ______________________________
  31.  
  32. John R Veregge
  33. Jet Propulsion Laboratory
  34. Calif Institute of Technology
  35. john@pluto.triton.jpl.nasa.gov
  36.