View Single Post
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