Lag Woes... Help??
- I_Died_Once
- Special Forces
- Posts: 635
- Joined: Sun Nov 28, 2004 5:27 pm
- Location: The Dark Side
- Contact:
Lag Woes... Help??
Well, I know my problem/solution off the bat is gonna be "get a better connection"
My little homebrew server has been attracting more and more people as of late, and I reckon I'm experiencing growing pains.
Server is an old Pentium 4, 1.4 ghz processor machine with 256 megs of RAM... BZFS from 2.0 is running on a computer being ran by SuSE Linux 9.2 (hollar!) Dedicated computer running nothing but bzfs via a terminal (unless it's running random screen savers, or if KDE counts for anything)
All behind my home, personal, Comcast High Speed internet modem.
I'm loving it that I'm seeing so many returning faces all the time. I like having an admin staff willing to watch for cheaters. I even like getting occasional emails from people wanting to be admin that can't follow directions posted in the server message. It's all really neat and gratifying.
But the biggest and most problematic issue I am facing is lag! Nooo! I know, "get a better connection" - but is there ANYTHING I can do to make things better?
Remember all the heat I got for having "This Space For Rent" in my server message? Well, I'm starting to wish someone would take me up on it, 'cause I'd really like to accommodate everyone. Imagine seeing "Planet MoFo has been bought to you by Rice-A-Roni, the San Francisco Treat!!!" If it'd pay for a connection...
Anyone wanna donate a T1 line?
Seriously, if anyone has any secrets locked away that might free up ANY bandwidth, or help make any optimizations... It'd rule.
My little homebrew server has been attracting more and more people as of late, and I reckon I'm experiencing growing pains.
Server is an old Pentium 4, 1.4 ghz processor machine with 256 megs of RAM... BZFS from 2.0 is running on a computer being ran by SuSE Linux 9.2 (hollar!) Dedicated computer running nothing but bzfs via a terminal (unless it's running random screen savers, or if KDE counts for anything)
All behind my home, personal, Comcast High Speed internet modem.
I'm loving it that I'm seeing so many returning faces all the time. I like having an admin staff willing to watch for cheaters. I even like getting occasional emails from people wanting to be admin that can't follow directions posted in the server message. It's all really neat and gratifying.
But the biggest and most problematic issue I am facing is lag! Nooo! I know, "get a better connection" - but is there ANYTHING I can do to make things better?
Remember all the heat I got for having "This Space For Rent" in my server message? Well, I'm starting to wish someone would take me up on it, 'cause I'd really like to accommodate everyone. Imagine seeing "Planet MoFo has been bought to you by Rice-A-Roni, the San Francisco Treat!!!" If it'd pay for a connection...
Anyone wanna donate a T1 line?
Seriously, if anyone has any secrets locked away that might free up ANY bandwidth, or help make any optimizations... It'd rule.
...This has been a recording.
- I_Died_Once
- Special Forces
- Posts: 635
- Joined: Sun Nov 28, 2004 5:27 pm
- Location: The Dark Side
- Contact:
http://www.dslreports.com/stest
is also a good site that has a bunch of tests.
Usualy on your bill it will say what your connection is rated at as well. Alot of cable modems are caped at 128k upload. That limits the number of players you can host before your upstream pipe is flooded.
is also a good site that has a bunch of tests.
Usualy on your bill it will say what your connection is rated at as well. Alot of cable modems are caped at 128k upload. That limits the number of players you can host before your upstream pipe is flooded.
JeffM
Yeah, Cable isnt the best to run servers w/ because it uses shared resources. To make sure their network stays fast and efficient they geenrally do not allow servers. However...I run both my website and my bzfalg over cable though.
You can probably go to your ISP's website to get offical info. Tests can sometiems give wierd numbers and can be a pain to run voer and over again.
Not all companies do though. I know Charter advertises 3m as 2X faster the Verison DSL Verison does not say anyware on their website that they run 1.5m/128, unless you find their AUP and other "fine print".
You can probably go to your ISP's website to get offical info. Tests can sometiems give wierd numbers and can be a pain to run voer and over again.
Not all companies do though. I know Charter advertises 3m as 2X faster the Verison DSL Verison does not say anyware on their website that they run 1.5m/128, unless you find their AUP and other "fine print".
1veedo (libcurl.so.2) I have version 3!
- I_Died_Once
- Special Forces
- Posts: 635
- Joined: Sun Nov 28, 2004 5:27 pm
- Location: The Dark Side
- Contact:
Would ya really consider mine to be high-traffic? I honestly wouldn't know, because six months ago; I never heard of BZ Flag, so I hardly know what the norm is, truth be told. I know when I've had my server up for more than thirty minutes, I'm usually right below secretplace, viper's, and the Hepcat server on the master server list. First page, usually.RPG wrote:Also, with Comcast part of their AUP (acceptable use policy) is that you are not allowed to run servers. They never caught me, but my server was never high-traffic like yours.
And leave it up to me to be violating my ISP's terms of service. (Ain't it lovely how I just break all the rules and P.O. most everyone I come in contact with, even on the internet?)
I'm not home at the moment, but I'll post the figure when I get there.
Too bad my job's got firewalls and IT people out the yin yang. Otherwise, I'd make good of this T1 I'm on right now.
Again... T1 line? Anyone?
...This has been a recording.
- stinkingpig
- Private First Class
- Posts: 5
- Joined: Tue Sep 14, 2004 4:43 am
use the force!
You've got a Linux box to work with... while there's not a lot you can do about the cable company mucking with you, you can do something about any other stuff that's going on.
Note, this can be a lot of work, but them's the breaks when you're trying to avoid spending lots of money
a) hook up the server directly to your cable modem, demoting any $50 piece of s*** from linksys/netgear/whatever.
b) enable routing and install shorewall. Configure as necessary.
c) install wondershaper. Configure as necessary.
Doing this will help you prioritize bzflag over any other traffic you have.
Fun server, by the way
Note, this can be a lot of work, but them's the breaks when you're trying to avoid spending lots of money
a) hook up the server directly to your cable modem, demoting any $50 piece of s*** from linksys/netgear/whatever.
b) enable routing and install shorewall. Configure as necessary.
c) install wondershaper. Configure as necessary.
Doing this will help you prioritize bzflag over any other traffic you have.
Fun server, by the way
I listen to Bob Seger records backwards.
You have a lot of shots with a short reload time. Bullets consume server bandwidth - and you have lots of them flying around. I can't quantify how much bandwidth each bullet consumes, but I can't imagine it's insignificant.
You also are configured for quite a few players - many more than a typical cable/dsl connection can support. Most servers with 256kbps upload start to lag badly by the time they get 9 or 10 players. Observers also take bandwidth - not as much as players, but they do use some.
And forgive me if I'm stating the obvious (there will be newbies that read this at some point in time too) but if you have more than one computer on your home network, they suck bandwidth too when they are using your internet connection. Especially if they are doing any filesharing, but even incidental use can affect you. While your BZFlag server uses mainly upstream bandwdith, large downloads require a fair amount of upstream bandwidth as well - certainly enough to affect your server bandwidth. And file sharing - forget about it. That'll kill your server faster than an Overeaters Anonymous convention at an all-you-can-eat buffet.
Besides the recommendation to use some kind of QoS (quality of service) or bandwidth shaping, I'd suggest lowering the maximum number of players (remembering that observers aren't "free"). I'd also consider limiting the bullet count.
One of the responsibilities of a server operator is to judge why their players like their server, and then to balance those factors against the resources available to them. If your players come to your server because they like lots of shots, then you might have to make more drastic cuts on the number of players. If they like the "non-restrictive" rules/code-of-conduct, or if they just like your map, then you can hack away at both players and bullets and not upset too many people.
You also are configured for quite a few players - many more than a typical cable/dsl connection can support. Most servers with 256kbps upload start to lag badly by the time they get 9 or 10 players. Observers also take bandwidth - not as much as players, but they do use some.
And forgive me if I'm stating the obvious (there will be newbies that read this at some point in time too) but if you have more than one computer on your home network, they suck bandwidth too when they are using your internet connection. Especially if they are doing any filesharing, but even incidental use can affect you. While your BZFlag server uses mainly upstream bandwdith, large downloads require a fair amount of upstream bandwidth as well - certainly enough to affect your server bandwidth. And file sharing - forget about it. That'll kill your server faster than an Overeaters Anonymous convention at an all-you-can-eat buffet.
Besides the recommendation to use some kind of QoS (quality of service) or bandwidth shaping, I'd suggest lowering the maximum number of players (remembering that observers aren't "free"). I'd also consider limiting the bullet count.
One of the responsibilities of a server operator is to judge why their players like their server, and then to balance those factors against the resources available to them. If your players come to your server because they like lots of shots, then you might have to make more drastic cuts on the number of players. If they like the "non-restrictive" rules/code-of-conduct, or if they just like your map, then you can hack away at both players and bullets and not upset too many people.
- M1A2AbramsTank
- Private First Class
- Posts: 251
- Joined: Sun Nov 28, 2004 10:39 pm
- Location: Midlothian, VA
- I_Died_Once
- Special Forces
- Posts: 635
- Joined: Sun Nov 28, 2004 5:27 pm
- Location: The Dark Side
- Contact:
M1A2AbramsTank just wishes he was in the same house, sharing my connection! Ha!
Sorry for taking so long to get back on this. I am a world class slacker.
I ran the tests, and to make it short, I got a damn good cable connection, rating right below a T1 line. OK, a little below. But definately more than an average cable ordeal. This is why I am able to host so many player (more than the reccomended) before the lag blues set in.
Before, I had the maximum number of shots set to max, 20. I have cut it down to 10, and that has helped a good bit. I do miss my 20 shots though. 10 should do though. I also have further limited the number of players allowed. That I hated doing more than anything.
Currently, I allow 2 rogues, 3 of everything else.
As far as disabling my LAN and devoting the modem to just my server computer - no can do. I have 4 home computers and they all serve specific functions, and they must all be online. Only one of these machines is booted into windows primarily, but I keep it shut down most of the time. I do more than host bz flag, yo. I have stopped running file sharing clients most of the time. And I have enable encryption on my wireless router, cause I found where a nieghbor has been surfing on my dime.
I did alter my map and took out the NE, NW, SW, and SE pyramids. More open space. Yay.
Still a work in progress
Sorry for taking so long to get back on this. I am a world class slacker.
I ran the tests, and to make it short, I got a damn good cable connection, rating right below a T1 line. OK, a little below. But definately more than an average cable ordeal. This is why I am able to host so many player (more than the reccomended) before the lag blues set in.
Before, I had the maximum number of shots set to max, 20. I have cut it down to 10, and that has helped a good bit. I do miss my 20 shots though. 10 should do though. I also have further limited the number of players allowed. That I hated doing more than anything.
Currently, I allow 2 rogues, 3 of everything else.
As far as disabling my LAN and devoting the modem to just my server computer - no can do. I have 4 home computers and they all serve specific functions, and they must all be online. Only one of these machines is booted into windows primarily, but I keep it shut down most of the time. I do more than host bz flag, yo. I have stopped running file sharing clients most of the time. And I have enable encryption on my wireless router, cause I found where a nieghbor has been surfing on my dime.
I did alter my map and took out the NE, NW, SW, and SE pyramids. More open space. Yay.
Still a work in progress
...This has been a recording.