← Back to team overview

kicad-developers team mailing list archive

pcbnew very slow under some X11 machines



pcbnew is running extremely slow on 2 of my 3 machines (all running Kubuntu 
9.04). The slow machines have an NVIDIA card and an integrated intel graphics, 
the fast machine has a radeon card.
Zooming takes seconds (even on an empty board). When the mouse overs over a 
button, it takes seconds for it to become highlighted. Placing a component 
also takes a long time.

This may be related to a lot of reads/writes/selects to the X11 socket. An 
strace reveals:

$ strace -c pcbnew 
^C% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
37.53 0.017224 0 50430 writev 
23.04 0.010575 0 96249 50473 read 
18.40 0.008443 5 1542 825 access 
15.76 0.007232 0 95692 select 
1.49 0.000682 227 3 clone 
0.76 0.000351 0 4441 gettimeofday 

This looks similar on both the working PC as well as the slow machines. Maybe 
the X11 driver on the working machines handles these many reads/writes better, 
but maybe some of them just block for a different reason.

A detailed strace reveals many

read(5, 0x9b9cb10, 4096) = -1 EAGAIN (Resource temporarily 

which are reads to /tmp/.X11-unix/X0 (the X11 socket).

Is anyone else experiencing this? Any ideas how to fix/debug this?


Follow ups