[bt-devel] Long delay (100% CPU use) between 'Install works?' and 'Install progress' dialogs

Jonathan Marsden jmarsden at fastmail.fm
Sat Jun 6 16:44:50 MST 2009


In BT 2.0, when attempting to install many (50 or more?) works at once,
there seems to be a long delay (up to several minutes) between the
"Install works?" dialog and the appearance of the "Install progress"
dialog, during which time BibleTime 2.0 appears to be 'hung'.  No busy
cursor, no window updates if I move things around on screen, etc.
Running top shows bibletime taking 100% of CPU (that is, of one core of
the CPU).

Even for just 10 or 20 works, there is a noticeable (several seconds)
delay at this point during which BT feels dead and is using 100% of a
CPU core.

I have not yet been patient enough to try clicking in the "Bibles" top
level checkbox so that all bibles are installed!

To reproduce:

1) Install SWORD 1.6.0 and BibleTime 2.0 (I used .deb packages)

2) rm -r ~/.sword  # Blow away all installed modules so we start afresh

3) Run bibletime

4) Click on Settings -> Bookshelf Manager

5) Click Refresh to get a list of available modules from CrossWire

6) Click the triangle next to Bibles

7) Click on the checkbox next to English

8) Click Install...

9) Click Install in the Install works? confirmation dialog

10) Wait... and wait...

I'm not all that concerned that there is a delay when you have a
significant number of works being installed at once; I'm concerned at
the way BT feels like it died, and at the amount of CPU that gets eaten
up in whatever it is doing.  One CPU core is pegged at 100% during this
delay.

Can others confirm this and/or explain this behaviour?  What is BT doing
that requires so much heavy computation during this period?

Thanks,

Jonathan



More information about the bt-devel mailing list