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

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-09-07, 03:56 PM   #13
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: Xorg 7.2 and 9746 freeze

Sorry, but I can't find a reliable way to reproduce this. Maybe the most notable increase in xorg memory usage is after starting screensaver... but the increments are very small. After some time from first increment, xorg might start rapidly eating up your memory. I have to log out to restart xorg 3rd time today. This doesn't happens with olde 9631 driver.
kriko is offline   Reply With Quote
Old 01-11-07, 12:34 AM   #14
radmanly
Registered User
 
Join Date: Jan 2007
Posts: 9
Default Re: Xorg 7.2 and 9746 freeze

I had exactly this problem with the open-source nv driver on FreeBSD: http://lists.freebsd.org/pipermail/f...ry/003485.html.

No solution yet.
radmanly is offline   Reply With Quote
Old 01-11-07, 12:52 AM   #15
radmanly
Registered User
 
Join Date: Jan 2007
Posts: 9
Default Re: Xorg 7.2 and 9746 freeze

Looking at this stack trace of a runaway xorg process (http://lists.freedesktop.org/archive...h/013498.html), it looks like the problem may be somewhere in xorg's libxaa.

Perhaps if you could submit a similar stack trace, we could see if our issues are the same.
radmanly is offline   Reply With Quote
Old 01-11-07, 12:38 PM   #16
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: Xorg 7.2 and 9746 freeze

radmanly: your link is broken (404)
I would gladly provide anything you need to squish this bug. Just tell me how.
Now after 12hrs of uptime xorg is again eating 510+MB (screen was locked, I was away). I have to logout again.
kriko is offline   Reply With Quote
Old 01-11-07, 01:00 PM   #17
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: Xorg 7.2 and 9746 freeze

If it is xorg fault, can someone expert from nvidia please help to identify this problem.

Btw, now I'm using older 9631 driver and it is the same, maybe it needed more time to show up.
You might try reproducing this by locking your screen for some hours (I'm using phosphor screensaver btw).
kriko is offline   Reply With Quote
Old 01-11-07, 01:04 PM   #18
radmanly
Registered User
 
Join Date: Jan 2007
Posts: 9
Default Re: Xorg 7.2 and 9746 freeze

Try this link: http://lists.freedesktop.org/archive...ch/013498.html

To get a stack trace, log in as root and do:

gdb /usr/X11R6/bin/Xorg <pid>

At the gdb prompt, type "bt."

That should tell you where in the driver Xorg is having problems.
radmanly is offline   Reply With Quote
Old 01-11-07, 01:08 PM   #19
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Xorg 7.2 and 9746 freeze

As I stated earlier, without a means of reproducing the problem, there's no direct means of determining what is causing the problem. Have you confirmed that the problem doesn't reproduce with the 'nv' X driver?
netllama is offline   Reply With Quote
Old 01-11-07, 01:23 PM   #20
radmanly
Registered User
 
Join Date: Jan 2007
Posts: 9
Default Re: Xorg 7.2 and 9746 freeze

I can confirm that the problem DOES reproduce with the 'nv' X driver (assuming his stack trace is the same as mine):

(gdb) bt
#0 0x0000000801d37134 in NVSync ()
from /usr/X11R6/lib/xorg/modules/drivers//nv_drv.so
#1 0x00000008035f3008 in XAAGlyphs ()
from /usr/X11R6/lib/xorg/modules//libxaa.so
#2 0x0000000000506fdf in DamageExtensionInit ()
#3 0x00000000004fd1df in RenderExtensionInit ()
#4 0x0000000000445e3d in Dispatch ()
#5 0x000000000042eae5 in main ()

Looking at NVSync in the xaa bit of the 'nv' driver (nv_xaa.c), I found this:

Quote:
void NVSync(ScrnInfoPtr pScrn)
{
NVPtr pNv = NVPTR(pScrn);

if(pNv->DMAKickoffCallback)
(*pNv->DMAKickoffCallback)(pScrn);

while(READ_GET(pNv) != pNv->dmaPut);

while(pNv->PGRAPH[0x0700/4]);
}
Two big ole' while loops that look like prime candidates for gobbling up CPU cycles.

Are there similar loops in the proprietary drivers?
radmanly is offline   Reply With Quote

Old 01-11-07, 01:33 PM   #21
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: Xorg 7.2 and 9746 freeze

radmanly, thank you for this tips. However now I alredy logged in again, but I'll catch it with gdb as soon as possible.
kriko is offline   Reply With Quote
Old 01-11-07, 01:55 PM   #22
kriko
openSuSE11
 
kriko's Avatar
 
Join Date: Aug 2005
Location: Europe, Slovenia, Koper
Posts: 515
Default Re: Xorg 7.2 and 9746 freeze

radmanly: when I enter this into console prompt (I replaced <pid> with real pid of xorg)
Quote:
gdb /usr/bin/Xorg <pid>
my whole graphic interface locks up (no cursor moving, nothing), however other things are still running. I had to reboot to fix this lockup (I couldn't kill X).
kriko is offline   Reply With Quote
Old 01-11-07, 03:04 PM   #23
radmanly
Registered User
 
Join Date: Jan 2007
Posts: 9
Default Re: Xorg 7.2 and 9746 freeze

I do it by ssh'ing from another box.
radmanly is offline   Reply With Quote
Old 01-11-07, 05:31 PM   #24
radmanly
Registered User
 
Join Date: Jan 2007
Posts: 9
Default Re: Xorg 7.2 and 9746 freeze

I've confirmed on my machine that the problem is with the first while loop. I put some calls to xf86Msg around each loop. When the driver goes nuts, it starts the first loop and never returns. It will successfully complete the loops many many times but, inevitably, it will freeze up.

I have no idea what that first loop is actually trying to do, but that's where the problem is (for me, at least).
radmanly 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


All times are GMT -5. The time now is 05:25 AM.


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