xastir consumes CPU time in X11 socket I/O
Bug #454740 reported by
Kevin Otte
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xastir (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: xastir
kjotte@zarya:~$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
kjotte@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://
100 /var/lib/
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.
Changed in xastir (Ubuntu): | |
status: | New → Confirmed |
Changed in xastir (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Kamal Mostafa (kamalmostafa) |
Changed in xastir (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
To post a comment you must log in.
The problem still occurs in the latest upstream version xastir-1.9.6 ( available for testing in my PPA: https:/ /launchpad. net/~kamalmosta fa/+archive/ xastir ).
Strace on xastir-1.9.6 shows this sequence spinning hard:
sched_yield() = 0 POLLIN| POLLPRI} ], 2, 9) = 0 (Timeout) POLLIN| POLLPRI} ], 1, 0) = 0 (Timeout) POLLIN| POLLPRI} ], 2, 0) = 0 (Timeout) POLLIN| POLLPRI} ], 1, 0) = 0 (Timeout)
sched_yield() = 0
read(5, 0x1694914, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(5, 0x1694914, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=6, events=
poll([{fd=6, events=
read(5, 0x1694914, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(5, 0x1694914, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=6, events=
poll([{fd=6, events=
[...]