[Xastir] Fwd: [Bug 454740] [NEW] xastir consumes CPU time in X11 socket I/O
Kevin, I believe this activity level is normal. I am forwarding this to the Xastir discussion list. Please consider joining the list as that is where the true developers of Xastir hang out. The main Xastir page is now at http://www.xastir.org/wiki/index.php/Main_Page 73 Dave KB3EFS -- Forwarded message -- From: Kevin Otte ni...@nivex.net Date: Sun, Oct 18, 2009 at 11:44 AM Subject: [Bug 454740] [NEW] xastir consumes CPU time in X11 socket I/O To: david.aitche...@gmail.com Public bug reported: Binary package hint: xastir kjo...@zarya:~$ lsb_release -rd Description: Ubuntu 9.04 Release: 9.04 kjo...@zarya:~$ apt-cache policy xastir xastir: Installed: 1.9.4-3 Candidate: 1.9.4-3 Version table: *** 1.9.4-3 0 500 http://archive.linux.duke.edu jaunty/universe Packages 100 /var/lib/dpkg/status After upgrading from Intrepid (xastir 1.9.2) to Jaunty I noticed my CPU was running at a constant ~10%. Running an strace revealed there was quite a bit time spent timing out of polls on the X11 socket fd. I tried setting the DISPLAY to use TCP instead of UNIX sockets, but the high poll activity still occurred. ** Affects: xastir (Ubuntu) Importance: Undecided Status: New -- xastir consumes CPU time in X11 socket I/O https://bugs.launchpad.net/bugs/454740 You received this bug notification because you are subscribed to xastir in ubuntu. Status in “xastir” package in Ubuntu: New Bug description: Binary package hint: xastir kjo...@zarya:~$ lsb_release -rd Description: Ubuntu 9.04 Release: 9.04 kjo...@zarya:~$ apt-cache policy xastir xastir: Installed: 1.9.4-3 Candidate: 1.9.4-3 Version table: *** 1.9.4-3 0 500 http://archive.linux.duke.edu jaunty/universe Packages 100 /var/lib/dpkg/status After upgrading from Intrepid (xastir 1.9.2) to Jaunty I noticed my CPU was running at a constant ~10%. Running an strace revealed there was quite a bit time spent timing out of polls on the X11 socket fd. I tried setting the DISPLAY to use TCP instead of UNIX sockets, but the high poll activity still occurred. ___ Xastir mailing list Xastir@lists.xastir.org http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
Re: [Xastir] Fwd: [Bug 454740] [NEW] xastir consumes CPU time in X11 socket I/O
G'day, I've reviewed the Xastir source and the behaviour of the inner event loop in light of the problem reported by Kevin. I've tried to reproduce the 10% CPU utilisation, but only managed this on a particularly old CPU. On a modern CPU from 2006, the utilisation is under 1%, though strace does indeed show a regular wake-up of the process. Xastir is an OSF/Motif based application with POSIX threads. It is built with the LessTif library. The main function delegates event handling to the XtAppMainLoop function in the X toolkit. Xastir doesn't directly manage the event queue itself. Kevin's observations about CPU utilisation will be dependent on: 1. the speed of the CPU he is running Xastir on, 2. the kernel, 3. the POSIX threading implementation (libpthreads from libc6 package), 4. the LessTif implementation (libXm from lesstif2), 5. the X toolkit implementation (libXt from libx6), To locate the cause of the change from the older Ubuntu version to the newer, one potential method is to step-wise upgrade a test system, replacing first the Xastir, then lesstif2, then libx6, then libc6, and finally the kernel. At each point the CPU utilisation of Xastir can be checked. You might want to check for other bugs reported against other programs that use the lesstif2 package. A regression in the other packages is equally likely. -- James Cameron http://quozl.linux.org.au/ ___ Xastir mailing list Xastir@lists.xastir.org http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
Re: [Xastir] Debian Squeeze Make issues
On Mon, Oct 19, 2009 at 03:47:07PM +1030, Tony Hunt wrote: Anyway, as the subject infers, I am currently trying to compile Xastir-1.9.6 with Debian Squeeze. I have had problems with tiff development files. I get the following errors when running make: map_tif.c:88:21: error: xtiffio.h: No such file or directory map_tif.c:91:27: error: geo_normalize.h: No such file or directory I got this today with 1.9.4. It is normal. Debian and Ubuntu packages work around this problem by configuring the source in a special way. Read debian/rules after apt-get source xastir to see this: build: CFLAGS=-I/usr/include/geotiff ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man After I configured in that fashion, the errors went away. I don't know why the default configure doesn't pick it up. -- James Cameron http://quozl.linux.org.au/ ___ Xastir mailing list Xastir@lists.xastir.org http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir