Well I tried everything I used DBugger to check maybe my script is causing the trouble and it doesn't seem so I have this weird lag spikes after a while that the server is up and I downgraded the tickrate all the way to 33 and it doesn't seem to be able to handle 30 players at a time without those random spikes.
I got a 40Mbps line in a datacenter and my server is hosted on my private box
16GB RAM
2X Xeon Processors 2.5Ghz
(Yes I know srcds is a 32bit process calm down)
My rates
sv_minrate 15000
sv_maxrate 30000
decalfrequency 10
sv_maxupdaterate 33
sv_minupdaterate 15
sv_mincmdrate 15
sv_maxcmdrate 33
The ping seems to go higher as well with the lag spikes for some reason
[IMG]http://puu.sh/9MjLj/8b0f4a4414.jpg[/IMG]
(It goes far higher than this on a lag spike sv seems to go down to 5 or so and var to 50 or so, also choke goes to 50 - 40)
Any help would be greatly appreciated.
dbugr profiles your code for you, it's not meant to be on a live server.
The "spikes" in the picture of the netgraph you provided are actually from dbugr, and i've personally noticed that dbugr causes the server to momentarily lag, probably from writing logs.
Try spawning a few bots with dbugr running in the background on a development server and look under the pinpointing tab iirc, and sort by value.
What processor is it - L5420?
It could be something as simple as the processor throttling down due to heat/system settings or it may not be powerful enough to handle 30 players.
[QUOTE=darksoul69;45235189]What processor is it - L5420?
It could be something as simple as the processor throttling down due to heat/system settings or it may not be powerful enough to handle 30 players.[/QUOTE]
Actually the E5420, but you would think such processor would be able to handle around 30 players with 33 tickrate in a rather custom darkrp mod.
Removing dbugger and also finding and removing an sql query that I dont even use that runs every 10 seconds seems to have fixed the lags
Edit: nvm seems to still exist just random freezes the lerp seems fine it just freezes.
You should see if it runs on an interval, and if it does search for timers that run on the same interval.
It's either that or some sort of event is happening, like entities being created or a large file operation.
If you can't find it that way you can start removing addons until you find the culprit.
[QUOTE=KokoNum;45236147]Actually the E5420, [B]but you would think such processor would be able to handle around 30 players with 33 tickrate [/B]in a rather custom darkrp mod.
Removing dbugger and also finding and removing an sql query that I dont even use that runs every 10 seconds seems to have fixed the lags
Edit: nvm seems to still exist just random freezes the lerp seems fine it just freezes.[/QUOTE]
I'm surprised you can even get 30 players on that thing.
I would recommend getting a better CPU.
[QUOTE=darksoul69;45238454]I'm surprised you can even get 30 players on that thing.
I would recommend getting a better CPU.[/QUOTE]
Really? is it cause of the clock speed?
SRCDS can only utilize one core.
The higher your clock speed is, the better.
[QUOTE=Fresh Cat;45239702]SRCDS can only utilize one core.
The higher your clock speed is, the better.[/QUOTE]
Yea I even wrote that on the first post I know that and people keep on reminding me just know that clockspeed is not everything different cores react different to processes.
I got another cpu to install there is the E5450 enough to handle 32 - 45 players?
[QUOTE=Fresh Cat;45239702]SRCDS can only utilize one core.
The higher your clock speed is, the better.[/QUOTE]
It can utilize two. One for networking, one for all the other calculations.
[QUOTE=KokoNum;45239753]Yea I even wrote that on the first post I know that and people keep on reminding me just know that clockspeed is not everything different cores react different to processes.
I got another cpu to install there is the E5450 enough to handle 32 - 45 players?[/QUOTE]
Maybe. I've never used it, so couldn't say for sure -- probably not more then 32 though.
You really want a more powerful processor for Garry's Mod. I know the E5420 and E5450 are cheap (you can buy a entire 1U build on ebay for like ~125) but that doesn't mean they can run everything. There is a reason they are being sold for such a low amount of money.
[QUOTE=darksoul69;45240089]Maybe. I've never used it, so couldn't say for sure -- probably not more then 32 though.
You really want a more powerful processor for Garry's Mod. I know the E5420 and E5450 are cheap (you can buy a entire 1U build on ebay for like ~125) but that doesn't mean they can run everything. There is a reason they are being sold for such a low amount of money.[/QUOTE]
Jeez so I have to pay like $2k just for a processor to run a server with 40 players?
[QUOTE=KokoNum;45240311]Jeez so I have to pay like $2k just for a processor to run a server with 40 players?[/QUOTE]
More like $200-300 for an e3-1230 or 1270.
[QUOTE=bliptec;45240623]More like $200-300 for an e3-1230 or 1270.[/QUOTE]
Sadly in israel its far more expensive.
[QUOTE=KokoNum;45240753]Sadly in israel its far more expensive.[/QUOTE]
Not really, just buy them from Amazon and pay $20 shipping to Isreal.
[url]http://www.amazon.com/Intel-E3-1245V3-Quad-Core-Processor-BX80646E31245V3/dp/B00D697QGI/ref=sr_1_1?ie=UTF8&qid=1403995487&sr=8-1&keywords=intel+xeon[/url]
Lot's of international websites offer this.
[QUOTE=Pantho;45241008]Not really, just buy them from Amazon and pay $20 shipping to Isreal.
[url]http://www.amazon.com/Intel-E3-1245V3-Quad-Core-Processor-BX80646E31245V3/dp/B00D697QGI/ref=sr_1_1?ie=UTF8&qid=1403995487&sr=8-1&keywords=intel+xeon[/url]
Lot's of international websites offer this.[/QUOTE]
Oh you wish the world was that fair 56 dollar shipping.
[QUOTE=KokoNum;45244711]Oh you wish the world was that fair 56 dollar shipping.[/QUOTE]
Bad example although 56$ isn't the end of the world compared to buying it locally where you are, you can find better websites with better shipping rates. I just linked the first that came to mind. I'm sure you can find better.
[QUOTE=KokoNum;45244711]Oh you wish the world was that fair 56 dollar shipping.[/QUOTE]
Sure beats spending $2k to buy locally.
[QUOTE=darksoul69;45250538]Sure beats spending $2k to buy locally.[/QUOTE]
Sure is, although I checked appears I was rather confused about the CPU. According to intel's RRP price my new CPU (E5450) is far more expensive($1000) than the recommended CPU here ($250~), and according to my hosting company "Your CPU is far better than the one you were recommended", so you can understand my confusion.
[QUOTE=KokoNum;45251473]Sure is, although I checked appears I was rather confused about the CPU. According to intel's RRP price my new CPU (E5450) is far more expensive($1000) than the recommended CPU here ($250~), and according to my hosting company "Your CPU is far better than the one you were recommended", so you can understand my confusion.[/QUOTE]
[URL]http://www.ebay.com/sch/i.html?_trksid=p2050601.m570.l1313.TR10.TRC2.A0.H0.XE5450&_nkw=E5450&_sacat=0&_from=R40[/URL]
Anyway, our advice can only go so far. It's really up to you in the end - so use whatever you want to use.
[QUOTE=KokoNum;45251473]Sure is, although I checked appears I was rather confused about the CPU. According to intel's RRP price my new CPU (E5450) is far more expensive($1000) than the recommended CPU here ($250~), and according to my hosting company "Your CPU is far better than the one you were recommended", so you can understand my confusion.[/QUOTE]
You should keep in mind that price is just the MSRP from 2007. It's certainly not a bad processor, but it reached end-of-life status more than three years ago. More modern processors, at the same clock speed, are going to significantly out perform it, and I would severely question the technical expertise of your hosting provider if they told you otherwise.
Sorry, you need to Log In to post a reply to this thread.