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

X memory after computer sleeps

Tags: None
(comma "," separated)
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

X memory after computer sleeps

Fri Aug 27, 2010 10:11 am
Hello.

I use Sleep function a lot so I don't have to wait for my computer to turn back on. Normally X eats up about 50-80 Mbytes of RAM. Though, if I put my computer to sleep, when I turn it back on X eats up to 250-700 Mbytes of RAM. As a result, KDE Desktop eats up totally up to 1,9 Gbytes of RAM and starts eating up CPU too (especially if I start Amarok) and it becomes unusable with everything being extremely laggy. Any ideas? ANybody else with the same issue?


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Fri Aug 27, 2010 11:09 am
I noticed that in KDE 4.5 the problem occurs not only after a computer sleep. After using it for one hour, after a restart, the X now comsumes up to 350 megabytes! I only opened Kontact, kopete and firefox.


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: X memory after computer sleeps

Sat Aug 28, 2010 12:59 am
Check to see if this is related to the usage of Compositing please.

Also, which graphics driver are you using?
xrestop can be used to get a list of what programs are storing pixmaps in the X server.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Sat Aug 28, 2010 12:47 pm
Here is the output of xrestop:
Code: Select all
xrestop - Display: localhost:0
          Monitoring 52 clients. XErrors: 3
          Pixmaps:  184602K total, Other:     399K total, All:  185002K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier   
1a00000   185  136    0 3253 3542    77732K     90K  77823K  6785 plasma-desktop
6c00000     8    5    0 2052 2092    64316K     49K  64365K  7696 ACE411slides_2.pdf �~@~S Okular
1800000    48    2    0  518 1081    18036K     26K  18062K  6759 kwin
4400000    28    6    0 2076 2213     8472K     52K   8524K  5156 X memory after computer sleeps �~@� KDE Community Forums �~@~S rekonq
6000000    26    2    0 1549 1640     5306K     39K   5345K  7407 kontact
1c00000    11    3    0 2572 2635     4396K     62K   4458K  7016 kopete
3e00000     5    3    0  105  161     3353K      3K   3357K  6918 Yakuake
6800000     5    3    0 1480 1622     1134K     38K   1173K  8951 keditbookmarks
4800000    14    4    0   74   98      345K      2K    348K  6941 kmix
5400000     4   20    0    2   10      175K    816B    176K  6929 wicd-client.py
4000000     4   20    0    2   10      175K    816B    176K  6911 gtk-redshift
5000000     5    1    0   11   17      152K    552B    152K  6949 klipper
5a00000     3    1    0  121  136      130K      3K    134K  7391 kwalletd
3a00000     3    1    0   32   57       96K      1K     98K  6910 Run Command
1200000     3    1    0    3  507       56K     11K     67K  6729 kglobalaccel
6200000     4    1    0    8   20       59K    600B     60K  7403 kwalletmanager
4200000     0    1    0    4    9       56K    240B     56K   ?   <unknown>
3600000     0    1    0    4    9       56K    240B     56K   ?   <unknown>
2a00000     0    1    0    4    9       56K    240B     56K   ?   <unknown>
1e00000     3    1    0    3   11       56K    360B     56K  6791 kuiserver
3200000     0    1    0    3    8       56K    216B     56K   ?   <unknown>
2c00000     0    1    0    3    8       56K    216B     56K   ?   <unknown>
5600000     0    1    0    4    9       28K    240B     28K   ?   <unknown>
2e00000     0    1    0    4    9       26K    240B     26K   ?   <unknown>
1000000     3    1    0    3   11       26K    360B     26K  6787 knotify4
0e00000     4    1    0    5   18       25K    552B     26K  6722 kded4
5c00000     2    1    0    3   15       24K    432B     24K  6925 Document Print Status
2800000     0    1    0    3    8       24K    216B     24K   ?   <unknown>
2600000     3    1    0    2   10       24K    336B     24K  6832 akonadi_contacts_resource
2400000     3    1    0    2   10       24K    336B     24K  6833 akonadi_contacts_resource
2200000     3    1    0    2   10       24K    336B     24K  6831 akonadi_contacts_resource
2000000     3    1    0    2   10       24K    336B     24K  6830 akonadi_contacts_resource
3c00000     0    1    0    2    7       24K    192B     24K   ?   <unknown>
3400000     0    1    0    2    7       24K    192B     24K   ?   <unknown>
3000000     0    1    0    2    7       24K    192B     24K   ?   <unknown>
0000000     2    0    2    0  179        0B      6K      6K   ?   <unknown>
4e00000     2    3    1    1    9        4B      1K      1K  5229 npviewer.bin
0200000     0    1    1    0    0        0B      1K      1K   ?   <unknown>
1600000     4    1    0    1   10        0B    360B    360B  6757 Qt-subapplication
7400000     2    3    0    1    8        4B    312B    316B  9022 npviewer.bin
1400000     0    1    0    0   10        0B    264B    264B   ?   <unknown>
0400000     2    1    0    0    5        0B    192B    192B  5155 rekonq
5800000     1    1    0    0    0        0B     48B     48B   ?   <unknown>
5200000     1    1    0    0    0        0B     48B     48B   ?   xrestop
0c00000     1    1    0    0    0        0B     48B     48B   ?   <unknown>
0600000     1    1    0    0    0        0B     48B     48B   ?   <unknown>
6e00000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
4c00000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
4a00000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
4600000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
0a00000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
0800000     0    1    0    0    0        0B     24B     24B   ?   <unknown>

Is it helpfull?


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Sat Aug 28, 2010 2:42 pm
I also noticed that compositing may have increased memory usage after disabling it for a while and enabling it again. What can I do? I'm using nvidia 256.44-2.


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: X memory after computer sleeps

Sun Aug 29, 2010 9:15 am
Do you have a particularly graphics heavy desktop background, Plasma theme or a large number of applets loaded in Plasma?

The figure for X memory in use by Plasma seems *very* high.
Which applets do you have in use?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Sun Aug 29, 2010 11:21 am
Thanks for replying. Hehe well yes I have many applets indeed 'cause I need them:
Two folder views,a weather applet, two notes, an nVidia temperature monitor, a disk space monitor, calendar , analog clock, CPU temperature monitor, netwok monitor, CPU monitor, RAM monitor, daisy panel applet and at my panel I have translatoid and a couple of icons. I also have two other activities, one Search and Launch and one folder view. Is this information helpful? Is a particular applet causing it? Having many activities increases memory usage?


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: X memory after computer sleeps

Sun Aug 29, 2010 11:07 pm
A large number of Applets will cause Plasma to use more memory. Can you check what the memory usage of Plasma is on startup, prior to suspending and post suspension?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Mon Aug 30, 2010 6:45 am
When I login memory usage is about 0.6-0.7 Gbytes with Nepomuk services disabled. Now after a 5-6 hour usage and a suspend overnight, it is 1.5 Gbytes. X uses 484.9 Mbytes from that memory. It started from about 30-35 Mbytes. The rest of it from the initial 0.6-0.7 Mbytes is other programs I started after login. Do the extra Activities eat up memory?


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: X memory after computer sleeps

Mon Aug 30, 2010 8:34 am
Did you check using xrestop to see if those changes were due to applications leaking graphics memory? If the numbers remained relatively low, then it is an X server / Graphics driver bug you have encountered.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Tue Aug 31, 2010 6:22 am
No I think it's just the X that is all about. The other programs in xrestop seem not to change that much. I noticed one other thing: If I suspend to disk (not to RAM), memory usage is minimized again with X falling to about 100Megabytes :o Is it something you have seen again?


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: X memory after computer sleeps

Wed Sep 01, 2010 7:20 am
Unfortunately I have not seen this. This certainly sounds like a bug in the X server or the graphics driver.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Wed Sep 01, 2010 7:25 am
Thanks for helping. I'll keep looking and I'll post here any progress so other users can see it.


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS

Re: X memory after computer sleeps

Sat Sep 04, 2010 10:37 am
I found a useful Arch Linux topic according KDE ram usage and somebody proposed a site in it. Read them:

https://bbs.archlinux.org/viewtopic.php?id=103943
http://www.linuxatemyram.com/

This doesn't answer though why X is using so much RAM after a couple of hours of use.


Well good job Einstein, why don't we build a rocket in the meantime...


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]