Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-21-07, 05:33 AM   #49
karolbe
Registered User
 
Join Date: Dec 2007
Posts: 18
Default Re: memory leak under compiz w/ 100.14.19

Quote:
Originally Posted by xorbe
Unfortunately the memory leak is still present in 169.07 version in my last post I wrote that it was gone but I was wrong...

Question to nVidia: any ideas when this bug will be fixed? Perhaps it is not your fault but Compiz? I REALLY like running OpenGL Desktop, it's much faster than normal 2D but since I have to run many memory consuming apps like VMWare, Eclipse etc. I get oom-killer hunting quite often (and I have 2GB of memory!) which is extremely inconvenient, killing Eclipse is not a problem usually but killing VMWare can sometimes corrupt it's disk images which is a BIG problem...

Generally each time I open a new full screen window at least 5-10MB of memory leaks (that is compiz.real RES memory value increases). The bigger window the more memory leaks. Right now after 1.5H after starting X session compiz.real is consuming 17.6% of memory (even more than Eclipse):

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
7159 karolbe 15 0 457M 355M 337M S 5.8 17.6 3:46.37 /usr/bin/compiz.real --ignore-desktop-hints --replace --loose-binding --sm-client-id default0 ccp
karolbe is offline   Reply With Quote
Old 12-22-07, 06:22 PM   #50
manwe_
Registered User
 
Join Date: Nov 2007
Posts: 11
Default Re: memory leak under compiz w/ 100.14.19

Just checked, .07 same as .04, memory leak happens only for windows restored from systray, normal minimization works ok. A month without any news from developers, looks like nvidia don't give a s**t about this

@karolbe: showing new window takes few MBs of memory if video card is out of RAM, this is how it should work. Problem is that memory is not freed when window is minimized or closed (restoring and hiding window few times should show increasing memory consumption). For me this happens only if windows are hidden to system tray, how is it with your system?
manwe_ is offline   Reply With Quote
Old 12-23-07, 04:42 AM   #51
ctheo
Registered User
 
Join Date: Mar 2007
Posts: 74
Default Re: memory leak under compiz w/ 100.14.19

169.07 - nothing changed compared to beta driver 169.04 - I can still grow memory gradually with consecutive maximize/restore/maximize/restore ... of a single window in kde
Attached Files
File Type: gz bug-report startx -- -logverbose 6.tar.gz (36.6 KB, 136 views)
ctheo is offline   Reply With Quote
Old 12-23-07, 04:54 AM   #52
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Re: memory leak under compiz w/ 100.14.19

try xrestop -- see if anything is claiming X memory. if something is, it's a buggy X app, not the driver.

If X is buggy (either x.org or the driver, not sure how to separate the two), then xrestop will show like 10MB, and X process will be huge (600MB-1.5GB i've seen in various posts).

But if X is 300MB, and xrestop shows 150 for Firefox and 100 for KDE, then it's working fine, and have a look at the app or restart the app.
xorbe is offline   Reply With Quote
Old 12-23-07, 06:52 AM   #53
ctheo
Registered User
 
Join Date: Mar 2007
Posts: 74
Default Re: memory leak under compiz w/ 100.14.19

Quote:
Originally Posted by xorbe
try xrestop -- see if anything is claiming X memory. if something is, it's a buggy X app, not the driver.
...
But if X is 300MB, and xrestop shows 150 for Firefox and 100 for KDE, then it's working fine, and have a look at the app or restart the app.
Code:
xrestop - Display: localhost:0
          Monitoring 24 clients. XErrors: 417
          Pixmaps:   37011K total, Other:     156K total, All:   37168K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier
3000000   170  157    1  531  235    23666K     14K  23680K  6431 Mozilla Firefox
1400000    81  118    1  177  201     3421K     10K   3431K  5387 KDE Desktop
1c00000    23    2    1   12 2045     2643K     49K   2692K   ?   compiz
1600000   129   96    0  324  291     2349K     12K   2362K  5389 kicker
0e00000    40   12    1  518   88     2318K      4K   2322K  6379 kde-window-decorator
2600000   492  128    1  750  474     1804K     26K   1831K  6192 amarokapp
2800000   147   99    1  106   92      473K      8K    482K  5418 guidance-power-manager.py
2400000    10    9    0  183   18      124K    888B    125K  5427 knetworkmanager
1e00000    48  106    1  122   91       55K      6K     62K  6391 kristjan@kohvi: ~ - Shell - Konsool
0800000   299    9    0   78   55       41K      8K     49K  5411 kmix
1a00000    34   15    1   53   16       28K      2K     31K  5393 kio_uiserver
1200000   100    4    1   71   34       26K      4K     30K  6382 konqueror
0c00000    20    5    1   34  138       24K      4K     28K  5377 kded
2000000    10    6    0   54   44       26K      1K     28K  5422 klipper
2c00000     2    2    0   33    6        6K    240B      6K  5435 knotify
0200000     0    1    1    0    0        0B      1K      1K   ?   <unknown>
1000000     2    1    0    0    6        0B    216B    216B  5384 ksmserver
0600000     1    0    0    1    3        0B     96B     96B   ?   <unknown>
2a00000     1    1    0    0    1        0B     72B     72B   ?   xrestop
2200000     0    1    0    0    2        0B     72B     72B   ?   <unknown>
1800000     1    1    0    0    1        0B     72B     72B   ?   <unknown>
0a00000     1    1    0    0    1        0B     72B     72B   ?   <unknown>
2e00000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
0400000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
ctheo is offline   Reply With Quote
Old 12-23-07, 10:17 AM   #54
manwe_
Registered User
 
Join Date: Nov 2007
Posts: 11
Default Re: memory leak under compiz w/ 100.14.19

Quote:
Originally Posted by xorbe
try xrestop -- see if anything is claiming X memory. if something is, it's a buggy X app, not the driver.
Code:
$ cat /proc/`pidof compiz`/status | grep Vm
VmPeak:   624560 kB
VmSize:   214444 kB
VmLck:    399568 kB
VmHWM:    439512 kB
VmRSS:    438880 kB
VmData:    63372 kB
VmStk:       216 kB
VmExe:       212 kB
VmLib:     20820 kB
VmPTE:      1268 kB

$ xrestop

xrestop - Display: localhost:0
          Monitoring 20 clients. XErrors: 0
          Pixmaps:   24919K total, Other:      84K total, All:   25003K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier
0c00000    27    2    1   14  548     6847K     14K   6861K   ?   compiz

$ /usr/bin/top -n 1 | egrep '(compiz|COMMAND)'
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 6849 manwe     20   0  609m 428m 398m S  2.0 42.8   0:17.49 compiz
manwe_ is offline   Reply With Quote
Old 12-23-07, 10:30 AM   #55
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Re: memory leak under compiz w/ 100.14.19

I notice that xrestop lists compiz as an X application... is compiz actually the X server? I don't have compiz running any longer so I can't check.
xorbe is offline   Reply With Quote
Old 12-23-07, 11:05 AM   #56
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: memory leak under compiz w/ 100.14.19

How can I exatcly identify the leak? Watch compiz process in xrestop? Currently top app in xrestop is opera with some tabs open, uses 14102K.

Code:
kriko@linux:~> free
              total             used         free           shared    buffers     cached
Mem:      1555372    1515036    40336       0           10904      966436
-/+:                             537696     1017676
Swap:      1052216   152           1052064
Xorg:
VmSize: 147 776 VmRss: 92 560

Applet on desktop is showing unusual high usage, ~ 520MB, while using those apps with 2d desktop normally shows 280 - 360 MB mem usage.
kriko is offline   Reply With Quote

Old 12-23-07, 04:51 PM   #57
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Re: memory leak under compiz w/ 100.14.19

Quote:
Originally Posted by kriko
How can I exatcly identify the leak? Watch compiz process in xrestop? Currently top app in xrestop is opera with some tabs open, uses 14102K.

Code:
kriko@linux:~> free
              total             used         free           shared    buffers     cached
Mem:      1555372    1515036    40336       0           10904      966436
-/+:                             537696     1017676
Swap:      1052216   152           1052064
Xorg:
VmSize: 147 776 VmRss: 92 560

Applet on desktop is showing unusual high usage, ~ 520MB, while using those apps with 2d desktop normally shows 280 - 360 MB mem usage.
That's 1.5GB of ram with 1GB of it as cache... so that's 500MB in real use. And very little swap used. Are you sure you're suffering a mem leak?
Remember a lot of those kde/gnome apps have huge shared regions, so each one is not actually using that much more memory.

If anything, sounds like a bad applet or kde/gnome lib not freeing memory for the app in your case possibly.

Your x.org is reasonable too. Mine was climbing up to 1.2GB+ until I upgraded to my distros devel RPMs and the latest nVidia driver... I don't know which one fixed it for me.
xorbe is offline   Reply With Quote
Old 12-24-07, 02:18 PM   #58
karolbe
Registered User
 
Join Date: Dec 2007
Posts: 18
Default Re: memory leak under compiz w/ 100.14.19

Quote:
Originally Posted by manwe_
@karolbe: showing new window takes few MBs of memory if video card is out of RAM, this is how it should work. Problem is that memory is not freed when window is minimized or closed (restoring and hiding window few times should show increasing memory consumption). For me this happens only if windows are hidden to system tray, how is it with your system?
Can't check now, but generally this is what I meant

Anyway, I have noticed that when you enable indirect rendering (you can do this using for example Compiz Fusion Icon) then memory leak is gone and I haven't noticed any performance loss (I have Dell Inspiron 6400 with nVidia 7300).

This configuration works correctly (including suspend&resume and hibernate - FYI just remove vbetool and it should start working).

Karol
karolbe is offline   Reply With Quote
Old 12-24-07, 02:36 PM   #59
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: memory leak under compiz w/ 100.14.19

@karolbe: I'm using indirect rendering whole time because there is noticable performance gain under load on my machine.
However after some hours, desktop crashes.
kriko is offline   Reply With Quote
Old 12-26-07, 12:33 PM   #60
karolbe
Registered User
 
Join Date: Dec 2007
Posts: 18
Default Re: memory leak under compiz w/ 100.14.19

Quote:
Originally Posted by kriko
@karolbe: I'm using indirect rendering whole time because there is noticable performance gain under load on my machine.
However after some hours, desktop crashes.
yes...there are crashes, there is quite common freeze after random amount of time when only mouse cursor moves and all you can do is alt+prt scr+k and restart gdm...but I have read that this is happening not only with nvidia drivers, so perhaps this is a compiz bug.
karolbe is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU memory consumption, back buffer, Quadro tdsussman NVIDIA Linux 5 08-14-12 09:14 PM
Video: For HPC Energy Efficiency, Samsung 20-nm Memory Fab Makes a Difference News Archived News Items 0 06-26-12 06:00 AM
Measuring card memory usage peter_ga NVIDIA Linux 0 05-24-12 08:07 PM
new memory tech QBM (Quad band memory) sebazve Rumor Mill 9 09-24-02 09:38 PM
Best DDR Memory... pelly General Hardware 10 09-01-02 04:17 PM

All times are GMT -5. The time now is 10:53 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.