• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: VWR-25
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: lawrence linden
Votes: 4
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
1. Second Life Viewer - VWR

Process affinity problem causes severe frame rate drop on multi-core systems

Created: 12/Jan/07 11:58 AM   Updated: 08/Jul/09 06:31 AM
Component/s: Performance
Affects Version/s: 1.22, 1.23
Fix Version/s: None

File Attachments: 1. Text File process_affinity.patch (3 kB)

Environment: Win32 build, on Windows XP x64 on AMD Athlon X2 or Intel Core 2 Duo CPUs in minimal power management mode with NVidia 8800GTX, NVidia 7600GS or ATI X850XT using any of the last few driver revisions

Linden Lab Issue ID: SL-33466


 Description  « Hide
Observation from my Intel Core 2 Duo E6600 based machine with 8800GTX:
  • launch Second Life
  • connect
  • observe frame rate of about n FPS
  • using task manager force SL to run on CPU core #0
  • observe frame rate of about 2*n FPS
  • using task manager force SL to run on both CPU core #0 and #1
  • observe frame rate of about 3*n FPS
    If you repeat the above experiment without connecting to SL first then once you
    connect to SL your framerate will still be about 1/3 of what it should be.

I'm attaching a patch for an automated work-around to this problem. I'm not happy with it, but figured I'd throw it out there as a starting point for others. I don't have time to pursue a better solution at this time.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Zipherius Turas added a comment - 26/Jan/07 04:35 PM
The problem is that LLFastTimer uses RDTSC instead of platform dependent syscalls for high performance timing. RDTSC is dangerous to use because it is not guarenteed to be the same between processors, and because the number of cycles per second is a variable on modern processors due to the advent of Speedstep/etc. The workaround is to install the AMD dual core optimizer if you are running an AMD. If there isn't a patch up by the time I get the viewer compiling and my form sent in, I'll go ahead and work on this (for windows, as its not a cross platform fix).

Huns Valen added a comment - 29/Jan/07 06:46 PM
I installed the AMD Dual Core optimizer and it did NOT stop this problem from happening. I have to either run imagecfg -u SecondLife.exe or manually set the affinity to one core.

Zipherius Turas added a comment - 30/Jan/07 06:20 PM
Hmm, well I can't seem to replicate the problem on my system then with the dual core optimizer. This should still be the right problem though.

Ashrilyn Hayashida added a comment - 13/Mar/07 02:15 AM
I have a dual core Opteron 165. The main viewer's framerate will be low for me as well, unless I set the process affinity to just one core. I think I can set the affinity even before I connect, and it will still be okay.
If I set it to both cores afterwards, it does not seem to raise the framerate any more.

I have not had any framerate issues with the first look clients I've tried.

(I haven't tried the "dual core optimizer" as it is not listed on the AMD Opteron page, and I have heard some have problems with it.)


Gigs Taggart added a comment - 02/Sep/07 11:12 AM
I believe this is fixed now.

kellyhicks nightfire added a comment - 28/Dec/07 06:48 AM
What about Macs? How do us mac users with Intel Core 2 Duo's fix the problem?

Moon Metty added a comment - 10/Jan/09 02:02 PM
I thought I had found a workaround for VWR-5574 by setting affinity to one core in the login-screen.

Alas, it's VWR-25, this bug is still alive.

Frame-rate looks jerky, the statistics-window (ctrl-shift-1) shows a cloud of points around the normal frame-rate, and a very narrow band around 8 fps.
The fast timers (ctrl-shift-9) show spikes of exactly 100 ms in a random subcategory of the render-section.

=======

Second Life 1.22.6 (107493) Jan 9 2009 05:35:41 (Second Life Public Nightly)
You are at 251732.7, 246606.2, 500.6 in Neptune located at sim4319.agni.lindenlab.com (63.210.157.223:13001)
Second Life Server 1.24.10.106829

CPU: Intel Core 2 Series Processor (2401 MHz)
Memory: 2048 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7600 GS/PCI/SSE2
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3
J2C Decoder Version: KDU
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.20928 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 0/21387 (0.0%)


Tessa Craven added a comment - 27/Feb/09 07:11 PM
Having issues with this as well.
When running SL with Duo core, core1 will stay at 100% usage, while core 2 will hover around the 80% useage, then spikes to 100% useage before crash.
Running with single core, still will run for a few minutes then SL client will crash when core hits 100%.

====================

Operating System: Windows Vista™ Home Premium (6.0, Build 6001) Service Pack 1
Processor: Intel Core2 Duo CPU E6750 @ 2.66GHz (2 CPUs), ~2.7GHz
Memory: 3582MB RAM
DirectX Version: DirectX 10
Card name: NVIDIA GeForce 8800 GTS


Leia Sugarplum added a comment - 08/Jul/09 06:21 AM
I am not that great with all the technical things, but I have tried everything that I can find.
I've installed the AMD Dual Core Optimizer, I have been changing the affinity before I log in (via the task manager), I created a .bat file as instructed.
I tried to do the patch above manually through the description information but nothing seemed to happen.
I click on the patch attachment and its just a webpage, I cant really do anything with that.

Can anyone help me? Second Life shuts down automatically around every 2 minutes.
Its very frustrating, all of a sudden it gets slow, then freezes and dies.

Im on a dual core processor and have tried everything, all the pages that I have searched for the fixes, lead me to downloads, and I have done all of them.
Sometimes the download pages dont exist so im really stuck!

Thanks...


Ellla McMahon added a comment - 08/Jul/09 06:29 AM - edited
Please see these articles in Knowledge Base How can I improve performance ? and How do I check for packet loss (network lag)? Please also see this article for suggestions for Turning off WindLight rendering

Make sure you have the latest drivers for your video card.

If you're using wireless networking, you should try troubleshooting with a direct wired connection; we allow, but do not support the use of wireless network connections.

Is my firewall responsible for problems with Second Life?

This article will show you how to get detailed information about the performance of your computer and the Second Life world Statistics Bar Guide

If this is still an issue please Submit a Ticket with Support for a response tailored to your individual situation see JIRA Home page

Thank you : )