Ulysses

General => Off-Topic => Topic started by: fetz on January 19, 2014, 03:30:57 PM

Title: Very Strange Lag.
Post by: fetz on January 19, 2014, 03:30:57 PM
I am hosting a Garry's Mod TTT Server on Linux (SteamCMD). Throughout playing player(s) walking will be choppy and going up/down ladders is really choppy. You can also walk through props.

My server is using 30% CPU usage and 50% RAM. Everyone has 40-120 ping. The servers upspeed is about 200 mb/s.


I am guessing it is something I am doing wrong starting the server?

I am only running pointshop addon plus some custom player models.



Thanks in advanced, Fetz


P.S. I hear a bunch about "Server FPS Lag"... how can I tell how much FPS my server is getting? Also here is the specs:
1024 MB of Guaranteed RAM
1024 MB of Swap
3 CPU @ 2.0+ Ghz
1 IPv4 Address
50 GB of Disk
2 TB of Bandwidth
Title: Re: Very Strange Lag.
Post by: Neku on January 19, 2014, 04:05:48 PM
Install CSS.
Or...
Get better host.

One of those will work.
Title: Re: Very Strange Lag.
Post by: Neku on January 19, 2014, 04:09:41 PM
Actually, where is the server physically located?
Title: Re: Very Strange Lag.
Post by: fetz on January 19, 2014, 04:16:15 PM
Is located in New York. My host is fine.

I app_update'd CSS.


It still didn't fix it. Do I have to app_update CSS in a certain directory?
Title: Re: Very Strange Lag.
Post by: Neku on January 19, 2014, 04:20:16 PM
Do your players live near New York?

I manually upload CSS to the addon folder.
app_update isn't reliable.
Title: Re: Very Strange Lag.
Post by: MrPresident on January 19, 2014, 04:43:36 PM
Using app_update is fine as long as you make sure to set up your mount.cfg properly.

Here is what mine looks like:

Code: [Select]
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//

"mountcfg"
{
"cstrike" "C:\gameservers\garrysmod\gmstranded\cstrike"
}


While I'm not 100% sure on this, I would imagine it is far more efficient to load an entire game's worth of content as a mount than through the addons folder.
Title: Re: Very Strange Lag.
Post by: Neku on January 19, 2014, 04:52:27 PM
Well...it's more of a preference thing.  :)
Title: Re: Very Strange Lag.
Post by: Bytewave on January 19, 2014, 05:20:43 PM
Using app_update is fine as long as you make sure to set up your mount.cfg properly.

Here is what mine looks like:

Code: [Select]
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//

"mountcfg"
{
"cstrike" "C:\gameservers\garrysmod\gmstranded\cstrike"
}


While I'm not 100% sure on this, I would imagine it is far more efficient to load an entire game's worth of content as a mount than through the addons folder.
Make sure to alert him of the need of changing the directory. :P
Code: [Select]
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//

"mountcfg"
{
"cstrike" "<INSTALL PATH FOR CSTRIKE>"
}
:p
Title: Re: Very Strange Lag.
Post by: fetz on January 19, 2014, 05:58:41 PM
Using app_update is fine as long as you make sure to set up your mount.cfg properly.

Here is what mine looks like:

Code: [Select]
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//

"mountcfg"
{
"cstrike" "C:\gameservers\garrysmod\gmstranded\cstrike"
}


While I'm not 100% sure on this, I would imagine it is far more efficient to load an entire game's worth of content as a mount than through the addons folder.

And I should add this to lua/autorun?
Title: Re: Very Strange Lag.
Post by: Bytewave on January 19, 2014, 06:53:47 PM
And I should add this to lua/autorun?
No. This should go to your server's /cfg/ directory.
Sorry, shoulda pointed that out as well. :P
Title: Re: Very Strange Lag.
Post by: fetz on January 20, 2014, 12:30:00 PM
Alright. Sounds easier to just drag cstrike folder into addons? This should work too right?
Title: Re: Very Strange Lag.
Post by: Neku on January 20, 2014, 01:23:14 PM
Alright. Sounds easier to just drag cstrike folder into addons? This should work too right?

Yeah, pretty much.
Title: Re: Very Strange Lag.
Post by: fetz on January 20, 2014, 02:00:29 PM
Installed htop to moniter the CPU and RAM... they never go over 60% and yet I am still getting lag on the server. Everyones ping is below 100.
Title: Re: Very Strange Lag.
Post by: Neku on January 20, 2014, 02:19:02 PM
You realize low ping is a good thing, right?
Title: Re: Very Strange Lag.
Post by: Bytewave on January 20, 2014, 02:27:15 PM
You realize low ping is a good thing, right?
If he doesn't...
*facehoof*
Ping is the time (in milliseconds) it takes for your client to respond to a request sent out by a server. The lower, the better.
Title: Re: Very Strange Lag.
Post by: fetz on January 20, 2014, 03:08:58 PM
Yes I know low ping is good.

I am just pointing out that the ping(s) are very good. Also CPU and RAM is very good. Yet the server is still lagging.

Thanks, Fetz
Title: Re: Very Strange Lag.
Post by: fetz on January 20, 2014, 03:12:39 PM
Also I still notice you can walk through props even after moving cstrike folder into my addons folder.

But some props you CAN'T walk through anymore. Should I also move hl2 into addons folder?
Title: Re: Very Strange Lag.
Post by: MrPresident on January 20, 2014, 03:25:11 PM
What props can you walk through?

You don't need to move HL2. garrysmod comes with HL2 props already.

Your map may be using Episode2 or Episode1 or content from another game.

Take a screenshot of the prop(s) you can walk through and post it here please.
Title: Re: Very Strange Lag.
Post by: fetz on January 21, 2014, 05:28:07 PM
Here is a couple of the model names on one map:

(http://img707.imageshack.us/img707/1319/phuq.png)
Title: Re: Very Strange Lag.
Post by: MrPresident on January 21, 2014, 10:47:32 PM
Those are CS:S. Moving the CS:S folder into your addons folder won't just WORK.

It would if you set it up like an addon, but it's not. You need to extract the models from the CS:S vcd files and move them into your garrysmod root. Or just mount CS:S properly.
Title: Re: Very Strange Lag.
Post by: fetz on January 24, 2014, 07:35:44 PM
The props I can still walk through. Here is my mount.cfg (I am on linux)

Code: [Select]
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//

"mountcfg"
{
// "cstrike" "/home/steam/css/cstrike"
// "tf" "C:\mytf2server\tf"
}


Title: Re: Very Strange Lag.
Post by: Bytewave on January 24, 2014, 08:07:34 PM
The props I can still walk through. Here is my mount.cfg (I am on linux)

Code: [Select]
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//

"mountcfg"
{
// "cstrike" "/home/steam/css/cstrike"
// "tf" "C:\mytf2server\tf"
}


I hope css is actually installed to that directory..?
:P
Title: Re: Very Strange Lag.
Post by: Neku on January 24, 2014, 09:00:35 PM
Well, I'd say your issue is that cstrike is not being mounted and is being commented out...
Title: Re: Very Strange Lag.
Post by: JamminR on January 24, 2014, 09:28:44 PM
Indeed. // = comment for mount cfg
Title: Re: Very Strange Lag.
Post by: syn. on January 24, 2014, 09:39:28 PM
lmao xD
Title: Re: Very Strange Lag.
Post by: JamminR on January 24, 2014, 09:45:49 PM
lmao xD
Not that funny syn. :)
What gets printed in below lua code?
Code: [Select]
  print "Hello"
  print "World"
  print "I"
--print "Hate"
--print "You"
--print "I"
  print "Love
  print "You"
Title: Re: Very Strange Lag.
Post by: syn. on January 24, 2014, 10:01:44 PM
Hello World I Love You :) cmon Jam give me something harder :D
(to be honest you almost got me)
Title: Re: Very Strange Lag.
Post by: JamminR on January 24, 2014, 10:08:36 PM
Trick question, half right.
Print " " would produce errors. True lua print command would be print ("<string>")
You got the idea on comments in lua though. -- is the true way. Garry added C style /* code */

Now, back on topic. Lag/css mounting.
Sorry, beyond my experience.
Google would be my friend, along with what little is in the gmod wiki.
Title: Re: Very Strange Lag.
Post by: fetz on January 25, 2014, 04:43:34 AM
Well, I'd say your issue is that cstrike is not being mounted and is being commented out...


Wow I feel really stupid xD

Thanks :(
Title: Re: Very Strange Lag.
Post by: Decicus on January 25, 2014, 05:33:08 AM
Make sure that the directory of the cstrike folder is actually correct, and don't just uncomment it.