This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KPat: "High" Memory Consumption

Tags: None
(comma "," separated)
dimitar
Registered Member
Posts
32
Karma
0
OS

KPat: "High" Memory Consumption

Sat May 21, 2011 10:57 am
I use KDE SC 4.6 on a x86-64 Archlinux and noticed that KPat uses about 200 MB of memory. Now, I know it uses SVG and I like the animations very much, but it seems to me that the used memory is a bit more, given that plasma-desktop uses about 100 MB with all it's plasmoids and data engines. Does anyone else experience this? Is this a bug and how can the memory consumption be decreased?
User avatar
google01103
Manager
Posts
6668
Karma
25
after opening Kpat and starting a bunch of different games I'm seeing 70,000K memory and 23,000k shared, if I just run freecell at open memory is .

couple thoughts: could your memory consumption be caused by the choice of card deck or background and does memory usage increase over time as the game in played

Last edited by google01103 on Wed May 25, 2011 6:49 pm, edited 1 time in total.
Reason: wrong ram usage originally read


OpenSuse Leap 42.1 x64, Plasma 5.x

dimitar
Registered Member
Posts
32
Karma
0
OS

Re: KPat: "High" Memory Consumption

Sat May 21, 2011 12:42 pm
google01103 wrote:after opening Kpat and starting a bunch of different games I'm seeing 70K memory and 23k shared, if I just run freecell at open memory is 7k.

couple thoughts: could your memory consumption be caused by the choice of card deck or background and does memory usage increase over time as the game in played

70K!!! Wow! You are not talking about used pixmap memory or...? What I meant is the heap memory allocated by the process as shown by ksysguard.

On the other hand, you are right that different themes have significant memory impact - I switched the background theme to plain green and now kpat consumes about 40 MB. Further, I switched the Qt graphics system from raster to native (I think that means that it uses XRender?) and the memory dropped further and xrestop shows that kpat uses pixmaps (which I suppose is good :) ). Anyway, thanks for the hints - I learned a little bit today :)

Cheers,
Dimitar
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: KPat: "High" Memory Consumption

Sat May 21, 2011 12:47 pm
Image


OpenSuse Leap 42.1 x64, Plasma 5.x

dimitar
Registered Member
Posts
32
Karma
0
OS

Re: KPat: "High" Memory Consumption

Sat May 21, 2011 1:24 pm
Uhm, just for the sake of completeness: 8,000 is actually 8000 and not 8.0 in US localisation :P Nontheless, 8 MB is quite low. Thanks again.
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: KPat: "High" Memory Consumption

Wed May 25, 2011 6:51 pm
maybe you're onto something, after leaving the app open and playing a bunch of hands the ram usage is164,000K as shown in system monitor


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KPat: "High" Memory Consumption

Thu May 26, 2011 4:49 am
There could be potentially a memory leak in KPat. If the memory usage after playing each hand continues to increase, then it might be a good idea to file a bug report.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: KPat: "High" Memory Consumption

Thu May 26, 2011 10:49 am


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], mesutakcan, Sogou [Bot]