Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th August 2008, 03:09 AM
jhhaynes Offline
Registered User
 
Join Date: Mar 2005
Posts: 84
fltk and Xinerama

I compiled an application that links with the fltk library. It insisted that I also link with
the Xinerama library. When it runs the Xserver takes up about 50% of the available
CPU time. I then compiled my own fltk library, not enabling Xinerama, and linked with
that. This application runs fine, with quite low CPU loading from the X server.

So what is it about using the distribution-supplied fltk and Xinerama that causes such
excessive CPU burning? I've done this on F8 and F9 with the same results.
Reply With Quote
  #2  
Old 8th August 2008, 05:36 AM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,616
Interesting. I've noticed that some apps and libraries shipped with Fedora are linked against a lot more libraries than is necessary. Run ldd against the Fedora-supplied fltk shared library and then run it against the one you compiled, then compare. On my F7 system I get this with the Fedora fltk shared library:
Code:
$ ldd /usr/lib/libfltk.so.1.1
        linux-gate.so.1 =>  (0xffffe000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb7e6b000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7e68000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7e50000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7e4b000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7e3a000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d38000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c4d000)
        libm.so.6 => /lib/libm.so.6 (0xb7c24000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7c18000)
        libc.so.6 => /lib/libc.so.6 (0xb7ac4000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7a94000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a0a000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a01000)
        /lib/ld-linux.so.2 (0x80000000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb79fe000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb79f8000)
        libexpat.so.0 => /lib/libexpat.so.0 (0xb79d6000)
If your fltk library is lighter and faster, I'd just use that and uninstall the Fedora one.
Reply With Quote
  #3  
Old 9th August 2008, 12:02 AM
jhhaynes Offline
Registered User
 
Join Date: Mar 2005
Posts: 84
Well that's what I did, but I wish somebody who understands these things would figure out why
the Fedora one causes the problem so I wouldn't have to work around it. Maybe I should file a bug
report.
Reply With Quote
Reply

Tags
fltk, xinerama

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xinerama and Compiz? Seven of Nine Using Fedora 0 8th November 2006 08:49 PM
Xinerama possible in FC5 hiberphoptik Fedora Core 5 - Dev 3 27th February 2006 07:22 AM
Installing FLTK, missing x11 libraries sharpstones Using Fedora 4 5th March 2005 05:40 AM
mwm xinerama isillight Using Fedora 0 3rd March 2005 04:13 PM
New package : fltk (Stable : rh80/rh9/1) fedora-package-announce-admin@fedora.us Advisories & Updates 0 21st November 2003 02:05 PM


Current GMT-time: 02:30 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat