SA-MP Forums Archive
SAMP CPU usage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: SAMP CPU usage (/showthread.php?tid=362751)



SAMP CPU usage - Siedler - 25.07.2012

Hello!

I have a question about SA-MP Servers.
Some Servers has big amount of players, how this can be held?
Since 0.3e max amount is 1000.


Example Test Server

Intel® Core™ i7-2600 Quad-Core
16 GB DDR3 RAM
1 GBit OnBoard with 100 MBits

for only SA-MP Server, Webspace and Teamspeak.

What happen`s if a Server reach >100% CPU?
Is this Root-Server ok for 500 Slots SA-MP, Forum and 250 Slots Teamspeak?
Or its to big/to small?


Re: SAMP CPU usage - lsfmd - 25.07.2012

Actually, CPU usage depends on your script, the better optimized the less CPU, that should be more then enough to run what you're wanting.


Re: SAMP CPU usage - Alex Valdez - 25.07.2012

You can run this perfectly, I ran a 500 slot server and a 512 slot teamspeak server fine with no lag.


AW: Re: SAMP CPU usage - Siedler - 25.07.2012

Thanks for answers

Quote:
Originally Posted by Alex Valdez
View Post
You can run this perfectly, I ran a 500 slot server and a 512 slot teamspeak server fine with no lag.
How much CPU usage you need with this full server?
And i think, my server is optimized, it need a`little more as the blank scripts in the SA-MP server package.

If the server reach >100% it crashes? Or uses then other cores?


Re: AW: Re: SAMP CPU usage - iLinx - 25.07.2012

Quote:
Originally Posted by Siedler
View Post
Thanks for answers



How much CPU usage you need with this full server?
And i think, my server is optimized, it need a`little more as the blank scripts in the SA-MP server package.

If the server reach >100% it crashes? Or uses then other cores?
CPU usage depends on the script. SA:MP uses a single thread only so only one core (I suggest disabling hyperthreading on that CPU if you do start getting 500+ players). That being said, the CPU you listed should be fine. The Sandy Bridge CPUs can handle 500-1000 players without a problem given you dont overload on Disk I/O. Web and TS3 should be fine as well, they don't use that much traffic (if you find you need to optimize your web, run nginx instead of apache).


Re: SAMP CPU usage - Babul - 25.07.2012

i want to mention that as soon your CPU usage goes upto 100%, it will simply run the script on slower speed: the server will send all data to players with some delay, and the data sent from players to the server will get processed at a later time aswell.
like if some players are racing, then the checkpoints will popup later, and when entering a checkpoint, it will get recognized at later time..
the most lag causing routines are player-loops - they can get called quite often (let 500 players type /wave in the same second).


AW: SAMP CPU usage - Siedler - 27.07.2012

thanks for answers!
then im buying this server for only 500 slot SA:MP and 500 slot Teamspeak3.
for the webspace im buying a vserver.

is the connection also good enough?
1 GBit OnBoard with 100 MBits
or i need 1000 MBits (1 GBits)


Re: SAMP CPU usage - ColorHost-Kevin - 27.07.2012

That connection speed is perfectly fine for hosting websites.


AW: Re: SAMP CPU usage - Siedler - 27.07.2012

Quote:
Originally Posted by ColorHost-Kevin
View Post
That connection speed is perfectly fine for hosting websites.
i mean, for the Game Server (SA:MP, TS3).
for the web i know, that is good


Re: SAMP CPU usage - Jake187 - 28.07.2012

A regular SAMP server doesn't use more than about 30 mbits with 500 players online. And don't quote me on that, I just say that's likely the highest it would go.