VDS SRCDS Optimization on Linux

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
unidentified
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Apr 05, 2013 11:05 am

VDS SRCDS Optimization on Linux

Post by unidentified »

It appears that linux gmod servers don't run as well as windows gmod servers do on the same hardware. I've tried tons of different optimizations and the core (E5-2690) seems to average on 2% cpu usage per player, no matter what you do. The main reason the gmod server is hosted on linux is for iptables, where lots of packet filtering can take place.
So to get the best of both worlds, i was wondering if it'd be better to run a virtual server inside the vds, where only the gmod server would be running, or if it'd be possible to get another vds, and network the two so that all the traffic goes through the linux box, and the gmod server is hosted on the other vds, being windows.
If anyone has any insight behind optimizations on linux that make a noticeable difference, i'd be happy to try it.
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: VDS SRCDS Optimization on Linux

Post by Edge100x »

I also don't recommend hosting Garrysmod on Linux because its physics has always been glitched on that platform. Additionally, Garrysmod updates frequently break Linux installs.

If you're running a VDS, we have an excellent Firewall page that you can use to filter attacks, which gives you the best of both worlds. You can run Windows inside the VDS, capture attack traffic, and use the Firewall page to filter it.
unidentified
New to forums
New to forums
Posts: 3
Joined: Fri Apr 05, 2013 11:05 am

Re: VDS SRCDS Optimization on Linux

Post by unidentified »

I've considered this but some of the features i use in iptables aren't available in the firewall page, such as state and logging.
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: VDS SRCDS Optimization on Linux

Post by Edge100x »

I do not recommend state when running game servers, as connection tracking usually causes servers to become much more vulnerable to attacks. If you are dealing with attacks, it is also rarely needed to deal with them.

In terms of nested virtualization, that's not something I've tried. Theoretically it's possible, but not something that we officially support. You also might be better off trying Wine.
unidentified
New to forums
New to forums
Posts: 3
Joined: Fri Apr 05, 2013 11:05 am

Re: VDS SRCDS Optimization on Linux

Post by unidentified »

It is possible to get a secondary VDS and network one through the other like i mentioned earlier? I might try the nested system but i'd rather just have 2 virtuals running instead.
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: VDS SRCDS Optimization on Linux

Post by Edge100x »

You could likely set up a VPN or similar tunneling system to do that, yes. The OpenVPN server running on a Linux-platform VDS and client on a Windows one, for instance.
Post Reply