Extremely Slow start and high CPU use on style change

Bug #1866 reported by Peter Garrett
4
Affects Status Importance Assigned to Milestone
Fluxbox
Confirmed
Undecided
vik
fluxbox (Ubuntu)
Fix Released
Medium
matth

Bug Description

The Ubuntu fluxbox package (version 0.9.11) starts very slowly (about 30 seconds on a 2Ghz machine).

Changing styles is similarly slow and uses 90-100% CPU.

This has been reported on the ubuntu-users mailing list, including a thread in which I offered a solution.

"On Tue, 21 Jun 2005 22:43:40 -0400
Frank McCormick <email address hidden> wrote:

>
> Hi all
> Trying out a few new window managers...and ran into a problem with
> Fluxbox. It takes a full 30 secs to load the desktop, which is pretty
> plain and simple. Reloads from the menu take the same time and changing
> themes (which flux calls "styles") take almost as long. I used Fluxbox
> and Blackbox on other distros a couple of years back and they never
> took that long to do anything.

hi Frank: from an earlier post....

On Tue, 24 May 2005 16:33:34 +0300
Amichai Teumim <email address hidden> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi guys
>
> This is regarding fluxbox
>
> "if its not too much trouble - please mail the maintainer of the
> package and tell him to --disable-xmb so that this problem is fixed
> once and for all. your not the first person that has this problem"
>
> "its something about the font server being flooded with queries."

<snip>

My delighted reply was: (!)

This is the answer! Thanks for the info!

I just recompiled fluxbox thus: (including what you should need to make it work)

1. sudo apt-get install build-essential checkinstall #(I already had these, but in case you don't)
2. sudo apt-get install xlibs-dev #(you'll need this or it won't compile)
3. Get the source tarball and tar xvjf <fluxbox-tarball-of-choice> [edit: if it's a tar.bz2 ; tar xvzf for tar.gz]
4. cd to the directory created
5. ./configure --enable-kde --enable-gnome --disable-xmb (note the --disable-xmb!)
6. make
7. sudo checkinstall
(optional, instead of "sudo make install", but makes it easier to uninstall and so on)

This should build a package for you and install the fluxbox binary in /usr/local/bin
If you make a ~/.xsession file for it you should now be able to start it from the Default session in GDM.

Flux now starts for me in seconds, and no longer eats my cpu for breakfast when I try to change themes... ;-)

Hope this helps someone...

Peter

the answer is the --disable-xmb option in the configure step, as above. My Fluxbox now is its usual snappy self! I actually did mail the maintainer- but maybe we have to wait for Breezy for an Ubuntu fix?"

From observation on #ubuntu it appears not everyone has this problem, so it may be hardware-specific?

Obligatory disclaimer:

IANAP (I am not a programmer ;-)

Changed in fluxbox:
assignee: nobody → motu
Revision history for this message
Peter Garrett (peter-garrett) wrote :
Download full text (6.7 KiB)

Some hardware info: One machine running Ubuntu 5.04 on which the bug submitted shows itself:

Output of lshw :

prospero
    description: Computer
    product: System Name
    vendor: System Manufacturer
    version: System Version
    serial: SYS-1234567890
    capabilities: smbios-2.3 dmi-2.3
  *-core
       description: Motherboard
       product: P4S533MX
       vendor: ASUSTeK Computer INC.
       physical id: 0
       version: REV 1.xx
       serial: xxxxxxxxxxx
     *-firmware
          description: BIOS
          vendor: Award Software, Inc.
          physical id: 0
          version: ASUS P4S533-MX ACPI BIOS Revision 1003 (12/19/2002)
          size: 64KB
          capacity: 192KB
          capabilities: pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp
     *-cpu
          description: CPU
          product: Intel(R) Celeron(R) CPU 2.00GHz
          vendor: Intel Corp.
          physical id: 4
          version: 15.2.7
          slot: PGA 478
          size: 2GHz
          capacity: 3200MHz
          clock: 100MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
        *-cache:0
             description: L1 cache
             physical id: 8
             slot: L1 Cache
             size: 8KB
             capacity: 32KB
             capabilities: pipeline-burst synchronous internal write-back data
        *-cache:1
             description: L2 cache
             physical id: 9
             slot: L2 Cache
             size: 128KB
             capacity: 1MB
             capabilities: pipeline-burst synchronous internal write-back data
     *-memory
          description: System Memory
          physical id: 24
          slot: System board or motherboard
          size: 512MB
          capacity: 1GB
        *-bank:0
             description: DIMM DRAM Synchronous
             physical id: 0
             slot: DIMM 1
             size: 256MB
             configuration: width=64
        *-bank:1
             description: DIMM DRAM Synchronous
             physical id: 1
             slot: DIMM 2
             size: 256MB
             configuration: width=64
     *-pci
          physical id: e8000000
          bus info: pci@00:00.0
          version: 01
          clock: 33MHz
        *-pci
             physical id: 1
             bus info: pci@00:01.0
             version: 00
             clock: 33MHz
             capabilities: pci bus_master
           *-display UNCLAIMED
                physical id: 0
                bus info: pci@01:00.0
                version: 00
                size: 128MB
                clock: 66MHz
                capabilities: cap_list
                configuration: irq=11
        *-isa UNCLAIMED
             physical id: 2
             bus info: pci@00:02.0
             version: 04
             clock: 33MHz
             capabilities: isa bus_master
        *-serial
             physical id: 2.1
             bus info: pci@00:02.1
             v...

Read more...

Revision history for this message
Peter Garrett (peter-garrett) wrote : Re: Extremely Slow start etc Update

This bug appears to be solved using the latest svn code for fluxbox: Version 0.9.14

http://fluxbox.org/download.php#svn

(at least on the machine detailed above, compiled on Ubuntu 5.04 with the --enable-kde and --enable-gnome options )

$ fluxbox -info
Fluxbox version: 0.9.14
SVN Revision: 4113
Compiled: Sep 15 2005 23:33:29
Compiler: GCC
Compiler version: 3.3.5 (Debian 1:3.3.5-8ubuntu2)

Defaults:
    menu: /usr/local/share/fluxbox/menu
   style: /usr/local/share/fluxbox/styles/Clean
    keys: /usr/local/share/fluxbox/keys
    init: /usr/local/share/fluxbox/init

Compiled options (- => disabled):
-DEBUG
SLIT
TOOLBAR
XPM
-IMLIB2
GNOME
KDE
EWMH
REMEMBER
SHAPE
XFT
XMB
-XINERAMA
RENDER

If there is time, perhaps this version can be added to Universe for Breezy?

matth (dopey)
Changed in fluxbox:
assignee: motu → dopey
Daniel T Chen (crimsun)
Changed in fluxbox:
status: New → Fixed
vik (drhf)
Changed in fluxbox:
assignee: nobody → vik (drhf)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.