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

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-26-06, 10:07 AM   #1
beczka2005
Registered User
 
Join Date: Jun 2005
Posts: 13
Default Nvidia slower after resuming from suspend to RAM

I have noticed that my system slows down a bit once I resume from suspend. I have traced the problem back to nvidia. If I kill xdm, unload then reload nvidia, and then restart xdm my system is back up to full speed.

I can quantify this slowdown with glxgears. Here are my glxgears scores:

Fresh boot: 2738
Suspend to RAM and resume: 2648
Suspend to RAM and resume, Kill X, unload nvidia, load nvidia, start X: 2738

Does anyone have any idea where this slowdown comes from, and how to get rid of it?!

I have a GeForce4 4200 Go
beczka2005 is offline   Reply With Quote
Old 02-26-06, 10:30 AM   #2
krionius
Asus 8800GTS 320M
 
krionius's Avatar
 
Join Date: Jul 2003
Location: Budapest, HU
Posts: 249
Default Re: Nvidia slower after resuming from suspend to RAM

Maybe resuming leaves the card at a lower frequency? Wild guessing
__________________
SK - Java Classic RPG http://zaza.uw.hu/mrp/index.html http://linuxrpgs.blogspot.com
Asus GF8800GTS 320M DDR3 PCI-E - nvidia 169.09
Abit KN9 SLI (nforce570),AMD64 X2 3800+@4800+,2x1GB 800MHz DDR2,160G SATA2 WesternDigital,430W Chieftec PSU
gentoo linux (since 2003) 2006.1 amd64 kernel 2.6.22-suspend2 X.Org 7.3 | gnome 2.20.0, kde 3.5.5, beryl 0.2.1

Samsung SyncMaster 913N@1240, Tatung "32 @1080i, Pinnacle PCTV Rave, Pioneer DVR110D
Abit AN-M2HD NVidia 7050PV Noiseless HTPC, Ubuntu Linux 7.10 64bit kernel 2.6.23.8, nvidia 169.04, FSP Zen 300W,
Thermaltake Sonic Tower, AMD64 X2 4200+, 2GB DDR2, 400G SATA2 WD, Asus TVTuner (saa7134) Silent Linux HTPC

Asus TravelMate 4100 NVidia 6200 Go, Ubuntu Linux 8 32bit kernel 2.6.24, nvidia 169.12, Intel32 1.6G, 1.5GB DDR2,
krionius is offline   Reply With Quote
Old 02-26-06, 01:23 PM   #3
beczka2005
Registered User
 
Join Date: Jun 2005
Posts: 13
Default Re: Nvidia slower after resuming from suspend to RAM

Hmm.. interesting. How do I check and controll what frequency my nvidia card is running at?

Also, I can see you have a similar setup as me (I'm also on gentoo). Would you post your hibernate.conf please?

Thanks.
beczka2005 is offline   Reply With Quote
Old 02-26-06, 02:33 PM   #4
krionius
Asus 8800GTS 320M
 
krionius's Avatar
 
Join Date: Jul 2003
Location: Budapest, HU
Posts: 249
Default Re: Nvidia slower after resuming from suspend to RAM

Quote:
Originally Posted by beczka2005
Hmm.. interesting. How do I check and controll what frequency my nvidia card is running at?

Also, I can see you have a similar setup as me (I'm also on gentoo). Would you post your hibernate.conf please?

Thanks.
regarding freq, you may want to try 'nvclock' (nvclock has ebuild). Though I don't know if it gives you real values or reference values.

Funny I dont have a working suspend right now though I patched it with latest suspend2 (coz I am using nvidia driver's own AGPGART and it freezes on resume. Kernel's AGPGART's working but is slower in 3D appz..) . I dont have anything modified in my hibernate.conf from stock hibernate.conf, but I attached it.
Attached Files
File Type: zip hib.zip (3.3 KB, 145 views)
__________________
SK - Java Classic RPG http://zaza.uw.hu/mrp/index.html http://linuxrpgs.blogspot.com
Asus GF8800GTS 320M DDR3 PCI-E - nvidia 169.09
Abit KN9 SLI (nforce570),AMD64 X2 3800+@4800+,2x1GB 800MHz DDR2,160G SATA2 WesternDigital,430W Chieftec PSU
gentoo linux (since 2003) 2006.1 amd64 kernel 2.6.22-suspend2 X.Org 7.3 | gnome 2.20.0, kde 3.5.5, beryl 0.2.1

Samsung SyncMaster 913N@1240, Tatung "32 @1080i, Pinnacle PCTV Rave, Pioneer DVR110D
Abit AN-M2HD NVidia 7050PV Noiseless HTPC, Ubuntu Linux 7.10 64bit kernel 2.6.23.8, nvidia 169.04, FSP Zen 300W,
Thermaltake Sonic Tower, AMD64 X2 4200+, 2GB DDR2, 400G SATA2 WD, Asus TVTuner (saa7134) Silent Linux HTPC

Asus TravelMate 4100 NVidia 6200 Go, Ubuntu Linux 8 32bit kernel 2.6.24, nvidia 169.12, Intel32 1.6G, 1.5GB DDR2,
krionius is offline   Reply With Quote
Old 02-26-06, 06:49 PM   #5
beczka2005
Registered User
 
Join Date: Jun 2005
Posts: 13
Default Re: Nvidia slower after resuming from suspend to RAM

Hi,

I tried nvclock and it gives the same values pre and post suspend/resume. Any other ideas?

BTW, I'm using the nvidia AGPART and it resumes fine for me. Perhaps your hibernate settings can be tweaked to allow you to suspend and resume using the nvidia AGPART. I attached my hibernate file if you'd like to take a look at it and see if it works for you. I use acpi to suspend to ram.
Attached Files
File Type: txt hibernate.conf.txt (4.8 KB, 161 views)
beczka2005 is offline   Reply With Quote
Old 02-27-06, 03:13 AM   #6
krionius
Asus 8800GTS 320M
 
krionius's Avatar
 
Join Date: Jul 2003
Location: Budapest, HU
Posts: 249
Default Re: Nvidia slower after resuming from suspend to RAM

Quote:
Originally Posted by beczka2005
Hi,

I tried nvclock and it gives the same values pre and post suspend/resume. Any other ideas?

BTW, I'm using the nvidia AGPART and it resumes fine for me. Perhaps your hibernate settings can be tweaked to allow you to suspend and resume using the nvidia AGPART. I attached my hibernate file if you'd like to take a look at it and see if it works for you. I use acpi to suspend to ram.
You should try to benchmark it with another 3D app, coz glxgears is not a big tool for that. Especially that you have such a small difference between the two values. Have you tried some other benchmark? It would be worthy.
__________________
SK - Java Classic RPG http://zaza.uw.hu/mrp/index.html http://linuxrpgs.blogspot.com
Asus GF8800GTS 320M DDR3 PCI-E - nvidia 169.09
Abit KN9 SLI (nforce570),AMD64 X2 3800+@4800+,2x1GB 800MHz DDR2,160G SATA2 WesternDigital,430W Chieftec PSU
gentoo linux (since 2003) 2006.1 amd64 kernel 2.6.22-suspend2 X.Org 7.3 | gnome 2.20.0, kde 3.5.5, beryl 0.2.1

Samsung SyncMaster 913N@1240, Tatung "32 @1080i, Pinnacle PCTV Rave, Pioneer DVR110D
Abit AN-M2HD NVidia 7050PV Noiseless HTPC, Ubuntu Linux 7.10 64bit kernel 2.6.23.8, nvidia 169.04, FSP Zen 300W,
Thermaltake Sonic Tower, AMD64 X2 4200+, 2GB DDR2, 400G SATA2 WD, Asus TVTuner (saa7134) Silent Linux HTPC

Asus TravelMate 4100 NVidia 6200 Go, Ubuntu Linux 8 32bit kernel 2.6.24, nvidia 169.12, Intel32 1.6G, 1.5GB DDR2,
krionius is offline   Reply With Quote
Old 02-27-06, 07:27 AM   #7
beczka2005
Registered User
 
Join Date: Jun 2005
Posts: 13
Default Re: Nvidia slower after resuming from suspend to RAM

I don't really care about the absolute values of glxgears scores. Just the fact that there is a difference has me worried.

-Raf
beczka2005 is offline   Reply With Quote
Old 05-29-07, 03:09 AM   #8
emisca
Registered User
 
Join Date: Feb 2006
Posts: 18
Default Re: Nvidia slower after resuming from suspend to RAM

I have a Geforce 7300gt pci-e. I've also noticed this slowdown after both suspend to disk and suspend to ram. Normally glxgears gives me ~ 5900 fps, after suspend, ~ 4000 fps, and in addition, videos are slow, scrolling windows etc..
I've also found a solution, using drivers versions 8776, 9631 and 9755:
- disable completely NvAGP, in xorg.conf, it's not needed, because I have a PCI-E card..
- configure your suspend script to switch to console before suspend and after resume. If you don't do this, the framerate will be ~ 5600 fps... you can also try switching to console manually, to see the difference.

I've only a problem now, after suspend to ram, using driver 9631 and 9755, console screens remain disabled. Notice that I have two monitors used with twinview. Xorg after suspend works, only the virtual consoles don't work.
This problem doesn't occur with driver version 8776.

These tests are done using Debian Etch, Ubuntu Edgy and later (after an upgrade) Ubuntu Feisty.

Bye
emisca is offline   Reply With Quote

Old 07-17-07, 03:21 PM   #9
SylvainP
Registered User
 
Join Date: Jul 2007
Posts: 4
Default Re: Nvidia slower after resuming from suspend to RAM

I'm facing the same issue. After resuming from hibernate, drawing is slower for some operations, like scrolling a buffer in Eclipse. As a whole, the desktop feels slower, but I don't have exact numbers to tell. That seems to affect 2d drawing operations, as glxgears does not show lower fps.

My environment is:
GeForce 8600 GT 512Mb
Ubuntu Feisty (tried with upstream kernel, and 2.6.22.1)
Nvidia driver 100.14.11

I tried booting with pci=nommconf and idle=poll, or setting option "NVAgp" "0" but that doesn't change.

Do you have ideas what could be wrongly restored after hibernate that could impact 2d drawing operations?

Thanks,
SylvainP is offline   Reply With Quote
Old 07-17-07, 03:24 PM   #10
SylvainP
Registered User
 
Join Date: Jul 2007
Posts: 4
Default Re: Nvidia slower after resuming from suspend to RAM

Sorry, I forgot to say:

The thread title does not match exactly my problem (maybe I should have created a new one). I'm having issues when suspending to disk, not suspending to ram.
SylvainP is offline   Reply With Quote
Old 07-18-07, 02:49 AM   #11
emisca
Registered User
 
Join Date: Feb 2006
Posts: 18
Default Re: Nvidia slower after resuming from suspend to RAM

The problem is present both in suspend to ram and to disk....
emisca is offline   Reply With Quote
Old 07-18-07, 08:53 PM   #12
SylvainP
Registered User
 
Join Date: Jul 2007
Posts: 4
Default Re: Nvidia slower after resuming from suspend to RAM

For the eclipse scrolling issue, I could see that if I set the Gnome Font Preference to "Monochrome" or "Best shapes", it removes the lag when scrolling.

So apparently, the font preference "Subpixel smoothing (LCD)" is slowing things after disk suspend.

I tried to get some more information using oprofile (with "Subpixel smoothing (LCD)" option active):

Before suspend to disk, scrolling the eclipse buffer (no lag):

Code:
CPU: Core 2, speed 2666.73 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
samples  %        image name               app name                 symbol name
47017    20.3021  /boot/vmlinux-debug-2.6.22-8-generic /boot/vmlinux-debug-2.6.22-8-generic common_interrupt
46676    20.1548  /lib/tls/i686/cmov/librt-2.6.so /lib/tls/i686/cmov/librt-2.6.so clock_gettime
17357     7.4948  /usr/lib/xorg/modules/drivers/nvidia_drv.so /usr/lib/xorg/modules/drivers/nvidia_drv.so (no symbols)
13212     5.7050  /usr/lib/xorg/modules/libnvidia-wfb.so.100.14.11 /usr/lib/xorg/modules/libnvidia-wfb.so.100.14.11 (no symbols)
12891     5.5664  /usr/bin/Xorg            /usr/bin/Xorg            (no symbols)
12172     5.2559  /boot/vmlinux-debug-2.6.22-8-generic /boot/vmlinux-debug-2.6.22-8-generic sysfs_override_clocksource
8238      3.5572  /boot/vmlinux-debug-2.6.22-8-generic /boot/vmlinux-debug-2.6.22-8-generic cpu_init
4584      1.9794  /usr/lib/libcairo.so.2.11.1 /usr/lib/libcairo.so.2.11.1 (no symbols)
4526      1.9543  anon (tgid:11989 range:0xb5317000-0xb5697000) /home/sypasche/moz/eclipse/eclipse (no symbols)
After suspend, scrolling buffer which shows lags:
Code:
CPU: Core 2, speed 2666.73 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
samples  %        app name                 symbol name
172530   34.9985  /boot/vmlinux-debug-2.6.22-8-generic common_interrupt
151547   30.7420  /lib/tls/i686/cmov/librt-2.6.so clock_gettime
25654     5.2040  /boot/vmlinux-debug-2.6.22-8-generic sysfs_override_clocksource
18538     3.7605  /boot/vmlinux-debug-2.6.22-8-generic create_new_namespaces
15795     3.2041  /boot/vmlinux-debug-2.6.22-8-generic call_function_interrupt
12278     2.4906  /usr/lib/xorg/modules/drivers/nvidia_drv.so (no symbols)
11389     2.3103  /usr/bin/Xorg            (no symbols)
11300     2.2923  /boot/vmlinux-debug-2.6.22-8-generic cpu_init
8040      1.6310  /boot/vmlinux-debug-2.6.22-8-generic __random32
We can see more time is spent in kernel and librt in the second dump. Apparently, clock_gettime is called a lot. I'm not too sure what conclusions can be drawn from these dumps.
SylvainP 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
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Rumor regarding lack of 680 availability ViN86 Rumor Mill 6 05-09-12 04:48 PM
rh7.3 and nvidia vcrispo NVIDIA Linux 11 07-31-02 08:57 PM

All times are GMT -5. The time now is 12:28 AM.


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