Jump to content

Home

Max Rate?


sshawk

Recommended Posts

Hmm, I must be missing something.

Slots X sv_maxRate = Bandwidth

 

so 12 X 8000 = 96Kb/sec (960 kbps)

A couple of things stick out to me. First off, that 960 kbps = 96kB/sec (yes, I noticed you put Kb, but Kb/sec = kbps, not kbps/10). Second, using that same forumla, my server (16 slots/maxrate 7000) would need 112kB/sec. Well, I have some very nice statistics that show my server, when full, only hits 75 kB/sec peak and generally hovers around 70 kB/sec.

 

Now, although I wouldn't say that my simple calculations would be accurate due to the fact that we all assume maxrate is a linear function, here's how my own server use would break down:

 

75 kB/sec = 600 kbps / 16 players / 7 maxrate(k) = 5.357 kbps per player per maxrate

 

So, let's assume sshawk's cable modem is capped at 128kbps. With 4 players that's 4 * 5.357 = 21.428 kbps per maxrate. 128kbps / 21.428 = 5.973 maxrate(k) or 5973 maxrate. I'd probably drop it down to 5000 to leave some cushion.

 

Now, I don't pretend to know that the maxrate scales in a linear fashion and if that is not the case, my calculations would be invalid. It would be interesting to have some other admins work the numbers from their servers to see how this pans out.

 

Bottom line for sshawk: I'd recommend setting your maxrate to 5000.

Link to comment
Share on other sites

This something I have failed to get my head around since running a Half-Life server two years ago!

 

Currently my JK2 server has 5 maxclients + maxrate set at 4000. I have adsl with 256kbps upstream. Could anybody (MatrixCPA hint hint) please explain exactly how I should work out what my settings should be. It looks like I should be able to host more clients than I am doing, from MatrixCPA's comments.

 

I too used the above formula to work mine out originally. I found it on Gameadmins.com

Link to comment
Share on other sites

Thanks Matrix, I'll give it a go.

 

Just one thing, from what I understand, there 8 bits in a byte, so are there also 8 kilobits in a kilobyte?

If so, then should the math not be (for 8 players):

 

256/8 = 32kbps each = 4Kbytes/s = maxrate 4000?

 

Or am I just totally confused? :confused:

Link to comment
Share on other sites

Just one thing, from what I understand, there 8 bits in a byte, so are there also 8 kilobits in a kilobyte?

If so, then should the math not be (for 8 players):

 

256/8 = 32kbps each = 4Kbytes/s = maxrate 4000?

 

Or am I just totally confused?

 

 

No, you're not confused, what you said is right. I think what Matrix was saying is that you could possibly run 8-10 people with a maxrate of 5000 without (much) lag. In theory using the formula it doesn't work but practically it MIGHT.

 

I run a server on adsl with 256kbit upload, and i have max 6 players with maxrate of 5000.

Link to comment
Share on other sites

The reason I make that comment is because I don't see the maxrate translating directly into B/s. If it did, you'd take my 7000 maxrate * 16 players and get 112,000 B/s (or 109.4 kB/s) when I really never go above 75 kB/s. So, I reverse computed the ratio of maxrate to kB/s using my data. Yes, 10 players would be pushing it...but 8 should work as long as you're really getting 256kbps (32 kB/s).

Link to comment
Share on other sites

Obviously, you won't be using any of your net bandwidth. However, I've heard a number of times about lag being created when lan and net players are mixed. I believe it stems from the fact that maxrate settings are not enforced for lan players.

Link to comment
Share on other sites

Well, I tried 8 and it lagged. Even with my lan connection rate set at 4000. So I have gone back to 6 for now. Maxrate was 4000. Could it be hardware related? My server is a Duron 800 with 256ram, and I am also running a software firewall, NAT, and hosting a very small website on it. When the game server is empty, my cpu usage is around 20%. Would 8 players really make much of a difference? Things seemed fine with 7 players but as soon as an 8th joined it just all hung up.

Link to comment
Share on other sites

Well on my server i have a max rate of 5000.

So if you set yours to 5000 u could have a max 23 players.

(119000/5000 = 23.8)

 

I think it's best to experiment though really and see what works best. Max players between 16 - 23 and a maxrate between 5000 - 8000.

Link to comment
Share on other sites

As stated before, I run a 16 player server (CTF) with a maxrate of 7000 and I peak at around 75k/sec upload. Thus, by extension, I'd figure that with 110k/sec upload you could support 22 players at 7000 maxrate--more with lower and less with higher.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...