Xorg consuming too much memory in Edgy

Bug #80731 reported by RubenRebelo
This bug report is a duplicate of:  Bug #98783: MASTER: memory leak. Edit Remove
2
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: xorg

I'm using Kubuntu 6.10. I have the nvidia binary drivers ver nº 9631 installed and my xorg.conf is almost standard, configured using only this command:

sudo nvidia-xconfig --add-argb-glx-visuals

The problem is that Xorg consumes more and more memory as I use the computer. After 1 ~ 2 Hours of use, xorg is using 150 ~ 250 MB of swapped memory, and about 100 MB of RAM, and if I continue to using the computer xorg just grows and grows. As my system only has 512 MB of RAM, after a few minutes of use I end with 15 ~ 20 MB of free RAM..

There are some reports from other users with the exact same problem, some of them using ATI cards (so, I suppose this is not a driver issue), as you can check here:

http://www.ubuntuforums.org/showthread.php?t=104864&page=2

PS: sorry the bad English.

Revision history for this message
didier (did447-deactivatedaccount) wrote :

Hi,

Did you check with xrestop if an application is leaking X resource?

Changed in xorg:
assignee: nobody → did447
status: Unconfirmed → Needs Info
Revision history for this message
RubenRebelo (mundano) wrote :

Looking to xrestop everything seems ok. "Pxm mem" is constant in all processes over time.

I have noticed that having beryl (2.0 beta1) running really increases the problem. But Xorg's memory usage grows anyway, with or without beryl... Based on top, Xorg is always using about 100MB of physical memory.

Revision history for this message
didier (did447-deactivatedaccount) wrote :

Thanks,

Can you attach you're /var/log/Xorg.0.log for reference. But with proprietary driver I'm afraid you can only hope for the best.

Revision history for this message
RubenRebelo (mundano) wrote :

Here is the log..

Sorry for the delay, but I was away from home..

Revision history for this message
brucenico (nicolas-mollet-deactivatedaccount) wrote :

Well, I've got a similar problem......
I've noticed that Xorg si always growing in memory, and I don't understand why... So, here are the traces on 24h to see this evolution. The only actions on the PC with ubuntu Edgy were a few web search and mails checks. I didn't work with this computer during those 24h.

************************
1- before the test. My computer was too slow after a few days of use: Xorg was consuming 80% of my memory (RAM 1Go / Swap 2Go). That was the result with "top". I used "xrestop" and I saw that swiftfox (I'm using an AMD64) was consuming 70%. So I closed all the swiftfox windows. Xrestop said that Xorg was now at 20%. But... with top, Xorg was still at 70% !!! ====> X reboot

************************
2- begin of the test

19:24
==> Xorg 3% of memory
==> swiftfox 4.9%
==> For whole ubuntu : 243Mo

20:46
==> Xorg: 4.1%
==> swiftfox 5.6%
==> For whole ubuntu : 262Mo

23:15
==> Xorg: 10.3%
==> swiftfox 6.3%
==> For whole ubuntu : 363Mo

The day after, 9:50 (AM) (so: one night without action on the PC)
==> Xorg: 9.8%
==> swiftfox 6.3%
==> For whole ubuntu : 397Mo

20:15
==> Xorg: 13%
==> swiftfox 6.7%
==> 448Mo au total en charge mémoire

(just before this last test, I've check my mails with a webmail in swiftfox, here the traces with xrestop :
With the active webmail
2c00000 323 67 1 264 136 62893K 13K 62906K 5008 Webmail
After closing the webmail and another swiftfox window:
2c00000 259 66 1 211 128 11063K 11K 11075K 5008 Forum
)

*********************************************************************************
*********************************************************************************
Conclusion:
Swiftfox seems to ask ressources to X, and after closing its windows those ressources seem to be free (xrestop, the last test). BUT, with "top", X stay at the same level in memory ?!?!

==> In 24hours, Xorg goes from 3% to 13% in memory, without working on the pc, just with a small use of swiftfox (and this last: from 4% to 6.7%) ! For the whole Ubuntu system, it goes from 243Mo to 448Mo !

==> Why ??????

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.