How to find Linux CPU usage?
-
- This is my homepage
- Posts: 645
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Sep 20, 2009 6:15 pm
How to find Linux CPU usage?
Anyway to figure out CPU usage through shell? I'd just like to see what the CPU usage is like on my single core, just to see if it could handle more slots, etc.

Re: Single Core VPS
To do this, I recommend using the "top" command. This will provide you with a frequently-updating display with a bunch of very useful system status information, including CPU usage. To find out your available CPU, look for "xx.x%id" in the "CPU(s)" line.
-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
99.7%id
That can't be correct. All servers are empty and it's using 99%?
That can't be correct. All servers are empty and it's using 99%?

Re: Single Core VPS
If you have 99.7% available, you are only using 0.3% CPU. You have a significant amount of spare CPU power with your servers empty, which makes sense.rustydusty1717 wrote:99.7%idEdge100x wrote:To find out your available CPU, look for "xx.x%id" in the "CPU(s)" line.
That can't be correct. All servers are empty and it's using 99%?
-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
I had it backwards, my bad. I'm gonna blame it on the buckley's, even though it's only cough syrup.

-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
Here's a pic of the 'top' command with my private server with 10 people in it scrimming. Server is at 1000 fps, along with the public server. If I do my math correctly, I should be able to run roughly 32 slots with this CPU. Correct me if I'm wrong.

-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
Scrim/match servers tend to be very intensive (moreso than public servers), and it looks like you still have quite a bit of CPU free. You could likely run more slots than you think
. (Especially if you drop the FPS a bit.)
If you do run a lot of slots, keep an eye on the bandwidth usage, though.

If you do run a lot of slots, keep an eye on the bandwidth usage, though.
-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
I like the FPS at 1000 on all my servers. They seem to run perfect at that setting. Bandwidth is not my limit so far. Halfway through my first month and only 14 GB used. Mostly just play in the private server and scrimming. I'd be interesting to see how many slots you can run on 500 GB of bandwidth. Also, what type of port speeds are on each VPS? I wanna setup apache just for fast download, but I don't want it to lag the servers when many clients are downloading files from it.

Re: How to find Linux CPU usage?
Virtual servers can use up to 1gbps -- that's the speed of the virtual adapter. On a CentOS install, you'll have PV drivers that should allow close to wire-speed performance.rustydusty1717 wrote:Also, what type of port speeds are on each VPS? I wanna setup apache just for fast download, but I don't want it to lag the servers when many clients are downloading files from it.
-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
This is just a question off topic, why are you running your servers on root?
-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
I could create a new user, but root already has a very well encryped password, so I figured why not. I've always used root, and never had a problem. It's all about the password, and sometimes even the port. I usually change my SSH port to something not familiar on port scanners. 


Re: How to find Linux CPU usage?
BLUEPEPSi is right that it is better not to run servers as root. The reason doesn't have anything to do with SSH -- rather, it is because you don't want an intruder to have full access to the virtual machine if your game server is compromised (such as through a bug in the game or one of the plugins running on the server). For maximum security, I would recommend that you switch your servers to run as a different user as soon as you are finished setting them up.
It's also best not to run game servers as "Administrator" or "Local service" on Windows systems, for the same reason.
It's also best not to run game servers as "Administrator" or "Local service" on Windows systems, for the same reason.
-
- This is my homepage
- Posts: 645
- Joined: Sun Sep 20, 2009 6:15 pm
Re: How to find Linux CPU usage?
I completely understand, but I have a full backup of my CS 1.6 servers on my server at my house, plus I've never had a problem before. I'm old fashioned and go by the saying 'If it ain't broke, don't fix it'
Not always the smartest, but it's hard to teach an old dog new tricks.
Not always the smartest, but it's hard to teach an old dog new tricks.

