Jump to content

Profiling your server


Recommended Posts

  • Developer

Since dedicated servers can use some optimization love the profiler had been enabled in the previous build, but right after release I realized it could use slight tweaks - so they went in todays patch.

 

If you're interested in getting performance up, like I am, you could help out by grabbing a profile and uploading it here - please also mention some details about hardware, OS and the situation the game was in (number of users, night, winter - especially if you feel the performance is erratic it'll help to get as much context as I can).

 

To run the profiler, open the console, and execute the command 'TheSim:Profile()' as administrator as a remote command (tap ctrl when you type the command in the in-game console).

 

This should create a file 'profile.json' in your server's document directory containing 3 seconds worth of profile data (it's kinda large, probably close to the 2mb mark, and, as @Kzisor pointed out, please zip it up as the forum won't accept json attachments).

 

Your server will lag during these 3 seconds (not freeze).

 

Looking forward to your profiles!

 

Kaj

Link to comment
Share on other sites

Hi Bizziboi,

 

thx again for your help :-)

 

so i have try your command TheSim:Profile() and it's works

 

but just one problem, i can't find the file on my server dedicated

 

so i have take screenshot

 

 

as you can see I have make the command and it's works, I had to run it twice because I can not find the file profile.json

yet according to the screenshot,the file seems to be created correctly

 

but when I look on my dedicated server linux (Debian 7.8), I find nothing

 

:~$ locate profile.json

:~$

 

:~/.klei/DoNotStarveTogether$ pwd
/*****/*****/.klei/DoNotStarveTogether
:~/.klei/DoNotStarveTogether$ ls

:~/.klei/DoNotStarveTogether$

 

someone else have try to see if this file is created?

 

thx for your help

Link to comment
Share on other sites

@bizziboi no problem :-)

 

so yes it's works now

 

i have take the file when we have big lag and of course status of host is "bad host"

 

when i say big lag, the player becomes uncontrollable and monsters are slow for a few seconds and this problem come back often

 

captured the 213 days, daytime, wilderness,early summer, 8 players on the server

 

mod on my server:

 

Renewable World

Nature's Still Wild

Respawnable Gears

Simple Protection

Global Player Icons

 

http://kfkserver.com/download/dont_starve/profile.json.rar

 

(I have just compress the file with winrar)

 

my server dedicated is on linux:

 

Debian 7.8, 24Gb, Kernel 3.2.0-4-amd64, 100Mbps,2 To HDD

 

if you ever need further testing on different configurations or

if I forget to mention some details,tell me do not hesitate

 

i hope that's help you and your team

Link to comment
Share on other sites

Hello there everyone!

 

I gathered some profiles from our public test server and zipped them up for you.

In the archive, please find the following files:

profile_1.json

profile_2_bad.json

profile_3_bad.json

profile_4_bad.json

profile_5_ok.json

profile_6_ok.json

 

I don't remember if profile 1 is Good Host or OK Host.

Profiles 2 - 4 are when it was listed as Bad Host.

Profiles 5 & 6 are when it went from Bad Host to OK Host.

 

We have this running on a pretty beefy machine.

The CPU Affinity for DST is CPU 1 - CPU 5 (5 total CPUs, DST is NOT on CPU 0)

The physical amount of RAM on this machine is 72gb, DST has plenty of room to move around.

We have 500mbps guaranteed throughput, burstable to 1gbps... network utilization was not even close to limits.

The OS is Windows Server 2012 R2.

 

I'll continue to monitor the server and generate profiles when I am able to.

 

I have noticed that when I can handle about 10 players with pings that are lower than 100ms as an "OK Host" however if I have any player with a ping of over 150ms it can only handle about 7 players and becomes a "Bad Host". The players on the server were pretty awesome in helping me out and we tried a few different things... sticking together, spreading out, etc... and eveyrthing was about equal. When the high ping player dropped the rubber-banding stopped.

 

Just some obervations, the high ping performance hit is something I have personally noticed on many occasions. Please continue to let us know if there is anything more we can do to help.

 

DST_Profiler_Logs.zip

Link to comment
Share on other sites

Hi @ToNiO55,@DreadPirate,  

 

Thanks :-) It was really insightful - sadly not yet in a productive way, it exposed a flaw in the profiler which I am fixing now which my testing didn't expose but which renders the profiles fairly useless - I can only apologize for that, hoping to push an update ASAP.

 

Kaj

 

Kaj,

 

No apologies needed! This is early access... it's for squashing bugs... sometimes for squashing bugs in tools needed to squash more bugs :)

 

I'm happy to run the profiler again whenever you are ready.

Link to comment
Share on other sites

  • Developer
I have noticed that when I can handle about 10 players with pings that are lower than 100ms as an "OK Host" however if I have any player with a ping of over 150ms it can only handle about 7 players and becomes a "Bad Host"
 

 

This is something we are definitely going to investigate.

 

I might also contact you for more specifics regarding the underlying hardware depending on the profiles after the update, I am seeing strange context switching side-effects but it might be related to the way the profiler acted. 

Link to comment
Share on other sites

Hi,
 
so I don't know if this'll help you
 
but i have take just little video of lag:
 

on this video we were 8 players on the server, I had a ping of 25 all along the video,

I just see the lag to start from the beginning of the day,we were within 200 days with the summer

 

on this video you can see that its happening in the twilight,
always with 8 players, 200 days and always summer, even monsters have lags

 

I know both videos will not be a great utility
just it was to show the problem more closely
on both videos,all time the status of the server is "bad host"

Link to comment
Share on other sites

  • Developer

Hey @ToNiO55

 

Thanks, and yes, that's definitely not what we want.

 

When the profiler is updated, can you grab a profile of when that happens? It should come with the next update and I hope it works better this time (as said, I can't reproduce the issue that the profile has on some other servers so I can only hope I fixed it....).

I would also be interested in knowing if there happens to be a player with high ping on the server at that moment (am working on storing that -and more- info in the profile but alas, I don't have that yet)

 

Kaj

Link to comment
Share on other sites

  • Developer

Hi @ToNiO55,@Atena, @DreadPirate,  

 

The new update has been released, and I hope to get more info from the profiles (fingers crossed).

 

If you feel generous, please capture a profile and upload it - preferably when the server is under load. No need to send me multiple, as I don't know yet if the profiler gives me the info I need now. My test-setup behaves decidedly different from other servers it seems.

 

Please also mention how many players were on, I'll work on storing such details in the actual profile, but at this moment I still rely on your intel.

 

Thanks!

Link to comment
Share on other sites

Hi, bizziboi

 

  I already update the dedicated server to 126778, i will collect the profile file to you continuously.

 

  A large number players on-line in our server at night(GMT+8 20:00-24:00), we will collect the profile file at this time to you.

 

 But our server is too lag exceed 9 players online, after 1500 game days. We  can only provide you with 9 players on-line of profile-file.

 

  Jyz6X0z.png

 

OfBIkyH.png 

 

 

M8MUMo4.png

 

6 players online, goodhost to okhost.

 

2JWClBX.png

 

OVNXWxv.png

profile.zip

profile 20150213 0440.zip

Link to comment
Share on other sites

Hi bizziboi,

 

i have update my server

 

so i have take a new profile with players who have just joined the server with high ping

as before, 8 players on the server, summer, 507 days,wilderness, daytime,

see bad host on status, look like the same lag in the video I show before

 

150213120306939259.png

 

http://kfkserver.com/download/dont_starve/profile.json_2.rar

 

I hope it'll help you :-)

Link to comment
Share on other sites

I've found something interesting about it that may be of use to you. It seems that the age of the currently loaded world has an effect on the host strength for me. Today right after resetting the world we had a peak of about 30 players and a consistent "Good Host." About a few hours later the host became "OK Host." Eventually the server could barely sustain 20 players. I don't have a profile log but I do have a video which shows having a good host right after resetting the server, and I'm wondering if this is the case for everyone:

 

 

If you need more information I'll try to provide it.

Link to comment
Share on other sites

Team,

 

Here is another set of logs from today.

Sorry for the delay in getting back to you, it's been a crazy week at work.

 

In the zip file there are multiple profiles.

The profiles are numbered in order they were taken 01 was before 02, etc...

The profiles also have a status of good, ok or bad depending on what the server was reporting as in game.

 

I hope some of this helps, let me know if you have any questions.

 

Thanks again for taking a look at these.

DST_Profiler_Logs.zip

Link to comment
Share on other sites

Ok, so more info to report... I hope this helps.

 

Tonight we had a player with a ping of over 700.

He was on a satellite connection and didn't have much control over it.

 

He helped me try a few things... we profiled the server a few times as he was playing. I restarted the server, dropped it to 20 ticks and profiled it again...anytime he was playing the host was a Bad Host, and there were massive issues with rubberbanding and overall desync.

 

After a bit, we had him stop moving... once he did that we the host upgraded to OK, and the rest of us experienced no lag issues at all... until he started moving again.

 

Attached is a zip archive with some profiles, the 700 ping bad is when he was actively playing, the 700 ping ok was when he was stopped.

 

I hope this help, I'll keep trying to give you guys profiler logs when I see something odd.

DST_Profiler_Logs_700_Ping.zip

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...