.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2007, 03:43 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Interesting MP Server Hosting Bug/Issue

I host a number of games on a VMware virtual machine hosted on VMware server. I’m familiar with VMware platform as I manage a VMware cluster at the datacenter I work at. I’ve never had any issues with VMware until now.

Basically the VMware guest that runs the games started to act up when I upgraded the host to an AMD dual-core system. The time on both the OS and the game would go about 2x faster than normal. After lots of research I found out there is an AMD patch that addresses the issue… sure enough I installed it and the OS and other applications on the server started to work fine (though it still gains a minute a day – nothing a simple time synch program can’t fix).

I assumed the problem went away in my dom3 games as well as I didn’t notice any drastic time changes there either. However, the timekeeping issue didn’t disappear with Dom3 is just got better. Now, instead of time going 2x as fast it goes about 1.175x as fast. So hence if I set the Dom3 timer to host a turn in 24 hours, time in Dom3 will speed up and host the game in approximately 21.5 hours. Not huge, but still unacceptable.

So my question – why is Dom3 the only application/game that still messes up? How does the server track time? Do the Devs or other knowledgeable people have any suggestions on how to fix this? I assume Dom3 looks to the hardware in some way for timekeeping and ignores the OS… (wah!).

Currently with the game I am going to just increase the hosting time. This isn’t a permanent fix as it is confusing though. I have a laptop I don’t really use anymore that I’ll setup to do the hosting, but I dislike the thought of an extra physical machine with I have processing power still available to use on an existing machine (habit I suppose).

Any suggestions would be welcome… otherwise let this server as a warning to anyone planning to host games on a virtual machine as I did…
Reply With Quote
  #2  
Old February 23rd, 2007, 07:45 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Hmmm Im trying to remember who our AMD tester was.
I will forward this.

Oh yeah, stupid madatory customer support irritating question (we will stop asking if your computer is plugged in when it stops being an answer to some peoples problems)....
Is amd64 appropriate to your machine? and have you verified that the dom3 link in the path links up to the file dom3_amd64 in the install directory?

Gandalf Parker
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #3  
Old February 23rd, 2007, 08:01 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Quote:
Gandalf Parker said:
Oh yeah, stupid madatory customer support irritating question (we will stop asking if your computer is plugged in when it stops being an answer to some peoples problems)....
Is amd64 appropriate to your machine? and have you verified that the dom3 link in the path links up to the file dom3_amd64 in the install directory?

Gandalf Parker
I'm not running a 64bit OS and I don't have a a dom3_amd64 in the install folder anywhere where I can see....

The processor supports 64bit and is a dual-core, but I'm running the 32bit windows server OS on the guest.
Reply With Quote
  #4  
Old February 23rd, 2007, 08:45 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

I tested it on two (sperate, non-dual) AMD systems:
1.4 GHz Athlon Thunderbird
AMD Athlon(tm) XP 2100+, ~1.7GHz

But running Win 98SE and Win2KPro (respectively) natively, not using VMWare. No problems to report in general. But I also did not test the server timer for accuracy versus real-world time.

PvK
Reply With Quote
  #5  
Old February 23rd, 2007, 09:10 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Well you have to keep in mind that the actual hardware running the Dom3 game is virtual hardware provided by VMware. Everything is emulated... so unless it was tested on a Virtual Machine, it won't matter.
Reply With Quote
  #6  
Old February 23rd, 2007, 09:32 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Yes. I don't know of anyone but you having tested it on a virtual machine.
Reply With Quote
  #7  
Old February 23rd, 2007, 09:48 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Seems to be an issue with VMware, not the server per se. Have you tried googling for "vmware timekeeping"? The first two hits are some technical whitepaper which I didn't bother to open (bah, PDF), the third and fourth (one for Windows, one for Linux) titled "Host Power Management Causes Problems with Guest Timekeeping" has some info and links and something that seems to be a possible workaround.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #8  
Old February 23rd, 2007, 09:54 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Hmmm my install only shows these executables.
dom3_amd64
dom3_ppc
dom3_x86
and the Windows install creates a dom3.exe

On my server (Debian Linux on an x86) the install properly recognized the system and then linked the actual dom3 command to the dom3_x86 executable. If you are AMD but not 64 then Im not sure what it would choose.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #9  
Old February 23rd, 2007, 09:57 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Oh yea... I spent hours going through the white papers, etc. Most of the timekeeping issues involve the clock going slower... only a few talk about it going faster, and I tried those fixes. After lots of research I came upon the AMD dual-core windows patch - and that fixed it with the OS.

I don't know what Dom3 is looking at when it keeps time, so I'm not sure whose fault it is really. Probably VMwares or AMD... unless Dom3 keeps track of time in some non-standard way. It certianly doesn't sync up with the OS (which makes sense).
Reply With Quote
  #10  
Old February 24th, 2007, 08:48 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Interesting MP Server Hosting Bug/Issue

Just checking, so you have tried to finetune your settings manually like described in point 3 in that web page?

Quote:
Edit config.ini, adding the lines described below.

The example presented here assumes that the host computer has a maximum speed of 1700MHz. The first line is the most important one. It should be your host computer's maximum speed in KHz—that is, its speed in MHz times 1000, or its speed in GHz times 1000000.

host.cpukHz = "1700000"

host.noTSC = "TRUE"

ptsc.noTSC = "TRUE"

The second and third lines enable a mechanism that tries to keep the guest clock accurate even when the time stamp counter (TSC) is slow.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.