Bug 165117 - Huge resource usage downloading previews from GHNS
Summary: Huge resource usage downloading previews from GHNS
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: knewstuff (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Jeremy Whiting
URL:
Keywords:
: 161958 165143 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-27 16:17 UTC by Luciano Leveroni
Modified: 2008-06-30 21:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Leveroni 2008-06-27 16:17:42 UTC
Version:            (using Devel)
Installed from:    Compiled sources

If I click on "New Theme.." button from Desktop Settings, CPU usage go to 100% when downloading theme previews. Also, there's a lot of RAM usage as well. When watching the processes I noticed that LOTS of ones named: "kdeinit4: kio_http ..." are created, increasing memory usage very fast. When going to "New Wallpaper.." this is so bad that my desktop quite locks up if I not manage to close the window in the following seconds.

I've noticed this behavior since the refactoring of GHNS interface a couple of months ago. As of yesterday SVN this has not been fixed.

My CPU is an AMD Athlon64 3000+ with 1GB RAM and I'm running yesterday's SVN from trunk (4.0.84).

This prevents using GHNS at all, at least when the item number is quite high (like Wallpapers), so this is critical IMHO.

Hope this gets tackled ASAP.
Comment 1 Jakub Stachowski 2008-06-27 20:38:28 UTC
SVN commit 825281 by qbast:

Use KIO::get + temp buffer instead of FileCopyJob + temp files.
Schedule jobs to avoid firing hundreds of slaves.

BUG: 165117


 M  +13 -11    qasyncpixmap.cpp  
 M  +6 -1      qasyncpixmap.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=825281
Comment 2 George Goldberg 2008-06-28 04:42:29 UTC
*** Bug 165143 has been marked as a duplicate of this bug. ***
Comment 3 David Faure 2008-06-30 21:30:48 UTC
*** Bug 161958 has been marked as a duplicate of this bug. ***