1 (edited by Kademlia 2008-05-10 16:38:16)

Topic: Short lags on Server

Hey, i noticed short lags (1-3sec) on my root servers. They only occure like 1 time in 5 hours. Sometimes serveral at once (3 in 30min) and then again none.

By accident i had Teewars double opened and were connected to two different Teeworlds Servers on one root. I noticed that only one of those servers lagged.

So im not sure about HOW this can happen? If i aint got enough CPU power both would lag (same nice setting). If an other process caused this again both would lag because i run TW at low priority (nice -n 2).

Any idea how this could be caused execpt its a bug in teewars_srv?

2

Re: Short lags on Server

Are you running non-standard maps? It could be caused by people downloading the map from the server before joining. Just a thought...

teeeeeeeeeeeeeeee

3

Re: Short lags on Server

Nope all standard. The root is hosting TW only so there is always at least 5 MB/s free...

4

Re: Short lags on Server

I got the same things, ping goes up almost exactly to 1000ms to all players, then stays there a while, then goes normal again. This affects me also, altough I play on local lan back to back to my server.

5 (edited by GSGDani 2008-05-10 23:14:35)

Re: Short lags on Server

i dont think that this is a bug.. i have 3 public windows server, 1 windows test server (public) 1 ubuntu test server (not public) .. i havnt that problem .. i run normal, modded servers and all maps are non standart.. but.. i have changed something in source code..
i have changed:
    static const int MAX_EVENTS = 128;
    static const int MAX_DATASIZE = 128*64;
in "gs_common.h" file to:
    static const int MAX_EVENTS = 256;
    static const int MAX_DATASIZE = 256*64;
ping is much better and gameplay also..:):):):)

i have a compiled server.exe .. with this changed things and homing mod .. is also include.. and an extra feture.. the teamhook = instadeath from catpaw thx for this nice thing ...

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

6

Re: Short lags on Server

nice things about that changes... it will get a better ping ??? I have pings, i got dsl and my server gets like 100ms, although i ping it and get 40 or 60

7

Re: Short lags on Server

Hmm Dani i think these lags only occure when there are about 5ppl or more. And they occure not very often as i said.

I already blamed "vnstat" for this and postet on his forum until i got a lag 2 days later and hat to revoke my blame :-/

I will try your changes. In fact i got 12 servers on one root but that cant be the problem as only one of two laged i were connected to.

8

Re: Short lags on Server

@Kademlia 12 servers.. on one pc?? nice^^ can you compile your server yourself? or should i upload my server file

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

9

Re: Short lags on Server

i compiled already. 12 is no problem on a root.

but that was not the clue. i think the system lags TW. I changed two of em to niceness -5 by renice trough root and they seem to work fine - for now got to watch some time.

10

Re: Short lags on Server

@ Dani

ill try your fix on the night... i want to have better ping!

11

Re: Short lags on Server

netomx wrote:

@ Dani

ill try your fix on the night... i want to have better ping!

Should not realy change anyhing in my opinion.

12

Re: Short lags on Server

Kademlia wrote:
netomx wrote:

@ Dani

ill try your fix on the night... i want to have better ping!

Should not realy change anyhing in my opinion.

whoops, my bad... i have changed it

but i havent tried it =P

13 (edited by GSGDani 2008-05-15 18:46:52)

Re: Short lags on Server

@netomx my 1st Real Flyrace Server is running with :

static const int MAX_EVENTS = 4000000;
static const int MAX_DATASIZE = 4000000*64;

best ever for lan playing!!^^
or internet playing xDD

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

14

Re: Short lags on Server

and how do you know it is better than the original one?