Bug 161958 - get hot new stuff takes much memory
Summary: get hot new stuff takes much memory
Status: RESOLVED DUPLICATE of bug 165117
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:
Depends on:
Blocks:
 
Reported: 2008-05-11 14:53 UTC by Przemyslaw Kaminski
Modified: 2008-06-30 21:30 UTC (History)
2 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 Przemyslaw Kaminski 2008-05-11 14:53:32 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

When I enter the 'Get Hot New Stuff' dialog, for example to download new desktop themes, KDE starts up many kio_file processes, each of them uses 2% of memory (I have 512MB plus 1G of swap). When there are many things to download (themes, wallpapers, emoticons, whatever) this just causes some big memory usage, swap space is used heavily and I need to wait for a couple of minutes for everything to settle down. I suppose this is because GHNS tries to download all the image previews at the same time.
Maybe the GHNS dialog should be split into several pages (with, for example, 10 items on each page) so that the resources aren't used that much.
Comment 1 Eduard Sukharev 2008-05-13 20:05:34 UTC
I get the similar problem on KDE4.0.73 on MS Windows XP. When i try to download, for example, new styles for Kopete, the dialog appears and the progressbar runs to the 100% and then it tries to download all the previews, so i end up with about 70 kioslave.exe processes in my taskmanager and total CPU consumption. After 20-30 seconds it all goes down and i'm able to work again.
Comment 2 David Faure 2008-05-16 21:28:48 UTC
70 kioslaves? Wow, so knewstuff is doing 70 KIO::get() at the same time? The KIO scheduler is supposed to do some queueing I think, but it looks like this doesn't work.

Independently from this, if kio_http implemented copy() then we wouldn't need any kio_file process and we should save time+memory. Added to TODO list, ETA 2012 (we need kio_http developers!)...
Comment 3 Ivo Anjo 2008-06-10 19:41:51 UTC
I second this! I have an old Toshiba Satellite laptop with a pentium III processor and 192mb of ram (yeah, that old), and I can kinda run kde4, but get hot new stuff completely trashes my system.

I just opened it to try and download a kdm theme and my laptop was unusable for 15 minutes, htop was saying at one point that I had 338 tasks (=processes, I think) and 110 LOAD AVERAGE!

And yeah, dozens of kio_http and kio_file.

Ghns should really throttle down on the aggressiveness. And I think this classifies as a bug, if you don't have a big multicore multigb ram monster to handle it.
Comment 4 mimoune djouallah 2008-06-21 22:32:39 UTC
i confirm that with kde4.0.83, as i have only 256 mb, installing new theme works but consume all my computer memory,
Comment 5 Claudio Contino 2008-06-26 12:23:13 UTC
this is very annoying on my laptop, I think previews should be loaded sequentially.
I also have a question: are kio jobs deleted after they're finished? It seems like no
Comment 6 David Faure 2008-06-26 12:47:35 UTC
KIO jobs are definitely deleted after they're finished.
Comment 7 David Faure 2008-06-30 21:30:46 UTC

*** This bug has been marked as a duplicate of 165117 ***