Aller au contenu

Photo

nwn2server CPU usage on VirtualBox


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Saarun

Saarun
  • Members
  • 8 messages
Hi all,

I am in need of help with our PW server.  We moved our server from our test machine to the virtual server with Win7 x64 running on virtual box, it has 8GB ram and 2cores of 3Ghz AMD processor dedicated.

The problem is that when the nwn2server.exe starts it constantly has 30-40% cpu usage and I believe it causes side-effects, e.g.  time is not advancing right, OnHeartBeat events are not fired, etc. I've wrote simple logging function and I've noticed that e.g. DelayCommand with 300.0f delay time was executed right for one hour and then suddenly it had 20 min delay! Our module has about 300 areas and is almost completely without any NPC (NPCs are dynamically spawned) and almost no script was running. Also no PC was logged at that time.

When I tried exactly same module with same settings on my desktop computer it was running smoothly and nwn2server has very low CPU usage (around 0)... and everything worked fine.

So my question is - do you have any idea where the problem could be? I've played with all settings that came on my mind (either setting of VBox image and settings of win7 on the image) with no success.

Any suggestion would be very appreciated!  Thank you all!

Modifié par Saarun, 16 janvier 2012 - 08:52 .


#2
SkywingvL

SkywingvL
  • Members
  • 351 messages
Don't use VirtualBox with NWN2 (or much else if you can avoid it). There are timer rollover issues with it that can cause the OS to think that time has gone backwards, which, when passed on to applications (depending on how they keep track of time, NWN2 happens to be one of those which is affected) will cause said applications to break.

Both VMware and Hyper-V are known to work fine. VirtualBox is known to be broken about this.

#3
Saarun

Saarun
  • Members
  • 8 messages
Thank you Skywing for your help! We are limited to use VM. We'll give a try to VMware.

Modifié par Saarun, 16 janvier 2012 - 09:06 .