RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

50% cpu usage issue

osi_layer8

Wanderer
50% cpu usage issue

For those who are not updating with the SVNs, here is an article to fix the cpu usage issue that occures on multi core/cpu machines:

Age of Valor :: View topic - Fixing CPU hog issue in RunUO2 RC1 with dual cpu/core

Even if you are on single cpu I would recommend doing this change to avoid future headaches. Not fixed, this causes your server to support little to no players as it eats up the whole cpu (its equivalent to 100% cpu usage on single core)

The fix is very easy to do, in theory, your changing a 0 with a 1. That's it.
 

Courageous

Wanderer
osi_layer8;718318 said:
For those who are not updating with the SVNs, here is an article to fix the cpu usage issue that occures on multi core/cpu machines:

Age of Valor :: View topic - Fixing CPU hog issue in RunUO2 RC1 with dual cpu/core

Even if you are on single cpu I would recommend doing this change to avoid future headaches. Not fixed, this causes your server to support little to no players as it eats up the whole cpu (its equivalent to 100% cpu usage on single core)

The fix is very easy to do, in theory, your changing a 0 with a 1. That's it.

Found that "bug" a long time ago. Agree it's an easy and harmless fix. On my system, I believe I set the sleep interval to some fractional less than millisecond thing and it still drops CPU utilization to nil.

Like this:

Code:
                TimeSpan multiCoreSleep = new TimeSpan( 10000 );
                TimeSpan singleCoreSleep = new TimeSpan( 1000000 );

                while ( !m_Closing ) {
                    Thread.Sleep( m_MultiProcessor ? multiCoreSleep : singleCoreSleep );
Joe.
 

rsharp

Wanderer
a fix

does anyone actually have this already fixed. someone tried to help me with the directions on HOW to edit and recompile, but i just cant get it :( im sorry. im not a programer and when it comes to figuring out how to edit and compile, im just not good at it. thanks
 

rsharp

Wanderer
multi cpus

thank you very much for this file, but its still using 50%+ of bolth my cpus'
here is a system spec:
------------------
System Information
------------------
Time of this report: 11/2/2007, 16:15:50
Machine name:
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.070227-2254)
Language: English (Regional Setting: English)
System Manufacturer: Foxconn
System Model: OEM
BIOS: Phoenix - AwardBIOS v6.00PG
Processor: Intel(R) Pentium(R) D CPU 3.40GHz (2 CPUs)
Memory: 2046MB RAM
Page File: 251MB used, 3688MB available
Windows Dir: D:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
DxDiag Version: 5.03.2600.2180 32bit Unicode

---------------
Display Devices
---------------
Card name: NVIDIA GeForce 8500 GT
Manufacturer: NVIDIA
Chip type: GeForce 8500 GT
DAC type: Integrated RAMDAC
Device Key: Enum\PCI\VEN_10DE&DEV_0421&SUBSYS_C7403842&REV_A1
Display Memory: 512.0 MB
Current Mode: 1680 x 1050 (32 bit) (60Hz)
Monitor: ViewSonic VX2035wm SERIES
Monitor Max Res: 1680,1050
Driver Name: nv4_disp.dll
Driver Version: 6.14.0011.6371 (English)
DDI Version: 9 (or higher)
Driver Attributes: Final Retail
Driver Date/Size: 9/17/2007 01:07:00, 5783040 bytes
WHQL Logo'd: Yes

-------------
Sound Devices
-------------
Description: Realtek HD Audio output
Default Sound Playback: Yes
Default Voice Playback: Yes
Hardware ID: HDAUDIO\FUNC_01&VEN_10EC&DEV_0883&SUBSYS_105B0C87&REV_1000
Manufacturer ID: 1
Product ID: 100
Type: WDM
Driver Name: RtkHDAud.sys
Driver Version: 5.10.0000.5397 (English)
Driver Attributes: Final Retail
WHQL Logo'd: Yes
Date and Size: 4/10/2007 19:04:40, 4397568 bytes
Other Files:
Driver Provider: Realtek Semiconductor Corp.
HW Accel Level: Full
Cap Flags: 0xF5F
Min/Max Sample Rate: 8000, 192000
Static/Strm HW Mix Bufs: 33, 32
Static/Strm HW 3D Bufs: 33, 32
HW Memory: 0
Voice Management: No
EAX(tm) 2.0 Listen/Src: Yes, Yes
I3DL2(tm) Listen/Src: Yes, Yes
Sensaura(tm) ZoomFX(tm): No
Registry: OK
 

GhostRiderGrey

Sorceror
Does anyone have the pre-compiled RC1 exe fix linked above by Dereckson? [link is dead]. If so could they reupload it here, or perhaps send it to me?

Thanks much!!
-GhostRiderGrey


Edit: Got the RC1 source files and will try and compile the fix.
 
Top