Extremely Slow start and high CPU use on style change
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-
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 |
Changed in fluxbox: | |
assignee: | motu → dopey |
Changed in fluxbox: | |
status: | New → Fixed |
Changed in fluxbox: | |
assignee: | nobody → vik (drhf) |
status: | New → Confirmed |
Some hardware info: One machine running Ubuntu 5.04 on which the bug submitted shows itself:
Output of lshw :
prospero
description: BIOS
capabilities : pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp
description: CPU
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
descripti on: L1 cache
physical id: 8
capacity: 32KB
capabilit ies: pipeline-burst synchronous internal write-back data
descripti on: L2 cache
physical id: 9
capacity: 1MB
capabilit ies: pipeline-burst synchronous internal write-back data
description: System Memory
descripti on: DIMM DRAM Synchronous
physical id: 0
configura tion: width=64
descripti on: DIMM DRAM Synchronous
physical id: 1
configura tion: width=64
physical id: 1
version: 00
capabilit ies: pci bus_master
*-display UNCLAIMED
physical id: 0
version: 00
size: 128MB
clock: 66MHz
capabilities: cap_list
configuration : irq=11
physical id: 2
version: 04
capabilit ies: isa bus_master
physical id: 2.1
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
vendor: Award Software, Inc.
physical id: 0
version: ASUS P4S533-MX ACPI BIOS Revision 1003 (12/19/2002)
size: 64KB
capacity: 192KB
*-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
*-cache:0
slot: L1 Cache
size: 8KB
*-cache:1
slot: L2 Cache
size: 128KB
*-memory
physical id: 24
slot: System board or motherboard
size: 512MB
capacity: 1GB
*-bank:0
slot: DIMM 1
size: 256MB
*-bank:1
slot: DIMM 2
size: 256MB
*-pci
physical id: e8000000
bus info: pci@00:00.0
version: 01
clock: 33MHz
*-pci
bus info: pci@00:01.0
clock: 33MHz
bus info: pci@01:00.0
*-isa UNCLAIMED
bus info: pci@00:02.0
clock: 33MHz
*-serial
bus info: pci@00:02.1
v...